deeplyloving / jspf

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

java.lang.VerifyError: Cannot inherit from final class #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I do:

PluginManager pm = PluginManagerFactory.createPluginManager();
pm.addPluginsFrom(ClassURI.CLASSPATH)

This error is thrown:

java.lang.VerifyError: Cannot inherit from final class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2889)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
    at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:128)
    at org.codehaus.classworlds.DefaultClassRealm.loadClassDirect(DefaultClassRealm.java:242)
    at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:222)
    at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:145)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:249)
    at net.xeoh.plugins.base.impl.classpath.ClassPathManager.findSubclassesFor(ClassPathManager.java:218)
    at net.xeoh.plugins.base.impl.classpath.loader.InternalClasspathLoader.loadAllClasspathPluginClasses(InternalClasspathLoader.java:129)
    at net.xeoh.plugins.base.impl.classpath.loader.InternalClasspathLoader.loadFrom(InternalClasspathLoader.java:77)
    at net.xeoh.plugins.base.impl.classpath.ClassPathManager.addFromLocation(ClassPathManager.java:142)
    at net.xeoh.plugins.base.impl.PluginManagerImpl.addPluginsFrom(PluginManagerImpl.java:128)

NOTE: Using JDK 1.6 + Tomcat 7

Original issue reported on code.google.com by monk...@gmail.com on 5 Jul 2013 at 8:45