Description
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:
[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'))
Attachments
Issue Links
- links to