[appengine-java] handle 1 not found error

2011-02-27 Thread JaySicks
Hi, I'm getting the error:
com.google.appengine.api.datastore.DatastoreFailureException: handle
1 not found
(the number may vary)

I looked up, and I found, that it's related to transactions. And I
should get the error, when the too much time passes from the start of
the transaction to the commit. (Am I right?)

So, my problem is, that .. I'm not using transactions..
Is it normal, to get the error without using transactions?

Thanks

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: handle 1 not found error

2011-02-27 Thread JaySicks
thanks, for your reply.

In fact yes, I use task queues.
The error comes up when I loop through database objects, and try to
persist to the database as well.
I want to generate an object for a subset of objects in the database,
and store them in the datastore.
So my logic is: get an iterator of the objects from the datastore,
iterate through them one-by-one, and persist the new object.
It may not be a good thing to persist while iterating through a query
but the workaround is a bit messy, I think.
And I'm not even sure, what exactly the root cause is...


On Feb 28, 2:26 pm, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 I rather had such messages when using task queues and doing mistakes
 with them.

 Do you use task queues (or cron jobs) ?

 regards

 didier

 On Feb 27, 5:56 am, JaySicks jaysi...@gmail.com wrote:

  Hi, I'm getting the error:
  com.google.appengine.api.datastore.DatastoreFailureException: handle
  1 not found
  (the number may vary)

  I looked up, and I found, that it's related to transactions. And I
  should get the error, when the too much time passes from the start of
  the transaction to the commit. (Am I right?)

  So, my problem is, that .. I'm not using transactions..
  Is it normal, to get the error without using transactions?

  Thanks

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.