Bug 1090005

Summary: Unable to add new Log Event Source
Product: [Other] RHQ Project Reporter: Jirka Kremser <jkremser>
Component: Core Server, EventsAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.10CC: hrupp, jshaughn
Target Milestone: GA   
Target Release: RHQ 4.11   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-21 10:13:23 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:
Attachments:
Description Flags
server.log exception none

Description Jirka Kremser 2014-04-22 11:16:28 UTC
Description of problem:
Unable to add new Log Event Source


Version-Release number of selected component (if applicable):
4.11.0-SNAPSHOT (769bb647a)

How reproducible:
always

Steps to Reproduce:
1. go to connection settings for EAP resource
2. try to add new Log Event Source

Actual results:
...
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
	at java.util.ArrayList.rangeCheck(ArrayList.java:604) [rt.jar:1.7.0_09]
	at java.util.ArrayList.get(ArrayList.java:382) [rt.jar:1.7.0_09]
	at org.hibernate.collection.internal.PersistentBag.get(PersistentBag.java:440) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]
	at org.rhq.core.domain.configuration.ConfigurationUtility.validateProperty(ConfigurationUtility.java:356) [rhq-core-domain-ejb3.jar:4.11.0-SNAPSHOT]
	at org.rhq.core.domain.configuration.ConfigurationUtility.validateConfiguration(ConfigurationUtility.java:164) [rhq-core-domain-ejb3.jar:4.11.0-SNAPSHOT]
	at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.updatePluginConfiguration(ConfigurationManagerBean.java:296) [rhq-server.jar:4.11.0-SNAPSHOT]

(full exception in attachment)

Expected results:
the new event source is added


Additional info:
When enabling/disabling the existing event source, it works properly.

Comment 1 Jirka Kremser 2014-04-22 11:20:05 UTC
^ of course, there should be also third repro step:

3. hit save button

Comment 2 Jirka Kremser 2014-04-22 11:21:42 UTC
Created attachment 888448 [details]
server.log exception

Comment 3 Jirka Kremser 2014-04-22 12:01:53 UTC
it looks like a regression introduced by 8eff7c11c

Comment 4 Jay Shaughnessy 2014-04-22 21:07:39 UTC
This is a regression of commit for Bug 1065461.

master commit 1b551ae7671296891ff88370565005b230c59df3
Author: Jay Shaughnessy <jshaughn>
Date:   Tue Apr 22 17:04:35 2014 -0400

    - Fix a regression in List of Maps handling by relaxing size assumptions
    - on the old and new list entries.
    - Add equals check

Comment 5 Jay Shaughnessy 2014-04-23 14:20:36 UTC
master commit 0a68d685a939d2b9da6340193972e00435b9d402
Author: Jay Shaughnessy <jshaughn>
Date:   Wed Apr 23 09:56:25 2014 -0400

    - an NPE fix to prior commit 1b551ae7671

Comment 6 Heiko W. Rupp 2014-07-21 10:13:23 UTC
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out.

If you find an issue with those, please open a new BZ, linking to the old one.