javax.jdo.JDOUserException: To perform writes on persistent data outside of a transaction, the nontransactionalWrite" 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 writes on persistent data outside of a transaction, the "nontransactionalWrite" property must be set on the PersistenceManagerFactory or Transaction.
via Oracle Community by 3004, 1 year ago
To perform writes on persistent data outside of a transaction, the "nontransactionalWrite" property must be set on the PersistenceManagerFactory or Transaction.
javax.jdo.JDOUserException: To perform writes on persistent data outside of a transaction, the nontransactionalWrite" property must be set on the PersistenceManagerFactory or Transaction.
at com.solarmetric.kodo.runtime.StateManagerImpl.makeDirty(StateManagerImpl.java:650)
at com.solarmetric.kodo.runtime.StateManagerImpl.makeDirty(StateManagerImpl.java:633)
at codos.security.Data.jdoMakeDirty(Data.java)
at javax.jdo.JDOHelper.makeDirty(JDOHelper.java:79)
at com.solarmetric.kodo.util.Proxies.makeDirty(Proxies.java:194)
at com.solarmetric.kodo.util.ProxyHashSet.add(ProxyHashSet.java:123)
at codos.security.Data._add(Data.java:28)
at codos.security.Data.add(Data.java:20)
at codos.security.Tester.test(Tester.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at codos.security.Tester.main(Tester.java:100)

Users with the same issue

You are the first who have seen this exception.

Write tip

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