This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Transaction timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Transaction timeout" Watch "Transaction timeout" New topic

Transaction timeout

sai kinnera
Ranch Hand

Joined: Aug 12, 2004
Posts: 52
Hi All,
I am using weblogic 8.1 and struts. When the transaction attribute for
the method persist(dto) in my EJB is 'Required', I am getting this exception. The caller is not in transaction. No clue. Can anybody suggest
any fix for this.

The stack trace:
commons.exception.ApplicationException: EJB Exception: ; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.IllegalStateException: Cannot mark the transaction for rollback. xid=BEA1-0015FDE85573DE008E2D, status=Rolled back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 30 seconds
Xid=BEA1-0015FDE85573DE008E2D(30568978),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=30,seconds left=30,activeThread=Thread[ExecuteThread: '12' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[OatmialResource]=(ServerResourceInfo[OatmialResource]=(state=started,assigned=none),,re-Registered = false),SCInfo[assetsDomain+ManagedServer]=(state=active),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=ManagedServer+, XAResources={},NonXAResources={})],CoordinatorURL=ManagedServer+]
at assets.inquiry.web.inquirycase.action.TestClientAddressUpdateAction.executeAction(
at assets.commons.web.action.BasicAction.execute(

Thanks in advance,
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
The transaction on the container is taking more than the maximum set for it (30s) you�ll have to check your application or change the transaction time out time using the admin console.
sai kinnera
Ranch Hand

Joined: Aug 12, 2004
Posts: 52
Thanks Marcos!
The problem has been that it could not find a record in the mainframe.
May be held up searching the record and meanwhile the transaction timed out.
Now proper record number is being sent that solved the problem.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Should this method only be doing a find, are you sure that you want the method to run in a transaction?

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
I agree. Here's the link:
subject: Transaction timeout
jQuery in Action, 3rd edition