Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1681

NPE thrown when activating/passivinting the session in tomcat

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR1
    • Fix Version/s: 2.0.0.CR1
    • Component/s: Core
    • Labels:
      None

      Description

      I'm running Seam in tomcat 5.5.23. When I shutdown I get an NPE. It appears that contextDestroyed is being called before tomcat does the session passivation. Any opinions on the best way to deal with this? It's obviously fairly harmless but the message is semi annoying?

      java.lang.NullPointerException
      at org.jboss.seam.contexts.BasicContext.get(BasicContext.java:48)
      at org.jboss.seam.Component.forName(Component.java:1709)
      at org.jboss.seam.Component.getInstance(Component.java:1757)
      at org.jboss.seam.Component.getInstance(Component.java:1752)
      at org.jboss.seam.Component.getInstance(Component.java:1729)
      at org.jboss.seam.Component.getInstance(Component.java:1724)
      at org.jboss.seam.core.Events.instance(Events.java:154)
      at org.jboss.seam.core.Events.exists(Events.java:149)
      at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:236)
      at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:91)
      at org.jboss.seam.persistence.ManagedPersistenceContext.sessionWillPassivate(ManagedPersistenceContext.java:157)
      at org.apache.catalina.session.StandardSession.passivate(StandardSession.java:774)
      at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
      at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
      at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4363)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
      at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
      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:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  youngm youngm
                  Reporter:
                  youngm youngm
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: