Host Controller Availability is DOWN when name attribute is missing in the config file

Solution Unverified - Updated -

Issue

  • Host Controller Availability is DOWN when name attribute is missing in the config file
  • Host Controller Availability is DOWN
  • My domain controller has been configured properly and is UP, but my host controllers are still DOWN.
  • When trying to monitor Host Controller, the following Exception is thrown in the agent.log file:
DEBUG [ResourceContainer.invoker.daemon-11] (rhq.modules.plugins.jbossas7.BaseServerComponent)- ResourceType[id=0, name=JBossAS7 Host Controller, plugin=JBossAS7, category=Server] [hostConfig: /apps/test-node2/host-controller/configuration/host-slave.xml]: exception while checking availability
java.lang.ArrayIndexOutOfBoundsException: 1
    at org.rhq.modules.plugins.jbossas7.json.Address.pathFromSegment(Address.java:107)
    at org.rhq.modules.plugins.jbossas7.json.Address.<init>(Address.java:93)
    at org.rhq.modules.plugins.jbossas7.HostControllerComponent.getHostAddress(HostControllerComponent.java:248)
    at org.rhq.modules.plugins.jbossas7.BaseServerComponent.getAvailabilityNow(BaseServerComponent.java:165)
    at org.rhq.modules.plugins.jbossas7.BaseServerComponent.getAvailability(BaseServerComponent.java:152)
    at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:654)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
  • JON successfully discovers the host controller but it does not report back on any of the managed server JVMs that we have running on the box.

Environment

  • Red Hat JBoss Operations Network (JON) 3.2.3
  • Application Platform Plugin Pack for Red Hat JBoss Operations Network 3.2.0
  • Application Platform Plugin Pack Update-01 for JBoss ON 3.2
  • Host Controller is using host-slave.xml file where http-interface is added but it's name attribute is missing - for instance:
<?xml version='1.0' encoding='UTF-8'?>

<host xmlns="urn:jboss:domain:1.6">

<management>
...
        <management-interfaces>
            <native-interface security-realm="ManagementRealm">
                <socket interface="management" port="${jboss.management.native.port:9999}"></socket>
            </native-interface>
            <http-interface security-realm="ManagementRealm">
                <socket interface="management" port="${jboss.management.http.port:9990}"></socket>
            </http-interface>
        </management-interfaces>
    </management>
...
</host>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content