1 Reply Latest reply on May 22, 2008 9:44 PM by John Langan

    SeamPhaseListener exception

    John Langan Newbie

      I am new to Seam and have created a demo .ear file using NetBeans, which deploys in Glassfish OK. When I try to open the jsf page I get a SeamPhaseListener exception as shown below.
      Can anyone explain what has gone wrong and how I can correct it? Thanks in advance for any help with this.
      Setup: Windows XP; Glassfish V2 UR2; NetBeans 6.1; JDK 1.6.0_06; Seam 2.0.2.GA.


      [#|2008-05-22T11:19:08.484-0400|SEVERE|sun-appserver9.1|org.jboss.seam.jsf.SeamPhaseListener|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=5f1848c6-2631-48d1-a0e5-b88a92c823d1;|uncaught exception
      java.lang.NullPointerException
           at org.jboss.seam.Component.getInstance(Component.java:1862)
           at org.jboss.seam.Component.getInstance(Component.java:1855)
           at org.jboss.seam.Component.getInstance(Component.java:1832)
           at org.jboss.seam.web.Session.getInstance(Session.java:122)
           at org.jboss.seam.contexts.FacesLifecycle.beginRequest(FacesLifecycle.java:54)
           at org.jboss.seam.jsf.SeamPhaseListener.beforeRestoreView(SeamPhaseListener.java:377)
           at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:137)
           at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
           at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
           at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
           at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
           at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
           at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
           at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
           at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
           at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      |#]