Really cool exception: Primary key for type 'Task' is of unexpected type com.google.appengine.api.datastore.Key (must be String, Long, or com.google.appengine.api.datastore.Key)

17 views
Skip to first unread message

Alex Dobjanschi

unread,
Aug 31, 2011, 4:02:30 PM8/31/11
to google-a...@googlegroups.com
Any ideas why this happens? Did it ever happen to anyone? 

This is the setup:
0. GWT + GAE, injection done through Guice + extensions (GuiceFilter, GuiceServletContextListener) + GIN.
1. A suite of tests for server code. Executes successfully by itself
2. A suite of tests for client code. Executes successfully by itself
3. A "wrapper" suite that runs both 1. and 2.

When I run 3., the server code specific tests run, but cause all tests in client to fail. I should specify that client code uses gwt-test-utils, a testing library that replaces GWT.create, allowing GWT to run in JVM (much faster). However, I don't see how this could affect the failure (I guess the same JVM/ClassLoader instance runs).

FYI exception occurs in org.datanucleus.store.appengine.MetaDataValidator(442)
Thanks,
Alex.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages