Details
-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
7.5.0.redhat
-
None
Description
I encountered an issue when working with 64 bit Javas in our Jenkins environment. For some reason, the problem does not occur when I switch to 32 bit Java. The debug log shows, the plugin is unable to extract the JMX service URL :
2015-12-07 06:25:45,522 DEBUG [ResourceDiscoveryComponent.invoker.daemon-1] (org.jbosson.plugins.fuse.JBossFuseContainerDiscoveryComponent)- Error when trying to discover Fuse Server process [ProcessScanResult: scan=[ProcessScan: query=[process|basename|match=^java.*,arg|-Dkaraf.home|match=.*,arg|-Dkaraf.base|match=.*,arg|*|match=org\.apache\.karaf\.(main|shell\.wrapper)\.Main], name=[null]], info=[process: pid=[17843], name=[/usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java], ppid=[17801]]]. java.lang.RuntimeException: Failed to extract JMX service URL for process with PID [17843]. at org.rhq.plugins.jmx.util.JvmUtility.extractJMXServiceURL(JvmUtility.java:93) at org.jbosson.plugins.fuse.FuseServerDiscoveryComponent.discoverResourceDetails(FuseServerDiscoveryComponent.java:291) at org.jbosson.plugins.fuse.FuseServerDiscoveryComponent.discoverResources(FuseServerDiscoveryComponent.java:95) at sun.reflect.GeneratedMethodAccessor42.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.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:305) 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) Caused by: java.lang.NullPointerException at org.rhq.plugins.jmx.util.JvmUtility.attachToVirtualMachine(JvmUtility.java:107) at org.rhq.plugins.jmx.util.JvmUtility.extractJMXServiceURL(JvmUtility.java:76) ... 10 more 2015-12-07 06:25:45,523 DEBUG [RHQ Agent Prompt Input Thread] (org.rhq.core.system.NativeSystemInfo)- Retrieving PIDs of all running processes... 2015-12-07 06:25:45,524 DEBUG [RHQ Agent Prompt Input Thread] (org.rhq.core.system.NativeSystemInfo)- Retrieval of 184 PIDs took 1 ms.
Before this exception occurs, there are multiple exceptions with cause: org.hyperic.sigar.SigarException: Numerical result out of range.
2015-12-07 06:25:45,441 DEBUG [RHQ Agent Prompt Input Thread] (org.rhq.core.system.ProcessInfo)- Unexpected error occurred while looking up info for [<unknown>] process with pid [17801] - call to getProcCredName failed. Did the process die? Cause: org.hyperic.sigar.SigarException: Numerical result out of range 2015-12-07 06:25:45,442 DEBUG [RHQ Agent Prompt Input Thread] (org.rhq.core.system.ProcessInfo)- Unexpected error occurred while looking up info for [<unknown>] process with pid [17843] - call to getProcCredName failed. Did the process die? Cause: org.hyperic.sigar.SigarException: Numerical result out of range 2015-12-07 06:25:45,443 DEBUG [RHQ Agent Prompt Input Thread] (org.rhq.core.system.ProcessInfo)- Unexpected error occurred while looking up info for [<unknown>] process with pid [19584] - call to getProcCredName failed. Did the process die? Cause: org.hyperic.sigar.SigarException: Numerical result out of range
Maybe this is issue related to (I found, that RHQ plugins use sigar in version 1.6.5):
https://jira.hyperic.com/browse/SIGAR-231
A piece of the agent debug log is attached.