org.neo4j.graphdb.NotInTransactionException: All Modifying Neo4J operations must be executed within a transaction

Google Groups | Bo Ferri | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Kundera + Neo4j + Guice (guice-persist)

    Google Groups | 2 years ago | Bo Ferri
    org.neo4j.graphdb.NotInTransactionException: All Modifying Neo4J operations must be executed within a transaction

    Root Cause Analysis

    1. org.neo4j.graphdb.NotInTransactionException

      All Modifying Neo4J operations must be executed within a transaction

      at com.impetus.client.neo4j.Neo4JClient.checkActiveTransaction()
    2. com.impetus.client
      Neo4JClient.onPersist
      1. com.impetus.client.neo4j.Neo4JClient.checkActiveTransaction(Neo4JClient.java:807)
      2. com.impetus.client.neo4j.Neo4JClient.onPersist(Neo4JClient.java:280)
      2 frames
    3. Kundera
      KunderaEntityTransaction.commit
      1. com.impetus.kundera.client.ClientBase.persist(ClientBase.java:105)
      2. com.impetus.kundera.lifecycle.states.ManagedState.handleFlush(ManagedState.java:197)
      3. com.impetus.kundera.graph.Node.flush(Node.java:531)
      4. com.impetus.kundera.persistence.DefaultTransactionResource.onFlush(DefaultTransactionResource.java:88)
      5. com.impetus.kundera.persistence.DefaultTransactionResource.onCommit(DefaultTransactionResource.java:72)
      6. com.impetus.kundera.persistence.Coordinator.coordinate(Coordinator.java:79)
      7. com.impetus.kundera.persistence.KunderaEntityTransaction.onTransaction(KunderaEntityTransaction.java:128)
      8. com.impetus.kundera.persistence.KunderaEntityTransaction.commit(KunderaEntityTransaction.java:78)
      8 frames
    4. com.google.inject
      JpaLocalTxnInterceptor.invoke
      1. com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:87)
      1 frame