[jboss-user] [EJB 3.0] - Transaction is not active during large DB activity process
do-not-reply at jboss.com
Thu Apr 9 09:40:08 EDT 2009
We've had this problem for a little while, but usually worked around it.
It's time we understood it a bit more instead of continously fudging our code to work around the problem.
Say we have 1 transaction. Within this transaction we're uploading a file with several thousand records.
Each record causes several DB look ups *each*, using standard EJB3 Entity beans each within their own EAO Session bean.
After all of this each row is then persisted as it represents an entity.
During the process, sometimes, but not always, we get:
ERROR org.hibernate.util.JDBCExceptionReporter - Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000002:95b7:49dcd694:8ff status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000002:95b7:49dcd694:8ff status: ActionStatus.ABORT_ONLY >)
This error will repeat indefinitely until JBoss is shut-down.
We're at a loss as to what's causing this. Transaction time-out is set to 20 mins at the moment, and this can happen 5 mins after submission.
Also, no transaction roll back exception appears (no exception is shown in the logs) to be thrown during the process.
Any help, advice, or pointers, would be appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224690#4224690
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224690
More information about the jboss-user