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

OrientDb throws java.lang.IllegalStateException: Invalid content found while iterating edges. #9055

Closed
nischalkumar opened this issue Nov 6, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@nischalkumar
Copy link

nischalkumar commented Nov 6, 2019

OrientDB Version: <orientdb-core-3.0.22.jar>

Java Version:

OS: <Ubuntu 16.04.6 LTS>

Expected behavior

Gremlin-core: 3.4.4
On running this query
List<Map<String, Object> response = graph.traversal().V()
.hasLabel("AwsEBSVolume")
.as("AwsEBSVolume")
.has("attr1", P.within("1"))
.out("AwsEBSVolume"+ "_" + "Tag").as("a")
.select("AwsEBSVolume", "a").toList()
Expected behaviour is non null response.

Actual behavior

threw exception
java.lang.IllegalStateException: Invalid content found while iterating edges, value 'AwsEBSVolume_Tag#241:706{out:#33:100,in:#44:5766,is_child:true} v1' is not an edge
at com.orientechnologies.orient.core.record.impl.OEdgeIterator.createGraphElement(OEdgeIterator.java:107) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at com.orientechnologies.orient.core.record.impl.OEdgeIterator.createGraphElement(OEdgeIterator.java:36) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at com.orientechnologies.orient.core.iterator.OLazyWrapperIterator.hasNext(OLazyWrapperIterator.java:93) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at com.orientechnologies.common.collection.OMultiCollectionIterator.getNextPartial(OMultiCollectionIterator.java:259) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at com.orientechnologies.common.collection.OMultiCollectionIterator.hasNextInternal(OMultiCollectionIterator.java:88) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at com.orientechnologies.common.collection.OMultiCollectionIterator.hasNext(OMultiCollectionIterator.java:78) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at com.orientechnologies.orient.core.record.impl.OEdgeToVertexIterator.hasNext(OEdgeToVertexIterator.java:25) ~[orientdb-core-3.0.22.jar!/:3.0.22]
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1811) ~[na:1.8.0_222]
at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:295) ~[na:1.8.0_222]
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:207) ~[na:1.8.0_222]
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:162) ~[na:1.8.0_222]
at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:301) ~[na:1.8.0_222]
at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681) ~[na:1.8.0_222]
at org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep.processNextStart(FlatMapStep.java:44) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:36) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.step.map.SelectStep.processNextStart(SelectStep.java:156) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:128) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:38) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.Traversal.fill(Traversal.java:180) ~[gremlin-core-3.4.4.jar!/:3.4.4]
at org.apache.tinkerpop.gremlin.process.traversal.Traversal.toList(Traversal.java:118) ~[gremlin-core-3.4.4.jar!/:3.4.4]

Steps to reproduce

Can not reproduce it. This error went away with a restart
<An SQL script to reproduce the problem or a JUnit test case will increase A LOT the chance to have a quick fix>

@nischalkumar
Copy link
Author

is this because I am setting connection pool properties incorrectly?

@tglman tglman added the bug label Jun 1, 2020
@tglman tglman added this to the 3.0.x milestone Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants