Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9417

ClassCastException in ConsolidatedListenerMBeanImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.38.0
    • 1.40.0
    • jcr
    • None

    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

          Activity

            People

              angela Angela Schreiber
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: