Bug 1128159

Summary: [eap6] Host controller resource is down when there is no name attribute in host element in host.xml
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: Plugin -- JBoss EAP 6Assignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: lzoubek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-08 14:34:09 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:

Description Filip Brychta 2014-08-08 12:57:25 UTC
Description of problem:
$Summary

Version-Release number of selected component (if applicable):
Version :	
3.3.0.DR01
Build Number :	
6468454:dda0a47

How reproducible:
Always

Steps to Reproduce:
1. unzip eap6
2. edit domain/configuration/host.xml, delete the name attribute in the host root element
3. start it (./domain.sh &)
4. run discovery scan (if necessary)
5. import the eap6 from discovery queue
6. navigate to the eap6 resource and install a management user (Operations->New->Install a management user)


Actual results:
The eap6 resource is still down and follwing errors are visible in agent.log:

2014-08-08 08:53:24,343 ERROR [ResourceContainer.invoker.daemon-47] (rhq.modules.plugins.jbossas7.BaseServerComponent)- Failed to read attribute [domain-config-file]: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
2014-08-08 08:53:24,343 ERROR [ResourceContainer.invoker.daemon-47] (rhq.modules.plugins.jbossas7.BaseServerComponent)- Failed to read attribute [host-config-file]: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
2014-08-08 08:53:24,343 ERROR [ResourceContainer.invoker.daemon-47] (rhq.modules.plugins.jbossas7.BaseServerComponent)- Failed to read attribute [domain-temp-dir]: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
2014-08-08 08:53:24,344 WARN  [MeasurementManager.collector-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Failure to collect measurement data for Resource[id=14445, uuid=7554accb-a6aa-4ed5-90fa-670dc2078aed, type={JBossAS7}JBossAS7 Host Controller, key=hostConfig: /home/hudson/jboss-eap6-domain/domain/configuration/host.xml, name=EAP Domain Controller (127.0.0.1:9990), parent=fbr-jon33-eap6.bc.jonqe.lab.eng.bos.redhat.com, version=EAP 6.2.4.GA] - cause: java.lang.ArrayIndexOutOfBoundsException:null


Expected results:
The eap6 resource is up

Comment 1 Libor Zoubek 2014-08-08 14:34:09 UTC

*** This bug has been marked as a duplicate of bug 1128141 ***