Carsten Ziegeler created OAK-9417: ------------------------------------- Summary: ClassCastException in ConsolidatedListenerMBeanImpl Key: OAK-9417 URL: https://issues.apache.org/jira/browse/OAK-9417 Project: Jackrabbit Oak Issue Type: Bug Components: core Affects Versions: 1.38.0 Reporter: Carsten Ziegeler
The ConsolidatedListenerMBeanImpl makes a wrong assumption that the value of the jmx.objectname service registration property always is an ObjectName - String is also a valid and allowed type. If a String is used a ClassCastException is thrown: {noformat} [org.apache.jackrabbit.oak.jcr.observation.ConsolidatedListenerMBeanImpl(268)] : The bindBackgroundObserverMBean method has thrown an exception (java.lang.ClassCastException: class java.lang.String cannot be cast to class javax.management.ObjectName (java.lang.String is in module java.base of loader 'bootstrap'; javax.management.ObjectName is in module java.management of loader 'bootstrap')) {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)