i try to save an object graph to the database. When reading the data
again from the database and traversing the graph, there are several
exceptions thrown. It would be great if someone could take a look at my
test case, and check if this is an error with my code or a bug:
Here the stracktraces:
1.)
2011-07-27 12:42:29:920 SEVE Fetching error on record #7:3
com.orientechnologies.orient.core.exception.ODatabaseException: Database
instance has been released to the pool. Get another database instance
from the pool with the right username and password
at
com.orientechnologies.orient.core.db.object.ODatabaseObjectTxPooled.checkOpeness(ODatabaseObjectTxPooled.java:100)
at
com.orientechnologies.orient.core.db.ODatabasePojoAbstract.existsUserObjectByRID(ODatabasePojoAbstract.java:317)
at
com.orientechnologies.orient.core.serialization.serializer.object.OObjectSerializerHelper$1.fetchLinked(OObjectSerializerHelper.java:347)
at
com.orientechnologies.orient.core.fetch.OFetchHelper.fetch(OFetchHelper.java:105)
at
com.orientechnologies.orient.core.serialization.serializer.object.OObjectSerializerHelper.fromStream(OObjectSerializerHelper.java:280)
at
com.orientechnologies.orient.core.db.object.ODatabaseObjectTx.stream2pojo(ODatabaseObjectTx.java:418)
at
com.orientechnologies.orient.core.db.ODatabasePojoAbstract.getUserObjectByRecord(ODatabasePojoAbstract.java:358)
at
com.orientechnologies.orient.core.db.ODatabasePojoAbstract.getUserObjectByRecord(ODatabasePojoAbstract.java:331)
at
com.orientechnologies.orient.core.db.object.OLazyObjectIterator.next(OLazyObjectIterator.java:67)
at
com.orientechnologies.orient.core.db.object.OLazyObjectIterator.next(OLazyObjectIterator.java:54)
at
org.noorg.orientdb.test.ObjectGraphDatabaseTest.goDown(ObjectGraphDatabaseTest.java:37)
at
org.noorg.orientdb.test.ObjectGraphDatabaseTest.test(ObjectGraphDatabaseTest.java:32)
2.)
java.lang.ClassCastException:
com.orientechnologies.orient.core.record.impl.ODocument cannot be cast
to org.noorg.orientdb.test.domain.Page
at
org.noorg.orientdb.test.ObjectGraphDatabaseTest.goDown(ObjectGraphDatabaseTest.java:37)
at
org.noorg.orientdb.test.ObjectGraphDatabaseTest.goDown(ObjectGraphDatabaseTest.java:38)
at
org.noorg.orientdb.test.ObjectGraphDatabaseTest.test(ObjectGraphDatabaseTest.java:32)
Regards,
Stefan