Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-342

ParentFirstClassLoader returns Null if class is not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 3.0-M1
    • servicemix-core
    • None

    Description

      The ParentFirstClassLoader returns a null if the class is not found. This is in violation of the ClassLoader contract - it should throw a ClassNotFoundException.

      One side effect of this is an attempt to deploy an MBean into the JMX environment using MX4J results in a NullPointerException as MX4J attempts to look for the MBean descriptor class. MX4J uses the classloader that loaded the MBean and expects the ClassNotFound exception to be thrown if the class does not exist.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            mike.horwitz Michael Horwitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: