I get an InvocationTargetException the first time I query the
datastore after starting the dev server.
My app works fine, but I feel like the exception slows down the
startup time and is also probably a bad thing.
My query is simple its just:
Query q = pm.newQuery(Question.class);
List<Question> cards = (List<Question>) q.execute();
And on the call to execute i get this exception, which appears as an
Info message in my logs:
com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
<init>: Failed to start reference finalizer thread. Reference cleanup
will only occur when new references are created.
java.lang.reflect.InvocationTargetException
at com.google.appengine.runtime.Request.process-b6aeefda810d77e4
(Request.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:42)
at
com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.<init>
(FinalizableReferenceQueue.java:124)
at
com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools
$WeakInterningPool.<clinit>(InterningPools.java:104)
at
com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools.newWeakInterningPool
(InterningPools.java:48)
at
com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.<clinit>
(ProtocolSupport.java:55)
at com.google.apphosting.api.DatastorePb$Query.<init>
(DatastorePb.java:1072)
at com.google.apphosting.api.DatastorePb$Query$1.<init>
(DatastorePb.java:2529)
at com.google.apphosting.api.DatastorePb$Query.<clinit>
(DatastorePb.java:2529)
at com.google.appengine.api.datastore.QueryTranslator.convertToPb
(QueryTranslator.java:28)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.convertToPb(DatastoreServiceImpl.java:424)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:384)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.asIterator(DatastoreServiceImpl.java:349)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:326)
at
org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iterator
(RuntimeExceptionWrappingIterable.java:42)
at org.datanucleus.store.appengine.query.StreamingQueryResult.<init>
(StreamingQueryResult.java:77)
at
org.datanucleus.store.appengine.query.DatastoreQuery.newStreamingQueryResultForEntities
(DatastoreQuery.java:324)
at
org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery
(DatastoreQuery.java:310)
at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute
(DatastoreQuery.java:242)
at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
(JDOQLQuery.java:84)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:
1371)
at org.datanucleus.store.query.Query.execute(Query.java:1344)
at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221)
at answercow.controllers.RootController.Index(RootController.java:30)
...
Any help would be much appreciated.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.