"ARJUNA016009: Caught:: java.lang.NullPointerException" for Xid from Oracle XAResource in JBoss EAP
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- Oracle
Issue
Encountering a repeated warning in the JBoss server.log
... WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016009: Caught:: java.lang.NullPointerException
at com.arjuna.ats.jta.xa.XidImple.copy(XidImple.java:190)
at com.arjuna.ats.jta.xa.XidImple.<init>(XidImple.java:69)
at com.arjuna.ats.internal.jta.recovery.arjunacore.RecoveryXids.contains(RecoveryXids.java:153)
at com.arjuna.ats.internal.jta.recovery.arjunacore.RecoveryXids.updateIfEquivalentRM(RecoveryXids.java:203)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.refreshXidScansForEquivalentXAResourceImpl(XARecoveryModule.java:861)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecoveryFirstPass(XARecoveryModule.java:629)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:189)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:765)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:377)
Resolution
- This issue lies outside of the EAP implementation.
- Contact Oracle Support for additional assistance.
- There is an open This content is not included.issue to improve the error reporting (in the EAP layer) for the corrupt Xid so that the specific pool associated with the invalid Xid can be identified for troubleshooting (i.e. making it possible to identify the database endpoint from which the invalid Xid was returned).
Root Cause
- The global transaction identifier is
nullfor an Content from javaee.github.io is not included.Xid returned by Oracle when the Content from javaee.github.io is not included.XAResource.recover() method was called. - This is not compliant with JTA which requires a (non-null) Content from javaee.github.io is not included.byte array.1
- The Xid instance returned by the resource is invalid/corrupt (missing data required for recovery) and is, therefore, non-recoverable.
1
See also This content is not included.This content is not included.https://bugzilla.redhat.com/show_bug.cgi?id=1353157
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.