java.lang.StackOverflowError in org.jboss.jca during XAManagedConnection.end error handling in JBoss EAP
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- 8.0.x
- IronJacamar
- 1.3
- 1.4
- 3.0.8
Issue
-
A connection error during transaction completion results in infinite recursion/looping that leads to a
StackOverflowError -
The stack frames below are seen to be repeating within the stack trace
... java.lang.StackOverflowError ... at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.delistResource(TransactionImple.java:914) at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener.haltCatchFire(TxConnectionListener.java:768) at org.jboss.jca.core.connectionmanager.listener.AbstractConnectionListener.connectionErrorOccurred(AbstractConnectionListener.java:468) at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.broadcastConnectionError(BaseWrapperManagedConnection.java:672) at org.jboss.jca.adapters.jdbc.xa.XAManagedConnection.end(XAManagedConnection.java:301) at org.jboss.jca.core.tx.jbossts.XAResourceWrapperImpl.end(XAResourceWrapperImpl.java:118) ...
Resolution
- This issue1 had a partial fix release in This content is not included.EAP 7.1 cumulative patch (CP) 2 and later releases. 1: See This content is not included.JBEAP-14870 / This content is not included.JBEAP-14098
- The full fix is available in 7.4.23+, 8.0 update 7+, and 8.1.0+:
- 7.4.23: This content is not included.JBEAP-29909
- 8.0 update 7: This content is not included.JBEAP-29445
Root Cause
This is a known defect (This content is not included.JBJCA-1368 and then subsequently This content is not included.JBJCA-1484).
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.