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'

romaframework | yuzili | 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

    Latest Roma Test Presentation Doesn't Work

    romaframework | 1 decade ago | yuzili
    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'

    Root Cause Analysis

    1. 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()
    2. org.jpox.store
      StoreManager.update
      1. org.jpox.store.rdbms.RDBMSNonmanagedTransaction.getConnection(RDBMSNonmanagedTransaction.java:221)
      2. org.jpox.store.rdbms.AbstractRDBMSTransaction.getConnection(AbstractRDBMSTransaction.java:97)
      3. org.jpox.store.rdbms.RDBMSManager.getConnection(RDBMSManager.java:426)
      4. org.jpox.store.rdbms.request.UpdateRequest.execute(UpdateRequest.java:180)
      5. org.jpox.store.rdbms.table.ClassTable.update(ClassTable.java:2573)
      6. org.jpox.store.StoreManager.update(StoreManager.java:967)
      6 frames
    3. org.jpox.state
      StateManagerImpl.setStringField
      1. org.jpox.state.StateManagerImpl.flush(StateManagerImpl.java:4855)
      2. org.jpox.state.StateManagerImpl.postWriteField(StateManagerImpl.java:4614)
      3. org.jpox.state.StateManagerImpl.setStringField(StateManagerImpl.java:2519)
      3 frames
    4. org.romaframework.module
      UsersApplicationInstaller.install
      1. org.romaframework.module.admin.domain.Environment.jdoSetdescription(Environment.java)
      2. org.romaframework.module.admin.domain.Environment.setDescription(Environment.java:57)
      3. org.romaframework.module.admin.install.AdminApplicationInstaller.install(AdminApplicationInstaller.java:40)
      4. org.romaframework.module.users.install.UsersApplicationInstaller.install(UsersApplicationInstaller.java:35)
      4 frames
    5. org.romaframework.test
      CustomApplicationInstaller.install
      1. org.romaframework.test.presentation.install.CustomApplicationInstaller.install(CustomApplicationInstaller.java:10)
      1 frame
    6. org.romaframework.module
      AdminApplicationInstaller.startup
      1. org.romaframework.module.admin.install.AdminApplicationInstaller.startup(AdminApplicationInstaller.java:31)
      1 frame
    7. org.romaframework.core
      RomaApplicationContext.setup
      1. org.romaframework.core.module.ModuleManager.startup(ModuleManager.java:44)
      2. org.romaframework.core.config.RomaApplicationContext.init(RomaApplicationContext.java:55)
      3. org.romaframework.core.config.RomaApplicationContext.setup(RomaApplicationContext.java:124)
      3 frames
    8. org.romaframework.aspect
      Echo2StartupServlet.init
      1. org.romaframework.aspect.view.echo2.Echo2StartupServlet.init(Echo2StartupServlet.java:60)
      1 frame
    9. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383)
      2. org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:329)
      3. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)
      4. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
      5. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      5 frames
    10. org.mortbay.http
      HttpContext.handle
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      1 frame
    11. Jetty Server
      WebApplicationContext.handle
      1. org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
      1 frame
    12. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      2. org.mortbay.http.HttpServer.service(HttpServer.java:909)
      3. org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
      4. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
      5. org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
      6. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
      6 frames
    13. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      2 frames