java.lang.StackOverflowError in org.jboss.jca during XAManagedConnection.end error handling in JBoss EAP

Solution Verified - Updated

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

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

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.