Hi,
I was getting the below exception all the time with objectify-4.0rc2 and AppEngine
1.8.6, (in the cloud only, not in local environment) :
java.lang.NoSuchMethodError:
com.google.appengine.api.datastore.Key.getRootKey()Lcom/google/appengine/api/datastore/Key;
at
com.google.appengine.api.datastore.AsyncDatastoreServiceImpl$V3KeyBatcher.getGroup(AsyncDatastoreServiceImpl.java:105)
at com.google.appengine.api.datastore.AsyncDatastoreServiceImpl$V3KeyBatcher.getGroup(AsyncDatastoreServiceImpl.java:101)
at
com.google.appengine.api.datastore.Batcher.getBatches(Batcher.java:299)
com\google\appengine\api\datastore\
After a day of wasting time on this, I found that objectify-4.0rc2.jar contains
for some reason copies of google.com.appengine.api.datastore.Key, and of many
other classes.
After deleting them manually from the jar, things started to work well.
The jar was downloaded from: http://repo1.maven.org/maven2/com/googlecode/objectify/objectify/4.0rc2/
Why are these even in the jar in the first place? Is this documented somewhere
that it can make such problems?
thanks,
Noam
java.lang.NoSuchMethodError: com.google.appengine.api.datastore.Key.<init>(Ljava/lang/String;Lcom/google/appengine/api/datastore/Key;JLjava/lang/String;Lcom/google/appengine/api/datastore/AppIdNamespace;)V at com.google.appengine.api.datastore.KeyTranslator.createFromPb(KeyTranslator.java:37) at com.google.appengine.api.datastore.EntityTranslator.createFromPb(EntityTranslator.java:35) at com.google.appengine.api.datastore.QueryResultsSourceImpl.processQueryResult(QueryResultsSourceImpl.java:197) at com.google.appengine.api.datastore.QueryResultsSourceImpl.loadMoreEntities(QueryResultsSourceImpl.java:106) at com.google.appengine.api.datastore.QueryResultIteratorImpl.ensureLoaded(QueryResultIteratorImpl.java:155) at com.google.appengine.api.datastore.QueryResultIteratorImpl.nextList(QueryResultIteratorImpl.java:110) at com.google.appengine.api.datastore.LazyList.forceResolveToIndex(LazyList.java:93) at com.google.appengine.api.datastore.LazyList.resolveToIndex(LazyList.java:73) at com.google.appengine.api.datastore.LazyList.resolveAllData(LazyList.java:44) at com.google.appengine.api.datastore.LazyList.size(LazyList.java:117) at siena.gae.GaeMappingUtils.mapEntitiesKeysOnly(GaeMappingUtils.java:633) at siena.gae.GaePersistenceManager.mapKeysOnly(GaePersistenceManager.java:1405) at siena.gae.GaePersistenceManager.doFetchList(GaePersistenceManager.java:1506) at siena.gae.GaePersistenceManager.fetchKeys(GaePersistenceManager.java:2012)
using
appengine-api-1.0-sdk-1.8.9
objectify-4.0rc2
I've tried reverting to 1.8.8... same
There on other Objectify jars in my classpath.
I can see com.googlecode.objectify.cache.AsyncCacheFilter catches the exeption in its finally block.
Maybe it could print out something useful, I'll investigate
--
You received this message because you are subscribed to the Google Groups "objectify-appengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectify-appen...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to objectify-appengine+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to objectify-appen...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "objectify-appengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectify-appen...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.