Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

why XAException on local transactions?

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

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.


<Jul 13, 2005 2:47:07 PM EDT> <Error> <JTA> <BEA-110412> <Xid=BEA1-00A1FC8615E835ABE863(4768995),Status=Rolled back. [Re
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
bc.wrapper.JTSXAResourceImpl@48fd58,re-Registered = false),SCInfo[hubservices-3.5+myserver]=(state=rolledback),propertie
=myserver+, XAResources={},NonXAResources={})],CoordinatorURL=myserver+
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(
at weblogic.transaction.internal.ServerTransactionImpl.rollback()V(
at weblogic.transaction.internal.TransactionManagerImpl.rollback()V(
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(
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lwe
blogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse V(
at weblogic.rmi.internal.BasicServerRef$;(
urity.PrivilegedExceptionAction Ljava.lang.Object;(
at;Lweblogi; Ljava.lang.Object;(SecurityManage
at weblogic.rmi.internal.BasicServerRef.handleRequest(Lweblogic.rmi.spi.InboundRequest V(
at weblogic.rmi.internal.BasicExecuteRequest.execute(Lweblogic.kernel.ExecuteThread V(
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest V(
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".>
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.
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.
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic