dev@glassfish.java.net

Re: Felix NPE - Error loading class from module

From: Sahoo <sahoo_at_sun.com>
Date: Fri, 09 Jan 2009 12:32:57 +0530

Sounds like a bug to me. Is there a reproducible test case? Can you send us?

> had installed.
>
> The exception line
> at net.java.dev.certmanager.GUIFacade.getServerCertificates(GUIFacade.java:30)|#]
>
> points to a code where it calls another class from the same module,
> named CertificateMain.getServerCertificates()
> What do I need to configure to make it work ?
>
> The pom.xml is attached and the generated manifest.mf (from
> target/classes/META-INF/MANIFEST.MF)
>
> [#|2009-01-08T16:43:28.500-0200|INFO|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|ERROR:
> Unable to get module class path. (java.lang.NullPointerException)|#]
> [#|2009-01-08T16:43:28.501-0200|SEVERE|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|java.lang.NullPointerException|#]
> [#|2009-01-08T16:43:28.502-0200|SEVERE|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|
> at java.util.jar.Manifest$FastInputStream.fill(Manifest.java:422)|#]
> ...
> [#|2009-01-08T16:43:28.505-0200|SEVERE|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|
> at org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:109)|#]
> [#|2009-01-08T16:43:28.505-0200|SEVERE|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)|#]
> [#|2009-01-08T16:43:28.505-0200|SEVERE|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)|#]
> [#|2009-01-08T16:43:28.505-0200|SEVERE|glassfish|null|_ThreadID=17;_ThreadName=Thread-4;|
> at net.java.dev.certmanager.GUIFacade.getServerCertificates(GUIFacade.java:30)|#]
>
>
>
> [#|2009-01-08T16:43:28.530-0200|SEVERE|glassfish|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=Thread-4;|StandardWrapperValve[FacesServlet]:
> PWC1406: Servlet.service() for servlet FacesServlet threw exception
> java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException while attempting to
> process a 'beforeCreate' event for 'page1'.
> at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
> ....
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:422)
> at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
> ... 52 more
> Caused by: java.lang.NullPointerException
> at org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(ContentClassLoader.java:145)
> at org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:85)
> at org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:162)
> at org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:101)
> at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4SearchPolicyCore.java:505)
> at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:466)
> at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:185)
> at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
> at org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:109)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>