Bug 1370499

Summary: Discovery of EAP 7.1 fails with NPE
Product: [JBoss] JBoss Operations Network Reporter: Radim Hatlapatka <rhatlapa>
Component: Plugin -- JBoss EAP 7Assignee: Ruben Vargas Palma <rvargasp>
Status: CLOSED CURRENTRELEASE QA Contact: Filip Brychta <fbrychta>
Severity: urgent Docs Contact:
Priority: urgent    
Version: JON 3.3.5CC: fbrychta, loleary, rvargasp, spinder
Target Milestone: ER01Keywords: Triaged
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 15:17:30 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:
Bug Depends On:    
Bug Blocks: 1327633, 1411825    

Description Radim Hatlapatka 2016-08-26 13:33:51 UTC
Description of problem:
Having started EAP 7.1.0.DR3, and trying to discover it with JON it fails with NPE [1]

Version-Release number of selected component (if applicable): JON 3.3.5 + jon-plugin-pack-eap-3.3.0.GA-update-04.zip 


How reproducible: always


Steps to Reproduce:
1. start EAP 7.1.0.DR3 in standalone mode
2. run discovery from jon agent, you will see that AS7 plugin found some matching processes, still the full discovery failed with [1] (and in JON server UI the server isn't visible between discovered resources)


Actual results:
EAP 7.1.x server is not discovered


Expected results:
EAP 7.1.x server is discovered.


Additional info:

[1] 2016-08-26 09:22:01,382 DEBUG [ResourceDiscoveryComponent.invoker.daemon-11] (rhq.core.pluginapi.util.JavaCommandLine)- Parsing JavaCommandLine[arguments=[/qa/tools/opt/amd64/jdk1.8.0_last/bin/java, -D[Standalone], -server, -verbose:gc, -Xloggc:/mnt/hudson_workspace/jon-workspace/jboss-eap-7.1/standalone/log/gc.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=5, -XX:GCLogFileSize=3M, -XX:-TraceClassUnloading, -XX:MaxHeapSize=256m, -Xms128m, -Xmx768m, -XX:MetaspaceSize=96M, -XX:MaxMetaspaceSize=256m, -Djava.net.preferIPv4Stack=true, -Djboss.modules.system.pkgs=org.jboss.byteman, -Djava.awt.headless=true, -d64, -Dorg.jboss.boot.log.file=/mnt/hudson_workspace/jon-workspace/jboss-eap-7.1/standalone/log/server.log, -Dlogging.configuration=file:/mnt/hudson_workspace/jon-workspace/jboss-eap-7.1/standalone/configuration/logging.properties, -jar, /mnt/hudson_workspace/jon-workspace/jboss-eap-7.1/jboss-modules.jar, -mp, /mnt/hudson_workspace/jon-workspace/jboss-eap-7.1/modules, org.jboss.as.standalone, -Djboss.home.dir=/mnt/hudson_workspace/jon-workspace/jboss-eap-7.1, -Djboss.server.base.dir=/mnt/hudson_workspace/jon-workspace/jboss-eap-7.1/standalone, -c, standalone-full.xml], includeSystemPropertiesFromClassArguments=true, shortClassOptionFormat=[WHITESPACE, EQUALS_SIGN], longClassOptionFormat=[WHITESPACE, EQUALS_SIGN]]...
2016-08-26 09:22:01,394 ERROR [ResourceDiscoveryComponent.invoker.daemon-11] (rhq.modules.plugins.wildfly10.BaseProcessDiscovery)- Discovery of a EAP7 Standalone Server Resource failed for process: pid=[5379], name=[/qa/tools/opt/amd64/jdk1.8.0_last/bin/java], ppid=[5301].
java.lang.NullPointerException
	at org.rhq.modules.plugins.wildfly10.BaseProcessDiscovery.discoverResources(BaseProcessDiscovery.java:148)
	at org.rhq.modules.plugins.wildfly10.StandaloneASDiscovery.discoverResources(StandaloneASDiscovery.java:106)
	at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:305)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
2016-08-26 09:22:01,394 DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Discovery for [EAP7 Standalone Server] resources completed in [12] ms

Comment 1 JBoss JIRA Server 2016-08-30 14:38:28 UTC
Radim Hatlapatka <rhatlapa> updated the status of jira JBEAP-5777 to Closed