RHQ JMX plugin failed to get measurement values
-----------------------------------------------
Key: ISPN-4307
URL:
https://issues.jboss.org/browse/ISPN-4307
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management
Affects Versions: 7.0.0.Alpha4
Reporter: Tomas Sykora
Assignee: William Burns
We are not able to monitor cache statistics due to this error. RHQ agents are reporting:
2014-05-21 05:54:24,958 WARN [MeasurementManager.collector-1]
(rhq.core.pc.measurement.MeasurementCollectorRunner)- Failure to collect measurement data
for Resource[id=10774, uuid=9f67384f-8f53-4a25-a138-13c54b32c6df,
type={Infinispan}Infinispan Cache, key="___default(dist_sync)",
name=___default(dist_sync), parent=DefaultCacheManager] - cause:
java.lang.NullPointerException:null
2014-05-21 05:55:32,013 ERROR [WorkerThread#1[10.16.23.98:59988]]
(rhq.core.pc.measurement.MeasurementManager)- Could not get measurement values
java.lang.NullPointerException
at
org.rhq.plugins.jmx.MBeanResourceComponent.getEmsConnection(MBeanResourceComponent.java:574)
at org.infinispan.rhq.CacheComponent.getValues(CacheComponent.java:97)
at sun.reflect.GeneratedMethodAccessor71.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.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:654)
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:679)