JBoss ON fails to discover JBoss EAP 6 server when running domain mode and using a relative path to the --properties command-line argument
Issue
- Unable to discover JBoss Enterprise Application Platform (EAP) 6 server
-
The agent log contains the following NullPointerException during the discovery scan:
ERROR [ResourceDiscoveryComponent.invoker.daemon-1] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Discovery of a JBossAS7 Host Controller Resource failed for process: pid=[8729], name=[/etc/alternatives/java_sdk/bin/java], ppid=[8712]. java.lang.NullPointerException at org.rhq.modules.plugins.jbossas7.AS7CommandLine.getAbsoluteFile(AS7CommandLine.java:185) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.toURL(AS7CommandLine.java:161) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.processClassArgument(AS7CommandLine.java:132) at org.rhq.core.pluginapi.util.JavaCommandLine.parseClassArguments(JavaCommandLine.java:194) at org.rhq.core.pluginapi.util.JavaCommandLine.parseCommandLine(JavaCommandLine.java:159) at org.rhq.core.pluginapi.util.JavaCommandLine.<init>(JavaCommandLine.java:136) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.<init>(AS7CommandLine.java:69) at org.rhq.modules.plugins.jbossas7.AS7CommandLine.<init>(AS7CommandLine.java:74) at org.rhq.modules.plugins.jbossas7.BaseProcessDiscovery.discoverResources(BaseProcessDiscovery.java:135) at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:293) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)
Environment
- JBoss Operations Network (JON) 3.1, 3.1.1, 3.1.2
- JBoss Enterprise Application Platform (EAP) plug-in pack for JBoss ON
- JBoss Application Server (AS) 7 plug-in -
jboss-as-7 - Affected JBoss application server has been started in domain mode
- Affected JBoss application server started with the
-Por--propertiescommand-line argument- Properties file value is a relative path
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.