UserException or JDOUserException

#1

I received an Exception:  "com.objectdb.o.UserException: Attempt to obtain a transaction using a closed EntityManager"

Should I ever see a "UserException"?  Should it have been converted to a "JDOUserException" and that should have been returned instead?

#2

Could you please post the stack trace?

ObjectDB Support
#3
com.objectdb.o.UserException: Attempt to obtain a transaction using a closed EntityManager
  at com.objectdb.o.MSG.d(MSG.java:62)
  at com.objectdb.o.OBC.bk(OBC.java:1485)
  at com.objectdb.jdo.PMImpl.currentTransaction(PMImpl.java:168)

 

(The next item on the stack is my code.)

#4

Thanks. Build 2.9.6_06 adds the missing wrapper that converts the ObjectDB exception to a JDO exception before throwing it externally.

Note that the stack trace was essential and should be included when available on every report.

ObjectDB Support
#5

Fix confirmed.  Thank you.

Reply