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

Neo4J - HttpNeo4jDialect runs into NPE during transaction commit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: 5.1.0.Final
    • Fix versions: None
    • Components: neo4j
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      HttpNeo4jDialect runs into NPE in getAssociation() (line 320) 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).

      It is actually the same behavior as encountered with BoltNeo4jDialect (see OGM-1303 Closed ). Only the following settings in the persistence.xml differ from the referenced issue:

      <property name="hibernate.ogm.datastore.provider" value="neo4j_http"/>
      <property name="hibernate.ogm.datastore.host" value="localhost:7474"/>
      

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: