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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
To perform reads on persistent data outside of a transaction, the "nontransactionalRead" property must be set on the PersistenceManagerFactory or Transaction.
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(Unknown Source)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(Unknown Source)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.createFromResultSet(Unknown Source)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager$2.getResultObject(Unknown Source)
at com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(Unknown Source)
at com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(Unknown Source)
at java.util.AbstractList$Itr.next(AbstractList.java:417)
at com.solarmetric.kodo.runtime.ResultListIterator.next(Unknown Source)
at java.util.LinkedList.addAll(LinkedList.java:259)
at java.util.LinkedList.addAll(LinkedList.java:232)
at com.ysoft.jdo.book.resort.local.client.Client.viewReservations(Client.java:146)
at com.ysoft.jdo.book.resort.local.client.View.execute(Client.java:349)
at com.ysoft.jdo.book.resort.local.client.Client.execute(Client.java:115)
at com.ysoft.jdo.book.resort.local.client.Client.run(Client.java:92)
at com.ysoft.jdo.book.resort.local.client.Client.main(Client.java:50)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.