orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.7k stars 866 forks source link

Class cast exception in ODB internals during the document creation on the latest 1.7.9-SNAPSHOT (customer=51) #2762

Closed srgg closed 9 years ago

srgg commented 9 years ago

During the document creation we have got the following error on the client side:

Error on sending distributed request (id=175 from=node135 task=record_create(#14:-2 v.0) userName=admin) against database 'ipaas-ci-albums.[dsp_recording]' to nodes [node132, node135, node134]

It was caused by:

: java.lang.ClassCastException: com.orientechnologies.orient.core.exception.OValidationException cannot be cast to com.orientechnologies.orient.core.db.record.OPlaceholder

Here is the full client stack trace:

2014-09-02T12:06:48.41+0300 [App/0]   OUT com.orientechnologies.orient.server.distributed.ODistributedException: Error on sending distributed request (id=175 from=node135 task=record_create(#14:-2 v.0) userName=admin) against database 'ipaas-ci-albums.[dsp_recording]' to nodes [node132, node135, node134]
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:199)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.sendRequest(OHazelcastPlugin.java:369)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.ODistributedStorage.createRecord(ODistributedStorage.java:355)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.save(ODatabaseRaw.java:275)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeSaveRecord(ODatabaseRecordAbstract.java:1133)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.tx.OTransactionOptimistic.addRecord(OTransactionOptimistic.java:311)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.tx.OTransactionOptimistic.saveRecord(OTransactionOptimistic.java:250)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:322)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:303)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:40)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.linkToStream(ORecordSerializerCSVAbstract.java:97)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.java:351)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.java:495)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.java:673)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.toStream(ORecordSerializerSchemaAware2CSV.java:258)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.toStream(ORecordSchemaAwareAbstract.java:420)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.toStream(ORecordSchemaAwareAbstract.java:415)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.record.impl.ODocument.toStream(ODocument.java:423)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeSaveRecord(ODatabaseRecordAbstract.java:1084)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.tx.OTransactionOptimistic.addRecord(OTransactionOptimistic.java:311)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.tx.OTransactionOptimistic.saveRecord(OTransactionOptimistic.java:250)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:322)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:303)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:40)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.linkToStream(ORecordSerializerCSVAbstract.java:97)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.java:351)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.java:495)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.java:673)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.toStream(ORecordSerializerSchemaAware2CSV.java:258)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.toStream(ORecordSchemaAwareAbstract.java:420)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.toStream(ORecordSchemaAwareAbstract.java:415)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.record.impl.ODocument.toStream(ODocument.java:423)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.ODistributedStorage.commit(ODistributedStorage.java:637)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:469)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:148)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:142)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:511)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:503)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.commit(ONetworkProtocolBinary.java:1096)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:344)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:169)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
2014-09-02T12:06:48.41+0300 [App/0]   OUT Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.exception.OValidationException cannot be cast to com.orientechnologies.orient.core.db.record.OPlaceholder
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.task.OCreateRecordTask.getUndoTask(OCreateRecordTask.java:93)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.task.OCreateRecordTask.getUndoTask(OCreateRecordTask.java:40)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.ODistributedResponseManager.undoRequest(ODistributedResponseManager.java:536)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:504)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:287)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.waitForResponse(OHazelcastDistributedDatabase.java:456)
2014-09-02T12:06:48.41+0300 [App/0]   OUT       at com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:196)
lvca commented 9 years ago

Fixed in 1.7.9-SNAPSHOT.