Bug 1084872

Summary: [GSS] (6.2.x) ArrayIndexOutOfBoundsException during periodic recovery on EJBTransactionRecoveryService
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Masafumi Miura <mmiura>
Component: EJBAssignee: David M. Lloyd <david.lloyd>
Status: CLOSED CURRENTRELEASE QA Contact: Ondrej Chaloupka <ochaloup>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0, 6.2.1, 6.2.2CC: bmaxwell, cdewolf, jawilson, jkudrnac, mbabacek, mmiura, ochaloup, pjelinek, rsvoboda, sgilda, smumford, twells
Target Milestone: CR2Flags: sgilda: needinfo-
Target Release: EAP 6.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
An intermittent issue between the periodic recovery and EJBTransactionRecoveryService resulted in an ArrayIndexOutOfBoundsException. ---- [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016009: Caught:: java.lang.ArrayIndexOutOfBoundsException: 0 at org.jboss.as.ejb3.remote.EJBTransactionRecoveryService.getXAResources(EJBTransactionRecoveryService.java:112) .... ---- The root cause of the issue was that the creation of an 'XAResource' element was not contained within the associated logic loop and this led to the array index error. This element has now been moved so that it is within the logic loop and so the periodic recovery no longer conflicts with the EJBTransactionRecoveryService.
Story Points: ---
Clone Of: 1035216 Environment:
Last Closed: 2014-06-09 12:47:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1035216    
Bug Blocks: 1067532    

Description Masafumi Miura 2014-04-07 05:49:41 UTC
+++ This bug was initially created as a clone of Bug #1035216 +++

Backport WFLY-3220 / BZ#1035216 to EAP 6.2.x.

EAP 6.3.0 BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1035216
EAP 6.3.0 PR: https://github.com/jbossas/jboss-eap/pull/1191
Upstream (wildfly) JIRA: https://issues.jboss.org/browse/WFLY-3220
Upstream (wildfly) PR: https://github.com/wildfly/wildfly/pull/6132

Comment 1 Masafumi Miura 2014-04-07 06:05:43 UTC
I've just sent PR https://github.com/jbossas/jboss-eap/pull/1193 to 6.2.x branch.

Comment 2 Ondrej Chaloupka 2014-05-05 12:34:46 UTC
It could be reproduced by btm script described in:
https://bugzilla.redhat.com/show_bug.cgi?id=1035216#c7

Comment 3 Ondrej Chaloupka 2014-05-06 07:49:12 UTC
Used verifier from bz1035216.
The array out of bound trouble was not spotted.

Verified with 6.2.3.CP.CR2.

Comment 4 sgilda 2014-05-22 14:56:13 UTC
Fixed typo in doc text.

Comment 5 sgilda 2014-05-22 15:00:51 UTC
Moved the doc text to one paragraph.