Hello,
If anyone knows how to deal with
org.datanucleus.exceptions.NucleusUserException: Object Manager has been
closed
any help would be greatly appreciated. Here is the code which is throwing
the exception:
static void persistStore() {
PersistenceManager pm = PMF.get().getPersistenceManager();
Transaction tx = pm.currentTransaction();
try {
tx.begin();
pm.makePersistent(Data.store);
tx.commit();
} finally {
if (tx.isActive())
tx.rollback();
pm.close();
}
}
I don't see anything wrong with the code. Any ideas?
John Goche
--
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.