• Post Reply Bookmark Topic Watch Topic
  • New Topic

why XAException on local transactions?  RSS feed

 
Yan Zhou
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Periodically, I am getting a strange error about global transaction since it is about heuristic hazard. However, I am not using global transaction in my entity bean code.

The JDBC driver is a non-XA Oracle 9.0/10.0 driver.

Why am I getting such exceptions on local transactions? If I restart Weblogic server, then everything is fine.

Thanks.
Yan

<Jul 13, 2005 2:47:07 PM EDT> <Error> <JTA> <BEA-110412> <Xid=BEA1-00A1FC8615E835ABE863(4768995),Status=Rolled back. [Re
ason=weblogic.transaction.internal.AppSetRollbackOnlyException],HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepl
iesOwedOthers=0,seconds since begin=11,seconds left=30,activeThread=Thread[ExecuteThread: '13' for queue: 'weblogic.kern
el.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourc
eImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=myserver),xar=weblogic.jd
bc.wrapper.JTSXAResourceImpl@48fd58,re-Registered = false),SCInfo[hubservices-3.5+myserver]=(state=rolledback),propertie
s=({weblogic.jdbc=t3://172.18.15.112:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL
=myserver+172.18.15.112:7001+hubservices-3.5+t3+, XAResources={},NonXAResources={})],CoordinatorURL=myserver+172.18.15.1
12:7001+hubservices-3.5+t3+) completed heuristically: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.
transaction.xa.XAException: No more data to read from socket)) >
Unable to roll back transaction
javax.transaction.SystemException: Heuristic hazard: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.t
ransaction.xa.XAException: No more data to read from socket))
at weblogic.transaction.internal.ServerTransactionImpl.internalRollback()V(ServerTransactionImpl.java:398)
at weblogic.transaction.internal.ServerTransactionImpl.rollback()V(ServerTransactionImpl.java:364)
at weblogic.transaction.internal.TransactionManagerImpl.rollback()V(TransactionManagerImpl.java:320)
at co.uk.realsolve.test.ejb.UnitTesterEJB.test(Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Object Lco.uk.re
alsolve.test.ejb.UnitTestResult;(UnitTesterEJB.java:194)
at co.uk.realsolve.test.ejb.UnitTesterEJB_mku7k0_EOImpl.test(Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Obj
ect Lco.uk.realsolve.test.ejb.UnitTestResult;(UnitTesterEJB_mku7k0_EOImpl.java:46)
at co.uk.realsolve.test.ejb.UnitTesterEJB_mku7k0_EOImpl_WLSkel.invoke(ILweblogic.rmi.spi.InboundRequest;Lweblogi
c.rmi.spi.OutboundResponse;Ljava.lang.Object Lweblogic.rmi.spi.OutboundResponse;(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lweblogic
.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse V(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lwe
blogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse V(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run()Ljava.lang.Object;(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.sec
urity.PrivilegedExceptionAction Ljava.lang.Object;(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogi
c.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedExceptionAction Ljava.lang.Object;(SecurityManage
r.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(Lweblogic.rmi.spi.InboundRequest V(BasicServerRef.java:41
5)
at weblogic.rmi.internal.BasicExecuteRequest.execute(Lweblogic.kernel.ExecuteThread V(BasicExecuteRequest.java:
30)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread V(Unknown Source)
<Jul 13, 2005 2:47:25 PM EDT> <Error> <JDBC> <BEA-001112> <Test "select count(*) from DUAL" set up for pool "HUB Connect
ion Pool" failed with exception: "java.sql.SQLException: Io exception: Connection aborted by peer".>
 
Vamsee Matta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also getting this exception. Could you please let me know hoe you have resolved this issue. When I googled the exception, people are saying it is caused by accesing a connection from the connection pool which is closed or timed out. Or it may be caused if the DB is down.
 
manikandan vnr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am also getting this exception.Here the database connections and connection pools are running fine.Kindly give valuable suggestions for this pertraining issue.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!