Errors due to mis-use of transactional datasource in JBoss

Solution Verified - Updated -

Issue

  • may manifest as a Transaction is not active error in the server.log
ERROR [STDERR] org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: afd5077:f0ac:54101eb0:2e5 status: ActionStatus.COMMITTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: afd5077:f0ac:54101eb0:2e5 status: ActionStatus.COMMITTED >)
ERROR [STDERR]  at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
ERROR [STDERR]  at <client.package.class.method>(<class>.java:<line>)
ERROR [STDERR] Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: afd5077:f0ac:54101eb0:2e5 status: ActionStatus.COMMITTED >
ERROR [STDERR]  at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:413)
ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
ERROR [STDERR]  at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

Environment

  • Red Hat JBoss Enterprise Application Platform 5
  • local-tx-datasource

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.