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

Add Support for Neo4j Version 5 #391

Open
seabamirum opened this issue Feb 24, 2023 · 1 comment
Open

Add Support for Neo4j Version 5 #391

seabamirum opened this issue Feb 24, 2023 · 1 comment

Comments

@seabamirum
Copy link

I migrated to Neo4j version 5.4, and noticed that spatial functions are no longer working. The getRelationships() method in Neo4j v5 now returns a ResourceIterable instead of Iterable, so a NoSuchMethodError is thrown.

https://github.com/neo4j/neo4j/blob/5.4/community/graphdb-api/src/main/java/org/neo4j/graphdb/Node.java

Caused by: org.neo4j.driver.exceptions.ClientException: Failed to invoke procedure `spatial.withinDistance`: Caused by: java.lang.NoSuchMethodError: 'java.lang.Iterable org.neo4j.graphdb.Node.getRelationships(org.neo4j.graphdb.Direction, org.neo4j.graphdb.RelationshipType[])'
	at org.neo4j.driver.internal.util.ErrorUtil.newNeo4jError(ErrorUtil.java:76) ~[neo4j-java-driver-5.4.0.jar:5.4.0-94f9c20aa48a5f4328c03953bf1bc64dab271784]
@seabamirum
Copy link
Author

Compiled a local branch against Neo4j5 and this seems to work again. Most of the changes were related to logging. Not sure how to get this into a PR though.

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