codahale/metrics — Issue #176: Errors registering Gauge<Object> with JMX
Author: ryantenney
Created: 2012-03-01 21:02:23+00:00
State: open

This issue is caused by using MXBeans instead of MBeans. Reverting 90396fc resolves this issue.

javax.management.NotCompliantMBeanException: com.yammer.metrics.reporting.JmxReporter$GaugeMXBean: Method com.yammer.metrics.reporting.JmxReporter$GaugeMXBean.getValue has parameter or return type that cannot be translated into an open type
Caused by: java.lang.IllegalArgumentException: Method com.yammer.metrics.reporting.JmxReporter$GaugeMXBean.getValue has parameter or return type that cannot be translated into an open type
at com.sun.jmx.mbeanserver.ConvertingMethod.from(ConvertingMethod.java:32)
...
Caused by: javax.management.openmbean.OpenDataException: Cannot convert type: class java.lang.Object
at com.sun.jmx.mbeanserver.OpenConverter.openDataException(OpenConverter.java:1411)
...
Caused by: javax.management.openmbean.OpenDataException: Can't map java.lang.Object to an open data type
at com.sun.jmx.mbeanserver.OpenConverter.makeCompositeConverter(OpenConverter.java:454)