Uploaded image for project: 'Hibernate OGM'
  1. OGM-1303

Remote Neo4j - NPE during transaction commit when dealing with inverse relations

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.Final
    • Fix Version/s: 5.2.0.Alpha1
    • Component/s: neo4j
    • Labels:
      None

      Description

      BoltNeo4jDialect runs into NPE in getAssociation() (line 409) during a commit of a transaction after persisting of an object graph with bidirectional and polymorphic associations.

      Corresponding test case can be found in https://github.com/dadrus/jpa-unit/blob/13-neo4j-support/integration-test/base/src/main/java/eu/drus/jpa/unit/test/AbstractCleanupTest.java (test1(), line 37). It can be started using https://github.com/dadrus/jpa-unit/blob/13-neo4j-support/integration-test/jpa-neo4j-hibernate-ogm-test/src/test/java/eu/drus/jpa/unit/test/CleanupTest.java (@Ignore on a class level needs to be removed). Prerequisite to run the test is a running Neo4j instance (see https://github.com/dadrus/jpa-unit/blob/13-neo4j-support/integration-test/jpa-neo4j-hibernate-ogm-test/src/test/resources/META-INF/persistence.xml for further settings).

      Is the given object graph not supported by design or did I run indeed into a bug?

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: