[objectify-appengine] Junit tests failing with DatastorePb$QueryExplanation on appengine 1.3.3.1

39 views
Skip to first unread message

brendan

unread,
Apr 27, 2010, 4:29:31 PM4/27/10
to objectify-appengine
Is anyone else getting these errors after upgrading appengine?

java.lang.NoClassDefFoundError: com/google/apphosting/api/DatastorePb
$QueryExplanation
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at
com.google.appengine.tools.development.ApiProxyLocalImpl.getDispatchMethod(ApiProxyLocalImpl.java:
264)
at
com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall(ApiProxyLocalImpl.java:
116)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
at
com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:
58)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$2.run(DatastoreServiceImpl.java:188)
at
com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:
30)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:
176)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:
156)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:
152)
at
com.googlecode.objectify.impl.CachingDatastoreService.put(CachingDatastoreService.java:
560)
at com.googlecode.objectify.impl.ObjectifyImpl.put(ObjectifyImpl.java:
187)
at
com.googlecode.objectify.impl.SessionCachingObjectifyImpl.put(SessionCachingObjectifyImpl.java:
118)
at
com.propertysimplified.server.dao.AbstractDAO.create(AbstractDAO.java:
52)
at
test.propertysimplified.server.handler.property.TestMyListActionHandler.setUp(TestMyListActionHandler.java:
83)


--
Subscription settings: http://groups.google.com/group/objectify-appengine/subscribe?hl=en

Jeff Schnitzer

unread,
Apr 27, 2010, 7:03:43 PM4/27/10
to objectify...@googlegroups.com
I just upgraded my project to SDK 1.3.3 and all works fine.

I also upgraded the objectify unit tests to SDK 1.3.3 and it works fine.

It looks like you're missing one of the GAE API jars. I'm guessing
this is going to be a continuing problem for people using Maven that
don't add their own dependencies on the SDK jars.

Matt, would you add appengine-api-1.0-sdk-1.3.3.jar to the Maven
dependency list?

Jeff

Scott Hernandez

unread,
Apr 27, 2010, 7:25:36 PM4/27/10
to objectify...@googlegroups.com
There have been some bugs with servlet filter mappings (esp: "/*")
that have been found on 1.3.3 that you might want to look out for.
http://code.google.com/p/googleappengine/issues/detail?id=3138

Scott Hernandez

unread,
Apr 27, 2010, 7:34:06 PM4/27/10
to objectify...@googlegroups.com
Since there is no requirement for 1.3.3 we should probably not require
it in the maven deps. Can we do a 1.3.2 or greater dep?

Matt Quail

unread,
Apr 27, 2010, 7:44:52 PM4/27/10
to objectify...@googlegroups.com
On Wed, Apr 28, 2010 at 9:03 AM, Jeff Schnitzer <je...@infohazard.org> wrote:
> Matt, would you add appengine-api-1.0-sdk-1.3.3.jar to the Maven
> dependency list?

Yes, I need to add all the dependencies to the pom, I'll try and do
that tonight.

I'll set the dependency (initially) to 1.3.3, since if there is no API
difference between it and 1.3.2, it won't really impact your
transitive dependency tree too much (a direct dependency on 1.3.2
should trump a transitive dependency on 1.3.3 iirc).

=Matt
Reply all
Reply to author
Forward
0 new messages