java.lang.ClassCastException: com.orientechnologies.lucene.collections.OFullTextCompositeKey cannot be cast to java.lang.String

Stack Overflow | ntviet18 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    OrientDb failed to cast index of composite type

    Stack Overflow | 9 months ago | ntviet18
    java.lang.ClassCastException: com.orientechnologies.lucene.collections.OFullTextCompositeKey cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.orientechnologies.lucene.collections.OFullTextCompositeKey cannot be cast to java.lang.String

      at com.orientechnologies.common.serialization.types.OStringSerializer.preprocess()
    2. OrientDB Core
      OIndexTxAwareMultiValue.get
      1. com.orientechnologies.common.serialization.types.OStringSerializer.preprocess(OStringSerializer.java:32)
      2. com.orientechnologies.orient.core.index.sbtree.local.OSBTree.get(OSBTree.java:172)
      3. com.orientechnologies.orient.core.index.engine.OSBTreeIndexEngine.get(OSBTreeIndexEngine.java:212)
      4. com.orientechnologies.orient.core.index.OIndexMultiValues.get(OIndexMultiValues.java:72)
      5. com.orientechnologies.orient.core.index.OIndexMultiValues.get(OIndexMultiValues.java:53)
      6. com.orientechnologies.orient.core.index.OIndexAbstractDelegate.get(OIndexAbstractDelegate.java:57)
      7. com.orientechnologies.orient.core.index.OIndexTxAwareMultiValue.get(OIndexTxAwareMultiValue.java:272)
      8. com.orientechnologies.orient.core.index.OIndexTxAwareMultiValue.get(OIndexTxAwareMultiValue.java:40)
      8 frames
    3. com.orientechnologies.lucene
      OLuceneTextOperator.executeIndexQuery
      1. com.orientechnologies.lucene.operator.OLuceneTextOperator.executeIndexQuery(OLuceneTextOperator.java:59)
      1 frame
    4. OrientDB Core
      OQueryAbstract.execute
      1. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchForIndexes(OCommandExecutorSQLSelect.java:1929)
      2. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchInClasses(OCommandExecutorSQLSelect.java:922)
      3. com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract.assignTarget(OCommandExecutorSQLResultsetAbstract.java:199)
      4. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.assignTarget(OCommandExecutorSQLSelect.java:493)
      5. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.executeSearch(OCommandExecutorSQLSelect.java:475)
      6. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:446)
      7. com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:90)
      8. com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1433)
      9. com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1406)
      10. com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:72)
      11. com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:85)
      12. com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:33)
      13. com.orientechnologies.orient.core.sql.filter.OSQLFilterCondition.evaluate(OSQLFilterCondition.java:83)
      14. com.orientechnologies.orient.core.sql.filter.OSQLFilterCondition.evaluate(OSQLFilterCondition.java:329)
      15. com.orientechnologies.orient.core.sql.filter.OSQLFilterCondition.evaluate(OSQLFilterCondition.java:76)
      16. com.orientechnologies.orient.core.sql.filter.OSQLFilter.evaluate(OSQLFilter.java:100)
      17. com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract.evaluateRecord(OCommandExecutorSQLResultsetAbstract.java:401)
      18. com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract.filter(OCommandExecutorSQLResultsetAbstract.java:391)
      19. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.executeSearchRecord(OCommandExecutorSQLSelect.java:558)
      20. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.fetchFromTarget(OCommandExecutorSQLSelect.java:1480)
      21. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.executeSearch(OCommandExecutorSQLSelect.java:488)
      22. com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:446)
      23. com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:90)
      24. com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1433)
      25. com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1406)
      26. com.orientechnologies.orient.core.sql.query.OSQLQuery.run(OSQLQuery.java:72)
      27. com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.run(OSQLSynchQuery.java:85)
      28. com.orientechnologies.orient.core.query.OQueryAbstract.execute(OQueryAbstract.java:33)
      28 frames
    5. OrientDB Server
      OBinaryNetworkProtocolAbstract.execute
      1. com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1317)
      2. com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:399)
      3. com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:223)
      3 frames
    6. OrientDB Core
      OSoftThread.run
      1. com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)
      1 frame