javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset by peer: socket write error

Solution Verified - Updated -

Issue

  • We are getting XA Exceptions in jboss logs
  • We're seeing a lot of these warning messages in our production logs.
INFO   | jvm 1    | 2015/05/25 00:46:13 | 00:46:13,052 WARN  [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (ajp-/0.0.0.0:8109-55) IJ000305: Connection error occured: org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@5dd069b6[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@1dcc5bd8 connection handles=0 lastUse=1432529162287 trackByTx=true pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@5eafbd4 pool internal context=SemaphoreArrayListManagedConnectionPool@26b2a405[pool=TestDS] xaResource=XAResourceWrapperImpl@3e222dcf[xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@1dcc5bd8 pad=false overrideRmValue=false productName=Microsoft SQL Server productVersion=11.00.3153 jndiName=java:/TestDS] txSync=null]: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset by peer: socket write error
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:647) [_KamanDirectV4_slib_ssqljdbc.jar:]
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:679) [_KamanDirectV4_slib_ssqljdbc.jar:]
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at org.jboss.jca.adapters.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:259)
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at org.jboss.jca.core.tx.jbossts.XAResourceWrapperImpl.start(XAResourceWrapperImpl.java:191)
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:636)
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:397)
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener$TransactionSynchronization.enlist(TxConnectionListener.java:607)
INFO   | jvm 1    | 2015/05/25 00:46:13 |   at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener.enlist(TxConnectionListener.java:265)
Caused by: javax.resource.ResourceException: IJ000461: Could not enlist in transaction on entering meta-aware object
...

Caused by: javax.transaction.SystemException: IJ000356: Failed to enlist: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffff959e4775:-59a628f0:555c6cde:a222a3 status: ActionStatus.ABORT_ONLY >
....

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content