glassfish
  1. glassfish
  2. GLASSFISH-20837

Glassfish admin listener thread failure trying to login due to NPE

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: future release
    • Component/s: admin_gui
    • Labels:
      None
    • Environment:

      Linux SUSE 11.3, JDK 1.7.0_25 64 bit, Glassfish4.0
      I believe this also happened on my windows 7 machine

      Description

      [2013-10-01T11:07:19.750-0400] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=197 _ThreadName=admin-listener(16)] [timeMillis: 1380640039750] [levelValue: 900] [[
      StandardWrapperValve[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception
      java.lang.NullPointerException
      at org.glassfish.admingui.common.util.GuiUtil.genId(GuiUtil.java:343)
      at org.glassfish.admingui.common.handlers.UtilHandlers.encodeId(UtilHandlers.java:1011)
      at sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
      at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
      at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
      at com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:348)
      at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:288)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:556)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
      at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
      at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:255)
      at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:254)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:678)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:724)

        Activity

        Hide
        MisterNibble added a comment - - edited

        I can confirm the same issue; exception at org.glassfish.admingui.common.util.GuiUtil.genId(GuiUtil.java:343) with the official Glassfish 4.1 release on Ubuntu 12.04 x64 (with all latest updates) and JDK 1.8.0_25-b17 x64. This is after I patched to the latest version of Tyrus (1.9), updated Java Server Faces (javax.faces.jar) to 2.2.8-04 and upgraded nucleus-grizzly-all.jar to 2.3.17 (without which my application is completely unusable).

        This error also causes application deployment to fail in Netbeans 8.0.2 because Netbeans requires a usable Admin interface to deploy.

        Show
        MisterNibble added a comment - - edited I can confirm the same issue; exception at org.glassfish.admingui.common.util.GuiUtil.genId(GuiUtil.java:343) with the official Glassfish 4.1 release on Ubuntu 12.04 x64 (with all latest updates) and JDK 1.8.0_25-b17 x64. This is after I patched to the latest version of Tyrus (1.9), updated Java Server Faces (javax.faces.jar) to 2.2.8-04 and upgraded nucleus-grizzly-all.jar to 2.3.17 (without which my application is completely unusable). This error also causes application deployment to fail in Netbeans 8.0.2 because Netbeans requires a usable Admin interface to deploy.
        Hide
        smillidge-c2b2 added a comment -

        Can you provide step by step instructions to reproduce?

        Show
        smillidge-c2b2 added a comment - Can you provide step by step instructions to reproduce?
        Hide
        MisterNibble added a comment -

        The error occurs when the Admin console is open in a tab for a few hours. No discernible cause besides that.

        Show
        MisterNibble added a comment - The error occurs when the Admin console is open in a tab for a few hours. No discernible cause besides that.
        Hide
        arie_golos added a comment -

        I can also add to the above MisterNibble comment, that I observed that problem in Chrome today, but when I pasted the same login URL in IE, it worked just fine.

        Show
        arie_golos added a comment - I can also add to the above MisterNibble comment, that I observed that problem in Chrome today, but when I pasted the same login URL in IE, it worked just fine.
        Hide
        hink084 added a comment -

        I can confirm this still happens in Glassfish 4.1. I opened the Admin console, it stood idle for about an hour while I was at lunch, clicked on the "Home" button in the upper left corner of the page, and then this error occurred.

        RHEL v6.7 x64, JDK 1.8.74 x64, Glassfish 4.1

        Show
        hink084 added a comment - I can confirm this still happens in Glassfish 4.1. I opened the Admin console, it stood idle for about an hour while I was at lunch, clicked on the "Home" button in the upper left corner of the page, and then this error occurred. RHEL v6.7 x64, JDK 1.8.74 x64, Glassfish 4.1

          People

          • Assignee:
            Anissa Lam
            Reporter:
            arie_golos
          • Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: