java.sql.SQLException: You cannot commit during a managed transaction!

Oracle Community | 3004 | 1 decade ago
  1. 0

    Problem with JBoss and KODO J2EE Tutorial

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: You cannot commit during a managed transaction!
  2. 0

    java.sql.SQLException: You cannot commit during a managed transaction!

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: You cannot commit during a managed transaction! [code=0;state=null] When checking the jboss log, it is clear that kodo is trying to commit the sequence update :
  3. 0

    How to manually commit a managed transaction

    Stack Overflow | 6 years ago | vz0
    java.sql.SQLException: You cannot commit during a managed transaction!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JDBCStateRepository fails with managed DataSource

    GitHub | 3 years ago | chkal
    java.sql.SQLException: You cannot commit during a managed transaction!
  6. 0

    Hibernate in JBoss: You cannot commit during a managed transaction!

    objectmix.com | 1 year ago
    java.sql.SQLException: You cannot commit during a managed transaction!

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.SQLException

      You cannot commit during a managed transaction!

      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit()
    2. JBoss Application Server Connector
      WrappedConnection.commit
      1. org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:400)
      2. org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:477)
      2 frames
    3. com.solarmetric.kodo
      PersistenceManagerImpl.makePersistent
      1. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.commit(SQLExecutionManagerImpl.java:765)
      2. com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.updateSequence(DBSequenceFactory.java:267)
      3. com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:111)
      4. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newDataStoreId(JDBCStoreManager.java:558)
      5. com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1450)
      6. com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1380)
      6 frames
    4. samples.j2ee.ejb
      CarBean.edit
      1. samples.j2ee.ejb.CarBean.edit(CarBean.java:51)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    6. JBoss Application Server Server
      StatelessSessionContainer$ContainerInterceptor.invoke
      1. org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
      1 frame
    7. JBoss Application Server Connector
      CachedConnectionInterceptor.invoke
      1. org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      1 frame
    8. JBoss Application Server Server
      Container.invoke
      1. org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
      2. org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      3. org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
      4. org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
      5. org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
      6. org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      7. org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      8. org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
      9. org.jboss.ejb.Container.invoke(Container.java:674)
      9 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:324)
      3 frames
    10. org.jboss.mx
      ReflectedMBeanDispatcher.invoke
      1. org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      1 frame
    11. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      1 frame
    12. JBoss Application Server Server
      ClientContainer.invoke
      1. org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
      2. org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83)
      3. org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      4. org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
      5. org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
      6. org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      6 frames
    13. Unknown
      $Proxy26.edit
      1. $Proxy26.edit(Unknown Source)
      1 frame
    14. org.apache.jsp
      Save_jsp._jspService
      1. org.apache.jsp.Save_jsp._jspService(Save_jsp.java:69)
      1 frame
    15. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      1 frame
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    17. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper..java:210)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      3 frames
    18. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    19. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      2. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      3. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      3 frames
    20. org.mortbay.http
      HttpContext.handle
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      1 frame
    21. Jetty Server
      WebApplicationContext.handle
      1. org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      1 frame
    22. org.mortbay.http
      HttpServer.service
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      2. org.mortbay.http.HttpServer.service(HttpServer.java:863)
      2 frames
    23. org.jboss.jetty
      Jetty.service
      1. org.jboss.jetty.Jetty.service(Jetty.java:460)
      1 frame
    24. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      2. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      3. org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      4. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      4 frames
    25. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
      2 frames