org.jpox.exceptions.TransactionNotActiveException: Transaction is not active. You either need to define a transaction around this, or run your PersistenceManagerFactory with 'NontransactionalRead' set to 'true'

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 romaframework by yuzili
, 1 year ago
Transaction is not active. You either need to define a transaction around this, or run your PersistenceManagerFactory with 'NontransactionalRead' set to 'true'
org.jpox.exceptions.TransactionNotActiveException: Transaction is not active. You either need to define a transaction around this, or run your PersistenceManagerFactory with 'NontransactionalRead' set to 'true'
at org.jpox.store.rdbms.RDBMSNonmanagedTransaction.getConnection(RDBMSNonmanagedTransaction.java:221)
at org.jpox.store.rdbms.AbstractRDBMSTransaction.getConnection(AbstractRDBMSTransaction.java:97)
at org.jpox.store.rdbms.RDBMSManager.getConnection(RDBMSManager.java:426)
at org.jpox.store.rdbms.request.UpdateRequest.execute(UpdateRequest.java:180)
at org.jpox.store.rdbms.table.ClassTable.update(ClassTable.java:2573)
at org.jpox.store.StoreManager.update(StoreManager.java:967)
at org.jpox.state.StateManagerImpl.flush(StateManagerImpl.java:4855)
at org.jpox.state.StateManagerImpl.postWriteField(StateManagerImpl.java:4614)
at org.jpox.state.StateManagerImpl.setStringField(StateManagerImpl.java:2519)
at org.romaframework.module.admin.domain.Environment.jdoSetdescription(Environment.java)
at org.romaframework.module.admin.domain.Environment.setDescription(Environment.java:57)
at org.romaframework.module.admin.install.AdminApplicationInstaller.install(AdminApplicationInstaller.java:40)
at org.romaframework.module.users.install.UsersApplicationInstaller.install(UsersApplicationInstaller.java:35)
at org.romaframework.test.presentation.install.CustomApplicationInstaller.install(CustomApplicationInstaller.java:10)
at org.romaframework.module.admin.install.AdminApplicationInstaller.startup(AdminApplicationInstaller.java:31)
at org.romaframework.core.module.ModuleManager.startup(ModuleManager.java:44)
at org.romaframework.core.config.RomaApplicationContext.init(RomaApplicationContext.java:55)
at org.romaframework.core.config.RomaApplicationContext.setup(RomaApplicationContext.java:124)
at org.romaframework.aspect.view.echo2.Echo2StartupServlet.init(Echo2StartupServlet.java:60)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:329)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

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.