Skip to content

NoSuchMethodError: void org.neo4j.internal.kernel.api.Read.relationshipProperties(...) #352

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

Closed
JohT opened this issue Apr 15, 2025 · 3 comments
Labels
BUG Something isn't working

Comments

@JohT
Copy link

JohT commented Apr 15, 2025

Describe the bug

When I try to create a new projection with gds.graph.project using Cypher with graph-data-science version 2.16.0, I get the following error message:

java.lang.NoSuchMethodError: 'void org.neo4j.internal.kernel.api.Read.relationshipProperties(long, org.neo4j.storageengine.api.Reference, org.neo4j.storageengine.api.PropertySelection, org.neo4j.internal.kernel.api.PropertyCursor)

Details

Query

  CALL gds.graph.project(
    $dependencies_projection,
    $dependencies_projection_node, 
      'DEPENDS_ON', {
        relationshipProperties: [$dependencies_projection_weight_property],
        nodeProperties: ['incomingDependencies', 'outgoingDependencies', 'testMarkerInteger']
      }
  )
 YIELD graphName, nodeCount, relationshipCount
RETURN graphName, nodeCount, relationshipCount

Query Response

{
  "code": "Neo.ClientError.Procedure.ProcedureCallFailed",
  "message": "Failed to invoke procedure `gds.graph.project`: Caused by: java.lang.NoSuchMethodError: 'void org.neo4j.internal.kernel.api.Read.relationshipProperties(long, org.neo4j.storageengine.api.Reference, org.neo4j.storageengine.api.PropertySelection, org.neo4j.internal.kernel.api.PropertyCursor)'"
}

Parameters:

{
  "dependencies_projection": "artifact-centrality", 
  "dependencies_projection_node": "Artifact", 
  "dependencies_projection_weight_property": "weight"
}

To Reproduce

  • Java: OpenJDK Runtime Environment Temurin-21.0.6+7 (build 21.0.6+7-LTS)
  • GDS version: 2.16.0
  • Neo4j version: 5.26.5 community edition
  • Operating system: Ubuntu 22.04.5

Steps to reproduce the behavior

Example pull requests that reproduce the issue:

@JohT JohT added the BUG Something isn't working label Apr 15, 2025
@knutwalker
Copy link
Member

Hey, thanks for the issue.

GDS 2.16 is not compatible with Neo4j 5.26, it requires 2025.03.
The latest version to support Neo4j 5.26 is GDS 2.13.
See out compatibility table for details.

Starting with GDS 2.13, a single GDS version is only compatible with a single database version, they need to be updated together.

@knutwalker knutwalker closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2025
@JohT
Copy link
Author

JohT commented Apr 16, 2025

@knutwalker, one question comes into my mind: Wouldn't it make sense to bump the major version of graph-data-science in this case?

@knutwalker
Copy link
Member

@JohT I understand it would be beneficial. However, the actual GDS API itself does not have a breaking change and we have historically not included the DB support in the versioning semantics. For any Neo4j 5.x version, it has always been true that you need a new GDS version (it might have been a patch release, e.g. the 2.6 series). Since Neo4j versions are end-of-life when the next one releases (except for the LTS versions 4.4 and 5.26), we've aligned ourselves with that as keeping backwards compatibility for unsupported versions has been a hindrance for us and the database itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants