Do you have fields within your persistable entities in Data.store which are persistable?
http://www.datanucleus.org/javadocs/core/2.1/org/datanucleus/store/exceptions/ReachableObjectNotCascadedException.html You can try pm.flush() and temporarily add catch (Throwable t) { t.printStackTrace() for more detail On Jan 28, 3:52 pm, John Goche <johngoch...@googlemail.com> wrote: > 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 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.