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

java:ArtifactDependency query fails because org.neo4j.driver.summary.Notification.position() returns null #736

Open
JohT opened this issue Dec 18, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@JohT
Copy link

JohT commented Dec 18, 2024

Error-Message

2024-12-15 08:41:25.422 [main] ERROR Main - -> Analysis failed.-> Cannot execute query for rule 'Concept{id='java:ArtifactDependency', description='Creates a new DEPENDS_ON relationship between artifacts or updates an existing one with a 'used'
property if there are type dependencies between them, i.e. if an artifact contains a type with a fully
qualified name which a type from another artifact requires.', ruleSource=META-INF/jqassistant-rules/java.xml}'.-> Cannot invoke "org.neo4j.driver.summary.InputPosition.offset()" because the return value of "org.neo4j.driver.summary.Notification.position()" is null

Failing pull request: JohT/code-graph-analysis-pipeline#290

Environment

  • neo4j-community-5.26.0 and 5.26.1 (issue doesn't happen with 5.25.x)
  • jqassistant-commandline-neo4jv5-2.3.1
  • OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)

Reproduce

👉 Failed pull request: JohT/code-graph-analysis-pipeline#318

Some Source Code Locations

Manual java:ArtifactDependency query result:

Artifact,Dependencies
/axon-modelling-4.10.3.jar,[]
/axon-spring-boot-autoconfigure-4.10.3.jar,[]
/axon-eventsourcing-4.10.3.jar,[]
/axon-configuration-4.10.3.jar,[]
/axon-test-4.10.3.jar,[]
/axon-disruptor-4.10.3.jar,[]
/axon-tracing-opentelemetry-4.10.3.jar,[]
/axon-server-connector-4.10.3.jar,[]

👉 Interestingly, the collection of dependencies is empty. The query works in Neo4j browser (commenting out IN TRANSACTION) but not within analyze with `java:ArtifactDependencies

@DirkMahler DirkMahler added the bug label Dec 20, 2024
@DirkMahler DirkMahler added this to the 2.6 milestone Dec 20, 2024
@Bramaten
Copy link
Contributor

The branch mentioned no longer exists. If the issue is still valid, please provide the information so that it can be reproduced.

@JohT
Copy link
Author

JohT commented Jan 27, 2025

@Bramaten, i let Renovate create another pull request. It shouldn't matter that it is now version Neo4j 5.26.1 instead of 5.26.0. The error message looks the same. I've edited my description above (branch and pull request).

@DirkMahler
Copy link
Member

The NPE could be reproduced, will be fixed in 2.6.0-RC1

@DirkMahler DirkMahler self-assigned this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants