Bug 1001594

Summary: IndexOutOfBoundsException when unregistering listener on JMXNotifier
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: RT GovernanceAssignee: Gary Brown <gbrown>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Sedlacek <jsedlace>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, ncross, oskutka, soa-p-jira
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Pechanec 2013-08-27 11:14:49 UTC
There is a loop in method JMXNotifier.removeNotificationListener starting

for (int i=_notificationDetails.size(); i >= 0; i--) {
    NotificationDetails n=_notificationDetails.get(i)

This code is incorrect as the last item in a list has alvays index size() - 1, not size()

The sam issue applies for the other removeNotificationListener.

Comment 1 Jiri Pechanec 2013-09-13 13:08:05 UTC
Verified in ER2

Comment 5 JBoss JIRA Server 2014-07-02 09:19:44 UTC
Gary Brown <gary> updated the status of jira RTGOV-260 to Closed