java.lang.ArrayIndexOutOfBoundsException: - orientdb-community-tp3-3.0.0-M2

55 views
Skip to first unread message

Christos Vasilakis

unread,
Jul 29, 2017, 6:03:08 AM7/29/17
to OrientDB
Hi there,

have upgraded to the latest M2 release of OrientDB, having done an export database and import to the new one. All went well with the import and I can query the database through Studio.

In my program I am using the TinkerPop3 API to manipulate the database. Unfortunately during an insert I got a ‘java.lang.ArrayIndexOutOfBoundsException’. In particular:


WARNING: Error deserializing record to get field-names, send this data for debugging: EkVuZHBvaW50cxoIbmFtZQcuY3Zhc2lsYWtzLU1hY0Jvb2subG9jYWwOcmVnRGF0ZQacitrZsVcKcmVnSWQHFEhndHd2SlIyMXAOcmVnUG9ydAHmWBRyZWdBZGRyZXNzBw4wLjAuMC4wCHBvcnQBqOsHDmFkZHJlc3MHEjEyNy4wLjAuMQRsdAM8BnZlcgcGMS4wBmJuZAcCVRpyZWdMYXN0VXBkYXRlBpyK2tmxVwxvbmxpbmUAARpvdXRfaGFzT2JqZWN0Fv////////////////////8CgIKAgOCs/Yv8AQCAIAA=

Caused by: java.lang.ArrayIndexOutOfBoundsException: 230
at com.orientechnologies.orient.core.serialization.serializer.record.binary.OVarIntSerializer.readUnsignedVarLong(OVarIntSerializer.java:130)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.OVarIntSerializer.readSignedVarLong(OVarIntSerializer.java:106)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.OVarIntSerializer.readAsInteger(OVarIntSerializer.java:44)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.readRidBag(ORecordSerializerNetworkV37.java:402)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.deserializeValue(ORecordSerializerNetworkV37.java:304)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.getFieldNames(ORecordSerializerNetworkV37.java:177)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.getFieldNames(ORecordSerializerNetworkV37.java:901)
at com.orientechnologies.orient.core.record.impl.ODocument.fieldNames(ODocument.java:1039)
at com.orientechnologies.orient.core.record.impl.ODocument.toMap(ODocument.java:984)
at org.apache.tinkerpop.gremlin.orientdb.OrientElement.properties(OrientElement.java:92)
at org.apache.tinkerpop.gremlin.orientdb.OrientVertex.properties(OrientVertex.java:52)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.HasContainer.test(HasContainer.java:87)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.HasContainer.testAll(HasContainer.java:173)
at org.apache.tinkerpop.gremlin.orientdb.traversal.step.sideEffect.OrientGraphStep.lambda$null$3(OrientGraphStep.java:90)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.apache.tinkerpop.gremlin.orientdb.traversal.step.sideEffect.OrientGraphStep.lambda$elements$4(OrientGraphStep.java:91)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.apache.tinkerpop.gremlin.orientdb.traversal.step.sideEffect.OrientGraphStep.elements(OrientGraphStep.java:86)
at org.apache.tinkerpop.gremlin.orientdb.traversal.step.sideEffect.OrientGraphStep.vertices(OrientGraphStep.java:47)
at org.apache.tinkerpop.gremlin.orientdb.traversal.step.sideEffect.OrientGraphStep.lambda$new$0(OrientGraphStep.java:39)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphStep.processNextStart(GraphStep.java:139)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:192)
at org.apache.tinkerpop.gremlin.process.traversal.Traversal.tryNext(Traversal.java:90)

[

Did a quick debugging on it and the error is thrown in the 'readUnsignedVarLong()' method cause bytes.bytes.length() = 230 and offset = 230 (well past the end of the array)

Let me know if you need more information.





Regards,
Christos

maggi...@gmail.com

unread,
Jul 29, 2017, 6:22:43 AM7/29/17
to orient-...@googlegroups.com
Hi Christos

Did you upgrade also the dependency in your project to 3.0.0m2 ?

if not can you try and see if it solve this issue?

Thanks



--

---
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 orient-database+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages