Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Transaction Timed Out Exception logged

瀏覽次數:23 次
跳到第一則未讀訊息

Steven Wong

未讀,
2002年1月3日 晚上8:34:232002/1/3
收件者:
Hi all,

Was wondering anyone can help shed some light on this exception log...

-------- exception log start ----------------
<2001/12/4 上午10時34分09秒> <Error> <JTA> <Transaction =
transaction=(IdHash=1874790,Name = [EJB
BOEPaymentBeanImpl.processEL61()],Xid=46:0f9292a01c1bf635,Status=Rolled
back. [Reason = weblogic.transaction.internal.TimedOutException: Transaction
timed out after 29seconds
tx = transaction=(IdHash=7901706,Name = [EJB
BOEPaymentBeanImpl.processEL61()],Xid=46:0f9292a01c1bf635,Status=Active,numR
epliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=29,seconds
left=30,weblogic.jdbc.jts.Connection,SCInfo[eldev]=(state=active),properties
=({weblogic.transaction.name=[EJB BOEPaymentBeanImpl.processEL61()],
weblogic.jdbc=t3://172.30.4.68:7001}))

Start server side stack trace:
weblogic.transaction.internal.TimedOutException: Transaction timed out after
29seconds
tx = transaction=(IdHash=7901706,Name = [EJB
BOEPaymentBeanImpl.processEL61()],Xid=46:0f9292a01c1bf635,Status=Active,numR
epliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=29,seconds
left=30,weblogic.jdbc.jts.Connection,SCInfo[eldev]=(state=active),properties
=({weblogic.transaction.name=[EJB BOEPaymentBeanImpl.processEL61()],
weblogic.jdbc=t3://172.30.4.68:7001}))
at
weblogic.transaction.internal.TransactionImpl.wakeUp(TransactionImpl.java:10
09)
at
weblogic.transaction.internal.TransactionManagerImpl.processTimedOutTransact
ions(TransactionManagerImpl.java:810)
at
weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManag
erImpl.java:791)
at
weblogic.transaction.internal.TransactionManagerImpl$1.run(TransactionManage
rImpl.java:757)
at java.lang.Thread.run(Thread.java:484)
End server side stack trace
],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds
left=30,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=rolledback,a
ssigned=eldev),SCInfo[eldev]=(state=rolledback),properties=({weblogic.transa
ction.name=[EJB BOEPaymentBeanImpl.processEL61()],
weblogic.jdbc=t3://172.30.4.68:7001})) completed heuristically:
Possible heuristic hazard situation with resource
'weblogic.jdbc.jts.Connection
Error = javax.transaction.xa.XAException: No connection associated with xid
= 46:0f9292a01c1bf635>
-------- exception log end -----------

The scenario when this happens is that I've got an object called BOServer
that looks up an Session Bean called BOPaymentBean and then makes a call
processEL61(Message msg) on it. The Message object msg, being passed in the
call is a Remote object. Within BOPaymentBean, two Entity Beans are created.
The BOPaymentBean then updates certain attributes on the Message object
(msg) via public methods of the Message class. The method then returns.

All the EJBs are configured to have container managed transactions with the
transaction attribute REQUIRED.

After the method returns, this exception is logged. However, both the entity
beans were created successfully, ie. the records were inserted into the
database successfully.

Would appreciate any help here.

Thanks,

Steven.

Rob Woollen

未讀,
2002年1月3日 晚上9:39:202002/1/3
收件者:
It looks like the transaction timed-out after 30 seconds so the JTA Transaction
manager called rollback on the transaction. During rollback, it attempted to
rollback the resource (in your case a database connection), but this resource
(for some reason) had already committed the transaction.

I'm not sure what's causing this. You might consider posting in the
transaction newsgroup along with some info about your JDBC driver.

-- Rob

0 則新訊息