issue 2
(It seems that DOMR makes some changes in the database) Status changed by jin.phd
- It may be a OME bug.
One workaround is using the copy of database file, not the database itself:)
Status: New
It may be a OME bug.
One workaround is using the copy of database file, not the database itself:)
Status: New
Jul 15, 2009
issue 2
(It seems that DOMR makes some changes in the database) reported by jin.phd
- 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)
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)
issue 1
(the critical bug and workaround for initial snapshot) reported by jin.phd
- One critical is, when I connect to a local db file. I can get nothing, I,
firstly, thought this is a common dependencies problem in the eclipse plugin.
But after testing under 3.4 and 3.5, I found the some result.
By accident, I found that if I connected the db 2 times. they appeared in the
browser view. ^_^ the another bug is related to my rcp. But I think the
developer of ome has used some incorrect refresh mechanism. If I
connect to db4o db, it will refresh kinds of views. In plugin mode, I
feel a little big vibration of workbench, In my RCP mode, I get
nothing in the workbench, So you can see I add a perspective bar under
the main toolbar. After the views in the workbench disappear, I can
re-open them using this bar.
One critical is, when I connect to a local db file. I can get nothing, I,
firstly, thought this is a common dependencies problem in the eclipse plugin.
But after testing under 3.4 and 3.5, I found the some result.
By accident, I found that if I connected the db 2 times. they appeared in the
browser view. ^_^ the another bug is related to my rcp. But I think the
developer of ome has used some incorrect refresh mechanism. If I
connect to db4o db, it will refresh kinds of views. In plugin mode, I
feel a little big vibration of workbench, In my RCP mode, I get
nothing in the workbench, So you can see I add a perspective bar under
the main toolbar. After the views in the workbench disappear, I can
re-open them using this bar.