-
Bug
-
Resolution: Done
-
Minor
-
fuse-7.8-GA
-
None
-
False
-
False
-
%
-
-
Undefined
-
As commented on TEIID-6040,
- Fuse Spring Boot using xa datasource shows NullPointerException on jta periodic recovery every 2 mins.
- This NullPointerException disappear after executing any xa transaction on Fuse spring boot.
This is because jta-5.9.8.Final-redhat-00002.jar com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecoveryFirstPass() method does not handle a null value:
private final void xaRecoveryFirstPass(XAResource xares) { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug("xarecovery of " + xares); } Xid[] trans = null; try { trans = xares.recover(XAResource.TMSTARTRSCAN); if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug("Found " + ((trans != null) ? trans.length : 0) + " xids in doubt"); } if (jtaLogger.logger.isTraceEnabled()) { for (Xid xid : trans) { // no null check for "trans"
Please do the null check like the one for debug level log in the same method:
jtaLogger.logger.debug("Found " + ((trans != null) ? trans.length : 0) + " xids in doubt");
- is blocked by
-
JBTM-3414 narayana-jta throws NPE during recovering when TRACE logger level is setting
- Closed
- is duplicated by
-
ENTESB-17322 Upgrade to Narayana 5.11.3.Final-redhat-00001
- Done