ClassCastException - Bug? 1.0rc9

30 views
Skip to first unread message

kabustalek

unread,
Apr 10, 2012, 3:11:03 AM4/10/12
to orient-...@googlegroups.com
Hi,

recently i got this exception:

java.lang.ClassCastException: com.orientechnologies.orient.core.db.object.ODatabaseObjectTxPooled cannot be cast to com.orientechnologies.orient.core.db.record.ODatabaseRecord
    at com.orientechnologies.orient.core.db.ODatabasePoolBase$1.reuseResource(ODatabasePoolBase.java:58)
    at com.orientechnologies.orient.core.db.ODatabasePoolBase$1.reuseResource(ODatabasePoolBase.java:43)
    at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:56)
    at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:70)
    at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:52)
    at com.orientechnologies.orient.core.db.ODatabasePoolBase.acquire(ODatabasePoolBase.java:73)
    at x.impl.OrientDB.initOObjectTx(OrientDB.java:250)

The line 250 in OrientDB is:
final ODatabaseObjectPool global = ODatabaseObjectPool.global();
        obj = global.acquire(connectionString, "admin", "admin");

So i'm pretty sure its not my fault ;)
In 99.99% its working, but randomly it fails with that exception.

Luca Garulli

unread,
Apr 10, 2012, 4:54:33 AM4/10/12
to orient-...@googlegroups.com
Hi,
this problem was reported about one week ago and has been fixed in latest SVN trunk.

Lvc@

kabustalek

unread,
Apr 10, 2012, 8:15:06 AM4/10/12
to orient-...@googlegroups.com
thanks!
Is there a nightly binary build available or do i have to build it myself? Until now i used maven to handle that... :)

And another one, maybe also fixed in svn?:
com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: OSQLQuery [text=select from index:unprocessed where key = [false, false]]
    at com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:61)
    at com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:68)
    at com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:78)
    at com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:30)
    at com.orientechnologies.orient.core.db.OCommandSQLPojoWrapper.execute(OCommandSQLPojoWrapper.java:44)
    at x.net.db.impl.OrientDB.hasNext(OrientDB.java:361)
    at x.net.core.Processor.process(Processor.java:65)
    at x.net.core.App.main(App.java:34)
Caused by: java.lang.NullPointerException
    at com.orientechnologies.common.collection.OMVRBTree.adjustHighestPartialSearchResult(OMVRBTree.java:493)
    at com.orientechnologies.common.collection.OMVRBTree.getEntry(OMVRBTree.java:459)
    at com.orientechnologies.common.collection.OMVRBTree.getHigherEntry(OMVRBTree.java:644)
    at com.orientechnologies.orient.core.index.OIndexMultiValues.getValuesBetween(OIndexMultiValues.java:182)
    at com.orientechnologies.orient.core.index.OIndexMVRBTreeAbstract.getValuesBetween(OIndexMVRBTreeAbstract.java:296)
    at com.orientechnologies.orient.core.index.OIndexMVRBTreeAbstract.getValuesBetween(OIndexMVRBTreeAbstract.java:245)
    at com.orientechnologies.orient.core.index.OIndexAbstractDelegate.getValuesBetween(OIndexAbstractDelegate.java:93)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchInIndex(OCommandExecutorSQLSelect.java:1106)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:153)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:53)
    at com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:54)
    ... 7 more

regards
Oli


Am Dienstag, 10. April 2012 10:54:33 UTC+2 schrieb Lvc@:
Hi,
this problem was reported about one week ago and has been fixed in latest SVN trunk.

Lvc@

Luca Garulli

unread,
Apr 10, 2012, 8:26:16 AM4/10/12
to orient-...@googlegroups.com
Hi,
point to 1.0-SNAPSHOT using Maven.

Lvc@

kabustalek

unread,
Apr 10, 2012, 9:07:57 AM4/10/12
to orient-...@googlegroups.com
Thanks for that fast response, but when i change the version from 1.0rc9 to 1.0-SNAPSHOT i get:
Could not find artifact com.orientechnologies:orientdb-core:jar:1.0-SNAPSHOT in orientechnologies-repository (http://www.orientechnologies.com/listing/m2) -> [Help 1]


kabustalek

unread,
Apr 10, 2012, 9:12:11 AM4/10/12
to orient-...@googlegroups.com
Got that working, next time i will first read the FAQ ;)
i changed the repo to sonatype, now all is working, thanks :)

Luca Garulli

unread,
Apr 10, 2012, 9:18:07 AM4/10/12
to orient-...@googlegroups.com
Good!
Lvc@
Reply all
Reply to author
Forward
0 new messages