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

NoSuchMethodError on RestTypedTraverser #10

Closed
kouphax opened this issue Oct 4, 2012 · 5 comments
Closed

NoSuchMethodError on RestTypedTraverser #10

kouphax opened this issue Oct 4, 2012 · 5 comments

Comments

@kouphax
Copy link

kouphax commented Oct 4, 2012

The following traversal code is throwing an error for me,

organisation.doTraverse[DocumentLink](follow(BREADTH_FIRST) -<- "ATTACHED_TO", 1 , ReturnAllButStartNode)

However the alternative options are fine,

organisation.doTraverse[DocumentLink](follow(BREADTH_FIRST) -<- "ATTACHED_TO", 1 , "true")

Is there something I am doing wrong in the first sample that is stopping me from getting all but the start node? The error is below,

Caused by: java.lang.NoSuchMethodError: org.neo4j.kernel.Traversal.returnAllButStartNode()Lorg/neo4j/helpers/Predicate;
at org.neo4j.rest.graphdb.traversal.RestOldTraverserWrapper.fillFilter(RestOldTraverserWrapper.java:208) ~[neo4j-scala-0.2.0-M1.jar:na]
at org.neo4j.rest.graphdb.traversal.RestOldTraverserWrapper.traverse(RestOldTraverserWrapper.java:122) ~[neo4j-scala-0.2.0-M1.jar:na]
at org.neo4j.scala.RestTypedTraverser$$anon$3.doTraverse(RestTypedTraverser.scala:169) ~[neo4j-scala-0.2.0-M1.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_35]
@FaKod
Copy link
Owner

FaKod commented Oct 5, 2012

Wrong Neo4j version?

On Thu, Oct 4, 2012 at 4:32 PM, James Hughes notifications@github.comwrote:

The following traversal code is throwing an error for me,

organisation.doTraverse[DocumentLink](follow%28BREADTH_FIRST%29 -<- "ATTACHED_TO", 1 , ReturnAllButStartNode)

However the alternative options are fine,

organisation.doTraverse[DocumentLink](follow%28BREADTH_FIRST%29 -<-)

Is there something I am doing wrong in the first sample that is stopping
me from getting all but the start node? The error is below,

Caused by: java.lang.NoSuchMethodError: org.neo4j.kernel.Traversal.returnAllButStartNode()Lorg/neo4j/helpers/Predicate;
at org.neo4j.rest.graphdb.traversal.RestOldTraverserWrapper.fillFilter(RestOldTraverserWrapper.java:208) ~[neo4j-scala-0.2.0-M1.jar:na]
at org.neo4j.rest.graphdb.traversal.RestOldTraverserWrapper.traverse(RestOldTraverserWrapper.java:122) ~[neo4j-scala-0.2.0-M1.jar:na]
at org.neo4j.scala.RestTypedTraverser$$anon$3.doTraverse(RestTypedTraverser.scala:169) ~[neo4j-scala-0.2.0-M1.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_35]


Reply to this email directly or view it on GitHubhttps://github.com//issues/10.

@kouphax
Copy link
Author

kouphax commented Oct 5, 2012

I thought this but I'm using 1.7 with the 1.8-SNAPSHOT dependency.

On 5 Oct 2012, at 05:04, Christopher Schmidt notifications@github.com wrote:

Wrong Neo4j version?

On Thu, Oct 4, 2012 at 4:32 PM, James Hughes notifications@github.comwrote:

The following traversal code is throwing an error for me,

organisation.doTraverse[DocumentLink](follow%28BREADTH_FIRST%29 -<- "ATTACHED_TO", 1 , ReturnAllButStartNode)

However the alternative options are fine,

organisation.doTraverse[DocumentLink](follow%28BREADTH_FIRST%29 -<-)

Is there something I am doing wrong in the first sample that is stopping
me from getting all but the start node? The error is below,

Caused by: java.lang.NoSuchMethodError: org.neo4j.kernel.Traversal.returnAllButStartNode()Lorg/neo4j/helpers/Predicate;
at org.neo4j.rest.graphdb.traversal.RestOldTraverserWrapper.fillFilter(RestOldTraverserWrapper.java:208) ~[neo4j-scala-0.2.0-M1.jar:na]
at org.neo4j.rest.graphdb.traversal.RestOldTraverserWrapper.traverse(RestOldTraverserWrapper.java:122) ~[neo4j-scala-0.2.0-M1.jar:na]
at org.neo4j.scala.RestTypedTraverser$$anon$3.doTraverse(RestTypedTraverser.scala:169) ~[neo4j-scala-0.2.0-M1.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_35]


Reply to this email directly or view it on GitHubhttps://github.com//issues/10.


Reply to this email directly or view it on GitHub.

@FaKod
Copy link
Owner

FaKod commented Oct 5, 2012

They removed Traversal.returnAllButStartNode() from Neo4j 1.8...
I will try to fix that in 0.2.0-M2-SNAPSHOT

@kouphax
Copy link
Author

kouphax commented Oct 5, 2012

Is it possible to use evaluators in the current version or will that need to be added?

On 5 Oct 2012, at 12:09, Christopher Schmidt notifications@github.com wrote:

returnAllButStartNode

@FaKod
Copy link
Owner

FaKod commented Oct 8, 2012

There is no specific interace in neo4j-scala for Evaluators. I mapped the "old" Traverser to my TypedTraverser.
Ideas and code appreciated :-)

But I uploaded 0.2.0-M2-SNAPSHOT version with a Neo4j 1.8 dependency (without profiles). Hope that helps.

@FaKod FaKod closed this as completed Oct 11, 2012
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

2 participants