Bug 1001594 - IndexOutOfBoundsException when unregistering listener on JMXNotifier
Summary: IndexOutOfBoundsException when unregistering listener on JMXNotifier
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: RT Governance
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER2
: 6.0.0
Assignee: Gary Brown
QA Contact: Jiri Sedlacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-27 11:14 UTC by Jiri Pechanec
Modified: 2015-08-02 23:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RTGOV-260 0 Major Closed Incorrect loop counter init in JMXNotifier when removing listeners 2014-07-02 09:19:43 UTC

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


Note You need to log in before you can comment on or make changes to this bug.