[ http://jira.activemq.org/jira//browse/SM-342?page=all ]
Guillaume Nodet resolved SM-342:
--------------------------------
Assign To: Guillaume Nodet
Resolution: Fixed
Fix Version: 3.0-M1
Author: gnodet
Date: Tue Mar 7 08:46:44 2006
New Revision: 383924
URL: http://svn.apache.org/viewcvs?rev=383924&view=rev
Log:
SM-342: ensure that class loaders throw a CNFE and do not return null
Modified:
incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/loaders/InstallationClassLoader.java
incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/loaders/ParentFirstClassLoader.java
incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/loaders/SelfFirstClassLoader.java
> 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
> Assignee: Guillaume Nodet
> Fix For: 3.0-M1
>
>
> 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