ParentFirstClassLoader returns Null if class is not found
---------------------------------------------------------

         Key: SM-342
         URL: http://jira.activemq.org/jira//browse/SM-342
     Project: ServiceMix
        Type: Bug

  Components: servicemix-core  
    Versions: 2.0.2    
    Reporter: Michael Horwitz


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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.activemq.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to