TX rolled back as expected, but weblogic still throws a TimedOutException
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   asankha_perera
Posted On:   Tuesday, September 4, 2001 09:51 PM

Hi, I am using WebLogic 6.0 SP2 with the jDriver for MSSQL 7. I have a stand alone Java process which creates a RMI remote object (an Agent), and binds it to the JNDI. This agent runs in this seperate JVM, and my application runs on WebLogic. My stateless session beans calls methods on this Agent. The methods called by the session beans are declared as using transactions. When a stateless session bean calls a method on this agent, and returns back to the beans code, it might decide to roll back the Tx. Hence the CMT bean calls setRollBackOnly() to roll back the Tx. Everything works fine, and when the bean calls setRollBackOnly(), all DB updates done so far by   More>>

Hi,

I am using WebLogic 6.0 SP2 with the jDriver for MSSQL 7.

I have a stand alone Java process which creates a RMI remote object (an
Agent), and binds it to the JNDI. This agent runs in this seperate JVM, and
my application runs on WebLogic.

My stateless session beans calls methods on this Agent. The methods called
by the session beans are declared as using transactions. When a stateless
session bean calls a method on this agent, and returns back to the beans
code, it might decide to roll back the Tx. Hence the CMT bean calls
setRollBackOnly() to roll back the Tx.

Everything works fine, and when the bean calls setRollBackOnly(), all DB
updates done so far by the Bean, and the Agent gets rolled back nicely.
Weblogic shows the rolled back Tx on its console as

Total Rolled Back: n (say 10)
Application Rollbacks: n (say 10)
Total Heuristics: 0

After around 30 seconds I get a
"weblogic.transaction.internal.TimedOutException" on the Weblogic console,
and this changes to

Total Rolled Back: n (say 10)
Application Rollbacks: n (say 10)
Total Heuristics: 1

And a big error message is displayed on the console as follows.

Any ideas ?
Thanks,
asankha


transaction=(IdHash=6893072,Name =
[EJB CActionBeanImpl.execute()],Xid=6:206d1289f6114598,Status=Rolled back.
[Reason = weblogic.transa
ction.internal.TimedOutException: Transaction timed out after 29seconds
tx = transaction=(IdHash=6333318,Name = [EJB
CActionBeanImpl.execute()],Xid=6:206d1289f6114598,Statu
s=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since
begin=29,seconds left=30,weblogic.j
dbc.jts.Connection,SCInfo[myserver]=(state=active),properties=({weblogic.tra
nsaction.name=[EJB CActi
onBeanImpl.execute()], weblogic.jdbc=t3://10.2.1.133:7001,
weblogic.debug.DebugContext=weblogic.util
s.DebugContext@1ce060}))

Start server side stack trace:
weblogic.transaction.internal.TimedOutException: Transaction timed out after
29seconds
tx = transaction=(IdHash=6333318,Name = [EJB
CActionBeanImpl.execute()],Xid=6:206d1289f6114598,Statu
s=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since
begin=29,seconds left=30,weblogic.j
dbc.jts.Connection,SCInfo[myserver]=(state=active),properties=({weblogic.tra
nsaction.name=[EJB CActi
onBeanImpl.execute()], weblogic.jdbc=t3://10.2.1.133:7001,
weblogic.debug.DebugContext=weblogic.util
s.DebugContext@1ce060}))
at
weblogic.transaction.internal.TransactionImpl.wakeUp(TransactionImpl.java:10
09)
at
weblogic.transaction.internal.TransactionManagerImpl.processTimedOutTransact
ions(Transact
ionManagerImpl.java:810)
at
weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManag
erImpl.java:7
91)
at
weblogic.transaction.internal.TransactionManagerImpl$1.run(TransactionManage
rImpl.java:75
7)
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,assigned=myserver),SCInfo[m
yserver]=(state=rolledba
ck),properties=({weblogic.transaction.name=[EJB CActionBeanImpl.execute()],
weblogic.jdbc=t3://10.2.
1.133:7001,
weblogic.debug.DebugContext=weblogic.utils.DebugContext@4f3710})) completed
heuristicall
y:
Possible heuristic hazard situation with resource
'weblogic.jdbc.jts.Connection
Error = javax.transaction.xa.XAException: No connection associated with xid
= 6:206d1289f6114598>

   <<Less
About | Sitemap | Contact