ORecordLazySet cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable

79 views
Skip to first unread message

Rob Lally

unread,
Aug 23, 2011, 5:30:21 AM8/23/11
to orient-...@googlegroups.com
Hi folks,

I've found another problem with:
Orient RC-5
OSX - 10.7.1
JDK version 1.6.0_26

When executing the query you can see in the log below, we get a class cast exception.

Any suggestions?


R.


java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: OSQLQuery [text=SELECT key FROM index:Files.hash WHERE key = ? LIMIT 1]
at com.quolos.os.storage.orient.OrientExecutor$1.deliver(OrientExecutor.java:58)
at com.quolos.os.storage.orient.OrientExecutor.executeAndWait(OrientExecutor.java:34)
at com.quolos.os.storage.orient.OrientObjectStore.containsObject(OrientObjectStore.java:68)
at com.quolos.os.VersionedFileRSyncOperationImpl$VersionedRSyncFindFileCommand.execute(VersionedFileRSyncOperationImpl.java:204)
at com.quolos.os.QuolosBinding.onMessage(QuolosBinding.java:142)
at com.quolos.os.ODNetworkBinding.processIncomingMessage(ODNetworkBinding.java:87)
at com.quolos.os.ODNetworkBinding$1.onMessage(ODNetworkBinding.java:61)
at com.onedrum.net.client.handlers.TopicNotificationHandler$1.run(TopicNotificationHandler.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.util.concurrent.ExecutionException: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: OSQLQuery [text=SELECT key FROM index:Files.hash WHERE key = ? LIMIT 1]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at com.quolos.os.storage.orient.OrientExecutor$1.deliver(OrientExecutor.java:50)
... 10 more
Caused by: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: OSQLQuery [text=SELECT key FROM index:Files.hash WHERE key = ? LIMIT 1]
at com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:70)
at com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:67)
at com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:71)
at com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:38)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.query(ODatabaseRecordAbstract.java:291)
at com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.query(ODatabaseRecordWrapperAbstract.java:160)
at com.quolos.os.storage.orient.OrientUtil.executeQuery(OrientUtil.java:42)
at com.quolos.os.storage.orient.OrientUtil.queryReturnsNoRows(OrientUtil.java:59)
at com.quolos.os.storage.orient.OrientObjectStore.containsObject(OrientObjectStore.java:136)
at com.quolos.os.storage.orient.OrientObjectStore.access$200(OrientObjectStore.java:21)
at com.quolos.os.storage.orient.OrientObjectStore$2.execute(OrientObjectStore.java:72)
at com.quolos.os.storage.orient.OrientObjectStore$2.execute(OrientObjectStore.java:69)
at com.quolos.os.storage.orient.OrientExecutor$2$1.perform(OrientExecutor.java:76)
at com.quolos.os.storage.orient.OrientExecutor.withDb(OrientExecutor.java:91)
at com.quolos.os.storage.orient.OrientExecutor$2.call(OrientExecutor.java:71)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.db.record.ORecordLazySet cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable
at com.orientechnologies.orient.core.index.OIndexOneValue.get(OIndexOneValue.java:52)
at com.orientechnologies.orient.core.index.OIndexOneValue.get(OIndexOneValue.java:42)
at com.orientechnologies.orient.core.index.OIndexAbstractDelegate.get(OIndexAbstractDelegate.java:57)
at com.orientechnologies.orient.core.index.OIndexTxAwareOneValue.get(OIndexTxAwareOneValue.java:48)
at com.orientechnologies.orient.core.index.OIndexTxAwareOneValue.get(OIndexTxAwareOneValue.java:35)
at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchInIndex(OCommandExecutorSQLSelect.java:927)
at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:202)
at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:51)
at com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:65)
... 19 more

Luca Garulli

unread,
Sep 3, 2011, 4:28:49 AM9/3/11
to orient-...@googlegroups.com
Hi,
did you created indexes with previous releases? If yes just rebuild the indexes from console:

> rebuild indexes *

Lvc@

Jeffrey Auguste

unread,
Apr 8, 2015, 8:20:43 PM4/8/15
to orient-...@googlegroups.com
I'm seeing the same error running select out() from vector1. 
the configuration is vector1(linkbag) from edge1(linkset) to vector2(linkbag). 
It works fine with vector1(linkbag) from edge1(link) to vector2(linkbag). 

Version 2.05

Jeffrey Auguste

unread,
Apr 8, 2015, 10:22:12 PM4/8/15
to orient-...@googlegroups.com
I think I misunderstood what a linkset was. Now I see its a collection of links. thanks

--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/K9IaEQmYW8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages