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 :

Oracle Community | 3004 | 1 decade ago
  1. 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 :
  2. 0

    Problem with JBoss and KODO J2EE Tutorial

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: You cannot commit during a managed transaction!
  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

    Hibernate | JBOSS MSSQL datasource error

    Stack Overflow | 6 years ago | MMRUser
    java.sql.SQLException: You cannot commit with autocommit set!
  6. 0

    JDBCStateRepository fails with managed DataSource

    GitHub | 3 years ago | chkal
    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! [code=0;state=null] When checking the jboss log, it is clear that kodo is trying to commit the sequence update :

      at org.jboss.resource.adapter.jdbc.WrappedConnection.commit()
    2. JBoss Application Server Connector
      WrappedConnection.commit
      1. org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:477)
      1 frame
    3. com.solarmetric.kodo
      PersistenceManagerImpl.makePersistent
      1. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.commit(SQLExecutionManagerImpl.java:783)
      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:598)
      5. com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1418)
      6. com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1348)
      6 frames
    4. com.titan.kodojdotest
      CarBean.edit
      1. com.titan.kodojdotest.ejb.CarBean.edit(CarBean.java:51)
      1 frame