Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2123

NullPointerException at WeldTerminalListener

XMLWordPrintable

    • Hide

      1) Deploy attached MyApp.ear
      2) Access to http://host:port/TestWeb/ (Session created)
      3) Access to http://host:port/TestWeb/ (Session invalidated)

      Attached ear file includes source codes.

      Show
      1) Deploy attached MyApp.ear 2) Access to http://host:port/TestWeb/ (Session created) 3) Access to http://host:port/TestWeb/ (Session invalidated) Attached ear file includes source codes.

      javax.servlet.http.HttpSession#invalidate causes NPE if deployed ear module includes
      both ejb-jar and (non CDI-enabled )war files.
      This exception is not thrown with the single war file.

      [2016-03-23T15:31:42.833+0900] [glassfish 4.1] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=32 _ThreadName=http-listener-1(4)] [timeMillis: 1458714702833] [levelValue: 800] [[
        Session event listener threw exception
      java.lang.NullPointerException
      	at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
      	at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
      	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:910)
      	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
      	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
      	at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1603)
      	at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:204)
      	at web.LogoutServlet.service(LogoutServlet.java:37)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
      	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.invoke(StandardPipeline.java:673)
      	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
      	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
      	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
      	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
      	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
      	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
      	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
      	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
      	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
      	at java.lang.Thread.run(Thread.java:745)
      ]]
      

              tremes1@redhat.com Tomas Remes
              ngaya Yosuke Nogaya (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: