Illegal argument erros when fetching a object from datastore with primay key

147 views
Skip to first unread message

Kesava Neeli

unread,
Dec 21, 2012, 1:11:49 AM12/21/12
to google-a...@googlegroups.com
Hi,

We are using HR datastore for our data needs for our application. We had some promotions in our app which resulted in a big spike of requests. There were 25-30 req/sec and all requests were accessing datastore. We also use memcache as needed. All our datasore reads/writes failed with no clue on the exceptions.

A simple read from datastore caused this exception. The application was down for couple of hours because of these errors. This seem to happen under load. Can anyone in appengine team what's the issue here? Says illegal argument and invalid handle.

LogUtils error: Error in getting data from datastore
javax.jdo.JDOFatalUserException: Illegal argument
        at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:344)
        at org.datanucleus.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1676)
        at org.datanucleus.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1767)
        at org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager.getObjectById(DatastoreJDOPersistenceManager.java:73)

NestedThrowablesStackTrace:
java.lang.IllegalArgumentException: invalid handle: 14104995113016828271
        at com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:33)
        at com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:70)
        at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:94)
        at com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:142)
        at com.google.appengine.api.datastore.FutureHelper$TxnAwareFuture.get(FutureHelper.java:218)
        at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:86)
        at com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:71)
        at com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:32)
        at com.google.appengine.api.datastore.DatastoreServiceImpl$1.runInternal(DatastoreServiceImpl.java:68)
        at com.google.appengine.api.datastore.DatastoreServiceImpl$1.runInternal(DatastoreServiceImpl.java:65)
        at com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:29)
        at com.google.appengine.api.datastore.DatastoreServiceImpl.get(DatastoreServiceImpl.java:65)
        at com.google.appengine.api.datastore.DatastoreServiceImpl.get(DatastoreServiceImpl.java:55)
        at org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.get(RuntimeExceptionWrappingDatastoreService.java:56)




Takashi Matsuo

unread,
Dec 21, 2012, 7:24:59 PM12/21/12
to google-a...@googlegroups.com

Hi Kesava,

Can you file an issue on our issue tracker with full stack-trace, the date and time of occurrence, your app-id, etc?







--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ZcwzUDN79Y8J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Takashi Matsuo | Developers Advocate | tma...@google.com
Reply all
Reply to author
Forward
0 new messages