I'm loading some data into the DataStore in the background.  When I
run queries against the same Kind I occasionally get exceptions:

java.util.ConcurrentModificationException
        at java.util.LinkedHashMap$LinkedHashIterator.nextEntry
(LinkedHashMap.java:373)
        at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:388)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:124)
        at java.util.ArrayList.(ArrayList.java:131)
        at
com.google.appengine.api.datastore.dev.LocalDatastoreService.runQuery
(LocalDatastoreService.java:576)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall
(ApiProxyLocalImpl.java:108)
        at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:79)
        at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
(DatastoreApiHelper.java:52)
        at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:346)
        at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.access$100(DatastoreServiceImpl.java:272)
        at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:306)
        at org.simpleds.EntityManagerImpl.find(EntityManagerImpl.java:64)


This seems like an issue in the LocalDatastoreService.  It appears
it's sharing unsynchronized data structures with the code that's doing
the writes.

Is that right?  Or am I misunderstanding this stack trace?

thanks

-- James

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to