1. Open a database with my application a close the application. OK.
2. Open the same database with DOMR and immediately disconnect (nothing is
done with database, no query etc. just only connect and disconnect.) OK.
3. Open a database with my application and an error is raised:
java.lang.ClassCastException: com.db4o.reflect.generic.GenericObject cannot
be cast to com.db4o.ext.Db4oDatabase
at
com.db4o.internal.fileheader.FileHeaderVariablePart1.readIdentity(FileHeade
rVariablePart1.java:66)
at
com.db4o.internal.fileheader.FileHeaderVariablePart1.readThis(FileHeaderVar
iablePart1.java:50)
at com.db4o.internal.PersistentBase.read(PersistentBase.java:92)
at
com.db4o.internal.fileheader.FileHeader1.readVariablePart(FileHeader1.java:
102)
at
com.db4o.internal.LocalObjectContainer.readHeaderVariablePart(LocalObjectCo
ntainer.java:575)
at
com.db4o.internal.LocalObjectContainer.readThis(LocalObjectContainer.java:5
10)
at
com.db4o.internal.IoAdaptedObjectContainer.openImpl(IoAdaptedObjectContaine
r.java:62)
at
com.db4o.internal.PartialObjectContainer.open(PartialObjectContainer.java:1
24)
at
com.db4o.internal.IoAdaptedObjectContainer.<init>(IoAdaptedObjectContainer.
java:35)
at
com.db4o.internal.ObjectContainerFactory.openObjectContainer(ObjectContaine
rFactory.java:20)
at com.db4o.Db4o.openFile(Db4o.java:250)
Original issue reported on code.google.com by jin.phd@gmail.com on 15 Jul 2009 at 8:06
Original issue reported on code.google.com by
jin.phd@gmail.com
on 15 Jul 2009 at 8:06