oghenez / mycila

Automatically exported from code.google.com/p/mycila
0 stars 0 forks source link

NPE in JBoss #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When a webapp is reloaded in JBoss, Jboss clears the old webapp
classlaoder, but the classloader and some of its classes may remain available.

A call to a cleared wbapp classlaoder's getURL() throws a NPE.

java.lang.NullPointerException
    org.apache.catalina.loader.WebappClassLoader.getURLs(WebappClassLoader.java:1406)
    com.mycila.ujd.impl.LoaderImpl.getContainers(LoaderImpl.java:62)
    com.mycila.ujd.impl.DefaultJVMAnalyzer.getClassPath(DefaultJVMAnalyzer.java:84)
    com.mycila.ujd.impl.DefaultJVMAnalyzer.getUnusedClassPath(DefaultJVMAnalyzer.java:180)
    com.mycila.ujd.mbean.JmxAnalyzer.getUnusedClassPath(JmxAnalyzer.java:83)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
    com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)

Original issue reported on code.google.com by mathieu....@gmail.com on 15 Feb 2010 at 2:26

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 15 Feb 2010 at 2:26