ObjectDB ObjectDB

Issue #1099: Can't open DB-file with explorer, but from within my code it works

Type: Bug ReoprtVersion: 1.4.0Priority: NormalStatus: ActiveReplies: 1


The problem occured since an update from

my old-version (2.4.7_08)

to the new version(2.4.7_18):

1) my recent db-file, created with the old-version, has been copied to the local db-folder of the new version automatically

2) But I can't open the db-file with the objectDB explorer, neither with the old-version, nor with the new version.

The error message shown in a message-box is:

Failed to construct an instance of java.lang.Object using a no-arg constructor.


3) But I can open the db-file programatically (from within my code) without any errors

4) the db doctor ends without error messages

Scanning the database file...
0MB (total)

Analyzing database structure...
10% 20% 30% 40% 50% 60% 70% 80% 90% 100%

No errors have been found

The Stacktrace:

[2013-04-12 15:58:51 #1 store]
Database 'C:\Users\thomas\Downloads\objectdb-2.4.7_18\objectdb-2.4.7_18\db\emf.odb' is opened by 1636@a36-PC

[2013-04-12 15:58:55 #2 explorer]
[ObjectDB 2.4.7_08] javax.persistence.PersistenceException
Failed to construct an instance of java.lang.Object using a no-arg constructor (error 352)
at com.objectdb.Explorer$1.run(Explorer.java:56)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.objectdb.o.UserException: Failed to construct an instance of java.lang.Object using a no-arg constructor
at com.objectdb.o.MSG.d(MSG.java:74)
at com.objectdb.o.TYH.X(TYH.java:963)
at com.objectdb.o.UTY.X(UTY.java:524)
at com.objectdb.o.UTY.T(UTY.java:386)
at com.objectdb.o.TYS.l(TYS.java:170)
at com.objectdb.o.TYM.ae(TYM.java:522)
at com.objectdb.o.TYM.<init>(TYM.java:205)
at com.objectdb.o.OMF.an(OMF.java:814)
at com.objectdb.o.OMF.am(OMF.java:771)
at com.objectdb.jpa.EMF.am(EMF.java:232)
at com.objectdb.o.OMF.al(OMF.java:699)
at com.objectdb.jpa.EMF.createEntityManager(EMF.java:250)
... 17 more
Caused by: java.lang.VerifyError: (class: objectdb/simple/MyObj, method: __odbSetNumMember signature: (IJ)V) Bad type in putfield/putstatic
at sun.reflect.GeneratedSerializationConstructorAccessor2.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.objectdb.o.TYH.X(TYH.java:960)
... 27 more

With best regards,



Can you upload the database file (either here or in a private support ticket)?

ObjectDB Support


To post on this website please sign in.