kodo.jdo.UserException: To perform this operation, you must be withing a transaction, or your settings must allow nontransactional writes and must not detach all nontransactional reads.

Oracle Community | 666705 | 10 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

    Unable to persist data via  kodo

    Oracle Community | 10 years ago | 666705
    kodo.jdo.UserException: To perform this operation, you must be withing a transaction, or your settings must allow nontransactional writes and must not detach all nontransactional reads.

    Root Cause Analysis

    1. kodo.jdo.UserException

      To perform this operation, you must be withing a transaction, or your settings must allow nontransactional writes and must not detach all nontransactional reads.

      at org.apache.openjpa.kernel.BrokerImpl.assertWriteOperation()
    2. OpenJPA Aggregate Jar
      BrokerImpl.attach
      1. org.apache.openjpa.kernel.BrokerImpl.assertWriteOperation(BrokerImpl.java:4258)
      2. org.apache.openjpa.kernel.BrokerImpl.attach(BrokerImpl.java:3123)
      2 frames
    3. kodo.kernel
      KodoBroker.attach
      1. kodo.kernel.KodoBroker.attach(KodoBroker.java:245)
      1 frame
    4. OpenJPA Aggregate Jar
      DelegatingBroker.attach
      1. org.apache.openjpa.kernel.DelegatingBroker.attach(DelegatingBroker.java:1120)
      1 frame
    5. kodo.jdo
      PersistenceManagerImpl.makePersistent
      1. kodo.jdo.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:476)
      1 frame