I have about 40 classes with 15 UNIQUE_HASH_INDEXes. 
On 3 indexes I'm getting this exception:
It was on 1.7.9 so I upgraded to  2.M3 but the situation is same.
I did rebuild the indexes many times, with successful response.

select from WalletAddress where wallet='#29:5282' returns 0
Error on using index WalletAddress.wallet in query 'select from 
WalletAddress where wallet='#29:5281''. Probably you need to rebuild 
indexes. Now executing query using cluster scan
java.lang.ClassCastException: java.lang.String cannot be cast to 
com.orientechnologies.orient.core.db.record.OIdentifiable
    at 
com.orientechnologies.orient.core.serialization.serializer.binary.impl.OLinkSerializer.preprocess(OLinkSerializer.java:42)
    at 
com.orientechnologies.orient.core.index.hashindex.local.OLocalHashTable.get(OLocalHashTable.java:392)
    at 
com.orientechnologies.orient.core.index.engine.OHashTableIndexEngine.get(OHashTableIndexEngine.java:155)
    at 
com.orientechnologies.orient.core.index.OIndexMultiValues.get(OIndexMultiValues.java:65)
    at 
com.orientechnologies.orient.core.index.OIndexMultiValues.get(OIndexMultiValues.java:51)
    at 
com.orientechnologies.orient.core.index.OIndexAbstractDelegate.get(OIndexAbstractDelegate.java:59)
    at 
com.orientechnologies.orient.core.index.OIndexTxAwareMultiValue.get(OIndexTxAwareMultiValue.java:272)
    at 
com.orientechnologies.orient.core.index.OIndexTxAwareMultiValue.get(OIndexTxAwareMultiValue.java:40)
    at 
com.orientechnologies.orient.core.sql.operator.OQueryOperatorEquals.executeIndexQuery(OQueryOperatorEquals.java:129)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchForIndexes(OCommandExecutorSQLSelect.java:1448)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchInClasses(OCommandExecutorSQLSelect.java:713)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract.assignTarget(OCommandExecutorSQLResultsetAbstract.java:184)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.assignTarget(OCommandExecutorSQLSelect.java:414)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.executeSearch(OCommandExecutorSQLSelect.java:396)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:367)
    at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:64)
    at 
com.orientechnologies.orient.core.storage.OStorageEmbedded.executeCommand(OStorageEmbedded.java:86)
    at 
com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:75)
    at 
com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:70)
    at 
com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:84)
    at 
com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:33)
    at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.query(ODatabaseDocumentTx.java:563)
    at 
com.orientechnologies.orient.object.db.ODatabasePojoAbstract.query(ODatabasePojoAbstract.java:242)
   

Thank you for helping

Pavel

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to