jinmingjian / domr

Automatically exported from code.google.com/p/domr
0 stars 0 forks source link

It seems that DOMR makes some changes in the database #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
It may be a OME bug. 
One workaround is using the copy of database file, not the database itself:)  

Original comment by jin.phd@gmail.com on 15 Jul 2009 at 8:07