Bug 1090005 - Unable to add new Log Event Source
Summary: Unable to add new Log Event Source
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server, Events
Version: 4.10
Hardware: All
OS: All
urgent
high
Target Milestone: GA
: RHQ 4.11
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-22 11:16 UTC by Jirka Kremser
Modified: 2014-07-21 10:13 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-21 10:13:23 UTC
Embargoed:


Attachments (Terms of Use)
server.log exception (17.06 KB, text/x-log)
2014-04-22 11:21 UTC, Jirka Kremser
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1065461 0 unspecified CLOSED readOnly configuration is editable via CLI 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1092975 0 urgent CLOSED Unable to update configuration of JBossAS7 Standalone Server 2021-02-22 00:41:40 UTC

Internal Links: 1065461 1092975

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.


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