quality@glassfish.java.net

b67: Admin-GUI: NullPointerException _at_ JSFThemeContext.getResourcePath?

From: matthias.fraass_at_tricoder.net <matthias.fraass_at_gmail.com>
Date: Wed, 14 Oct 2009 11:52:34 +0200

Hi,

my admin GUI is broken.
I'm not sure if it's related to my b67 upgrade (via UpdateTool), but
suddenly I'm getting this when calling I'm tryin to load the admin GUI:

#WARNUNG: StandardWrapperValve[FacesServlet]: PWC1406: Servlet.service() for
servlet FacesServlet threw exception
java.lang.NullPointerException
at
com.sun.webui.jsf.theme.JSFThemeContext.getResourcePath(JSFThemeContext.java:159)
at
org.glassfish.admingui.theme.AdminguiThemeContext.getResourcePath(AdminguiThemeContext.java:163)
at com.sun.webui.theme.JarTheme.translateURI(JarTheme.java:541)
at com.sun.webui.theme.JarTheme.getPathToMasterStylesheet(JarTheme.java:299)
at com.sun.webui.theme.JarTheme.getMasterStylesheets(JarTheme.java:311)
at
com.sun.webui.jsf.util.RenderingUtilities.renderStyleSheetLink(RenderingUtilities.java:459)
at
com.sun.webui.jsf.renderkit.html.ThemeLinksRenderer.encodeBegin(ThemeLinksRenderer.java:70)
at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:549)
at
com.sun.jsftemplating.layout.descriptors.LayoutComponent.encode(LayoutComponent.java:243)
at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:348)
at
com.sun.jsftemplating.layout.descriptors.LayoutDefinition.encode(LayoutDefinition.java:228)
at
com.sun.jsftemplating.layout.LayoutViewHandler.renderView(LayoutViewHandler.java:678)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:235)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
at java.lang.Thread.run(Thread.java:619)

I couldn't find it in the forum or the bugtracker.
Seems like the theme mechanism is broken - but why? And how can I fix it?

The last thing I remember is changing JMS configuration via asadmin. Then I
had to restart GF and I can't start the admin GUI since then (or before,,
but maybe didn't notice it as I didn't use the GUI?).
I've alredy stripped down my domain.xml from all JMS entries - it only
contains some datasources which are there for weeks - no success.

I'm trying to backup my GF dir now and try a fresh b67 or b66.zip

-Matthias