javax.jdo.JDOUserException: To perform reads on persistent data outside of a transaction, the "nontransactionalRead" property must be set on the PersistenceManagerFactory or Transaction.

Oracle Community | 3004 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Query returns results before tx starts

    Oracle Community | 1 decade ago | 3004
    javax.jdo.JDOUserException: To perform reads on persistent data outside of a transaction, the "nontransactionalRead" property must be set on the PersistenceManagerFactory or Transaction.

    Root Cause Analysis

    1. javax.jdo.JDOUserException

      To perform reads on persistent data outside of a transaction, the "nontransactionalRead" property must be set on the PersistenceManagerFactory or Transaction.

      at com.solarmetric.kodo.runtime.PersistenceManagerImpl.checkNontransactionalRead()
    2. com.solarmetric.kodo
      LazyResultList.get
      1. com.solarmetric.kodo.runtime.PersistenceManagerImpl.checkNontransactionalRead(Unknown Source)
      2. com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(UnknownSource)
      3. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.createFromResultSet(Unknown Source)
      4. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager$2.getResultObject(Unknown Source)
      5. com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(UnknownSource)
      6. com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(Unknown Source)
      6 frames
    3. Java RT
      AbstractList$Itr.next
      1. java.util.AbstractList$Itr.next(AbstractList.java:417)
      1 frame
    4. com.solarmetric.kodo
      ResultListIterator.next
      1. com.solarmetric.kodo.runtime.ResultListIterator.next(Unknown Source)
      1 frame
    5. Java RT
      LinkedList.addAll
      1. java.util.LinkedList.addAll(LinkedList.java:259)
      2. java.util.LinkedList.addAll(LinkedList.java:232)
      2 frames