NPE: isInstanceOf on Class loaded by bootstrap classloader
----------------------------------------------------------

         Key: JBAS-1492
         URL: http://jira.jboss.com/jira/browse/JBAS-1492
     Project: JBoss Application Server
        Type: Bug
  Components: JMX  
    Versions: JBossAS-4.0.1 Final    
 Environment: [ServerInfo] Java version: 1.5.0_01,Sun Microsystems Inc.
[ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_01-b08,Sun Microsystems 
Inc.
[ServerInfo] OS-System: Linux 2.4.21-4.EL,i386

    Reporter: Michael Kopp


I called JMXConnectorServerFactory.newJMXConnectorServer to instantiate a 
RMIConnectorServer and registered it in the jboss mbean server. (Inside the 
Jboss AS 4.0.1).

The resulting class javax.management.remote.rmi.RMIConnectorServer does not 
return a classloader in the call RMIConnectorServer.class.getClassLoader(), 
which is legal according to the jdk api documentation (see 
java.lang.Class#getClassLoader).

Unfortunatelly the isInstanceOf method of org.jboss.mx.server.MBeanServerImpl 
does not take this into account. Thus I get a NullPointerException if I call 
isInstanceOf on that particular MBean.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to