hi,
you should only close the persistence manager when your done.
This error occurs because you try to close it a second time.
Once you do the pm.close() all the data will be updated
2010/4/8 Arny
> Hi,
>
> I'm getting an JDO/Nucleus exception when running 2 synchronous
> requests on different ids of an object:
> org.datanucleus.exceptions.NucleusUserException: Object Manager has
> been closed
>
> ---
> This is how my getById looks like:
>
>PersistenceManager pm = getPM();
>Stream stream = null;
>try {
>Stream tmp = pm.getObjectById(Stream.class, id);
>stream = pm.detachCopy(tmp);
>} finally {
>pm.close(); // here the exception occurs
>}
>return stream;
>
> ---
>
> It works fine on single request, but fails on 2 or more.
> anyone know how to get around this?
>
> 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-j...@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.
>
>
--
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-j...@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.