ObjectDB ObjectDB

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?

edit
delete
#2

Could you please post the stack trace?

ObjectDB Support
edit
delete
#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.)

edit
delete
#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
edit
delete
#5

Fix confirmed.  Thank you.

edit
delete

Reply

To post on this website please sign in.