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

ImmutablePath cannot be cast to org.apache.tinkerpop.gremlin.structure.Element #1370

Open
hero78119 opened this issue Jan 12, 2017 · 0 comments

Comments

@hero78119
Copy link

Follow http://tinkerpop.apache.org/docs/3.2.1-SNAPSHOT/recipes/#shortest-path to try Shortest Test application on gremlin shell, but got the following stack trace.

java.lang.ClassCastException: org.apache.tinkerpop.gremlin.process.traversal.step.util.ImmutablePath cannot be cast to org.apache.tinkerpop.gremlin.structure.Element
        at com.thinkaurelius.titan.graphdb.tinkerpop.optimize.TitanPropertiesStep.flatMap(TitanPropertiesStep.java:109)
        at org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep.processNextStart(FlatMapStep.java:47)
        at com.thinkaurelius.titan.graphdb.tinkerpop.optimize.TitanPropertiesStep.processNextStart(TitanPropertiesStep.java:93)
        at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:140)
        ...

Below is the simplified steps to reproduce errors on titan-1.0.0 version.

gremlin> v1 = graph.addVertex(T.label, 'v1')
gremlin> v2 = graph.addVertex(T.label, 'v2')
gremlin> v1.addEdge("foo", v2, "weight", 0.25f)
gremlin> g.V().hasLabel('v1').out().path().map(unfold().values('label'))
org.apache.tinkerpop.gremlin.process.traversal.step.util.ImmutablePath cannot be cast to org.apache.tinkerpop.gremlin.structure.Element
Display stack trace? [yN]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant