Thanks Brandan - that helped a lot!

Removing the LocalTaskQueueTestConfig (which I currently not use) did
most of the trick.
But I was still getting the "handle 3" error - after removing a test
which tests failing transactions, everything works fine :-/
I renamed that test, so that it runs last. It seems that something is
not cleaned up correctly.

Cheers,
Jorg

On Aug 13, 6:56 pm, brendan <[email protected]> wrote:
> I think I might be encountering the same problem.  When I run each of
> the tests individually they pass, but running as part of a test suite,
> all tests that use Task Queue except the first one fails.
>
> I'm using Deferrable tasks (described 
> herehttp://turbomanage.wordpress.com/2009/11/20/deferred-defer-is-a-thing...),
> and the first time the code in the second tests tries to add a task to
> the queue I get a TransactionalTaskException, which contains a
> DatastoreFailureException with the message "handle1 not found";
>
> My test cases extend this class shown athttp://pastebin.com/bhuf9FdQ.
> Perhaps I'm setting up the Local...TestConfig's incorrectly.
>
> Brendan
>
> On Aug 10, 4:22 am, Jorg <[email protected]> wrote:
>
>
>
> > In the test environment, I have a stability problem with the local
> > data store.
> > When running the tests individually, they are ok, but running them in
> > a test suite results in the error below for many of the tests.
> > I read that the request come too fast, so I built in sleep(1000)
> > between the tests, but that didnotmake a difference.  Any
> > suggestions?
>
> > The error I get:
>
> > com.google.appengine.api.datastore.DatastoreFailureException:handle3notfoun 
> > d
> >                 at
> > com.google.appengine.api.datastore.DatastoreApiHelper.translateError(Datast 
> > oreApiHelper.java:
> > 51)
> >                 at
> > com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(Datastor 
> > eApiHelper.java:
> > 67)
> >                 at com.google.appengine.api.datastore.DatastoreServiceImpl
> > $2.run(DatastoreServiceImpl.java:188)
> >                 at
> > com.google.appengine.api.datastore.TransactionRunner.runInTransaction(Trans 
> > actionRunner.java:
> > 30)
> >                 at
> > com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServic 
> > eImpl.java:
> > 176)
> >                 at
> > com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServic 
> > eImpl.java:
> > 156)
> >                 at
> > com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServic 
> > eImpl.java:
> > 148)
> >                 at com.accorto.gae.GaeDatastore.save(GaeDatastore.java:471)

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