Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException occurs [moved] #83

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

ClassCastException occurs [moved] #83

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 83 moved from a Google Code project.
Added by 2010-07-29T19:24:27.000Z by mkamalo...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Low, v0.9.23

Original description

<b>What steps will reproduce the problem?</b>
1. Download and unzip orient-database-0.9.21.zip
2. Run orient-server.bat file.
3. Run bench-memory-post.bat

I have this exception:
2010-07-29 11:15:14:592 INFO [OServer] Orient Database Server v0.9.21 is startin
g up...
2010-07-29 11:15:18:071 INFO [OServerNetworkListener] Listening binary connectio
ns on 127.0.0.1:2424
2010-07-29 11:15:18:071 INFO [OServerNetworkListener] Listening http connections
 on 127.0.0.1:2480
2010-07-29 11:15:18:087 INFO [OServer] Orient Database Server v0.9.21 is active.
com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving
record in cluster #0
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.e
xecuteSaveRecord(ODatabaseRecordAbstract.java:456)
        at com.orientechnologies.orient.core.tx.OTransactionNoTx.save(OTransacti
onNoTx.java:46)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:88)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:83)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:1)
        at com.orientechnologies.orient.core.record.ORecordAbstract.save(ORecord
Abstract.java:191)
        at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.s
ave(ORecordSchemaAwareAbstract.java:56)
        at com.orientechnologies.orient.core.type.ODocumentWrapper.save(ODocumen
tWrapper.java:60)
        at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.save(O
DocumentWrapperNoClass.java:53)
        at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.s
etClassName(ORecordSchemaAwareAbstract.java:97)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:102)
        at com.orientechnologies.orient.core.record.ORecordAbstract.fromJSON(ORe
cordAbstract.java:145)
        at com.orientechnologies.orient.server.network.protocol.http.command.pos
t.OServerCommandPostDocument.execute(OServerCommandPostDocument.java:42)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkPro
tocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:119)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkPro
tocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:387)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:
43)
Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.metad
ata.schema.OClass cannot be cast to com.orientechnologies.orient.core.serializat
ion.OSerializableStream
        at com.orientechnologies.orient.core.serialization.serializer.string.OSt
ringSerializerAnyStreamable.toStream(OStringSerializerAnyStreamable.java:72)
        at com.orientechnologies.orient.core.serialization.serializer.OStringSer
ializerHelper.fieldTypeToString(OStringSerializerHelper.java:162)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerCSVAbstract.embeddedCollectionToStream(ORecordSerializerCSV
Abstract.java:450)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.java
:287)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.j
ava:197)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.jav
a:59)
        at com.orientechnologies.orient.core.record.ORecordAbstract.toStream(ORe
cordAbstract.java:90)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.e
xecuteSaveRecord(ODatabaseRecordAbstract.java:400)
        ... 15 more
com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving
record in cluster #0
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.e
xecuteSaveRecord(ODatabaseRecordAbstract.java:456)
        at com.orientechnologies.orient.core.tx.OTransactionNoTx.save(OTransacti
onNoTx.java:46)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:88)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:83)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:1)
        at com.orientechnologies.orient.core.record.ORecordAbstract.save(ORecord
Abstract.java:191)
        at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.s
ave(ORecordSchemaAwareAbstract.java:56)
        at com.orientechnologies.orient.core.type.ODocumentWrapper.save(ODocumen
tWrapper.java:60)
        at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.save(O
DocumentWrapperNoClass.java:53)
        at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.s
etClassName(ORecordSchemaAwareAbstract.java:97)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:102)
        at com.orientechnologies.orient.core.record.ORecordAbstract.fromJSON(ORe
cordAbstract.java:145)
        at com.orientechnologies.orient.server.network.protocol.http.command.pos
t.OServerCommandPostDocument.execute(OServerCommandPostDocument.java:42)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkPro
tocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:119)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkPro
tocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:387)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:
43)
Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.metad
ata.schema.OClass cannot be cast to com.orientechnologies.orient.core.serializat
ion.OSerializableStream
        at com.orientechnologies.orient.core.serialization.serializer.string.OSt
ringSerializerAnyStreamable.toStream(OStringSerializerAnyStreamable.java:72)
        at com.orientechnologies.orient.core.serialization.serializer.OStringSer
ializerHelper.fieldTypeToString(OStringSerializerHelper.java:162)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerCSVAbstract.embeddedCollectionToStream(ORecordSerializerCSV
Abstract.java:450)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.java
:287)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.j
ava:197)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.jav
a:59)
        at com.orientechnologies.orient.core.record.ORecordAbstract.toStream(ORe
cordAbstract.java:90)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.e
xecuteSaveRecord(ODatabaseRecordAbstract.java:400)
        ... 15 more
com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving
record in cluster #0
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.e
xecuteSaveRecord(ODatabaseRecordAbstract.java:456)
        at com.orientechnologies.orient.core.tx.OTransactionNoTx.save(OTransacti
onNoTx.java:46)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:88)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:83)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(OD
atabaseRecordTx.java:1)
        at com.orientechnologies.orient.core.record.ORecordAbstract.save(ORecord
Abstract.java:191)
        at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.s
ave(ORecordSchemaAwareAbstract.java:56)
        at com.orientechnologies.orient.core.type.ODocumentWrapper.save(ODocumen
tWrapper.java:60)
        at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.save(O
DocumentWrapperNoClass.java:53)
        at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.s
etClassName(ORecordSchemaAwareAbstract.java:97)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:102)
        at com.orientechnologies.orient.core.record.ORecordAbstract.fromJSON(ORe
cordAbstract.java:145)
        at com.orientechnologies.orient.server.network.protocol.http.command.pos
t.OServerCommandPostDocument.execute(OServerCommandPostDocument.java:42)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkPro
tocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:119)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkPro
tocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:387)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:
43)
Caused by: java.lang.ClassCastException: com.orientechnologies.orient.core.metad
ata.schema.OClass cannot be cast to com.orientechnologies.orient.core.serializat
ion.OSerializableStream
        at com.orientechnologies.orient.core.serialization.serializer.string.OSt
ringSerializerAnyStreamable.toStream(OStringSerializerAnyStreamable.java:72)
        at com.orientechnologies.orient.core.serialization.serializer.OStringSer
ializerHelper.fieldTypeToString(OStringSerializerHelper.java:162)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerCSVAbstract.embeddedCollectionToStream(ORecordSerializerCSV
Abstract.java:450)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.java
:287)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.j
ava:197)
        at com.orientechnologies.orient.core.serialization.serializer.record.str
ing.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.jav
a:59)
        at com.orientechnologies.orient.core.record.ORecordAbstract.toStream(ORe
cordAbstract.java:90)
        at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.e
xecuteSaveRecord(ODatabaseRecordAbstract.java:400)
        ... 15 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant