14 Replies Latest reply on Jul 11, 2006 1:50 AM by Mohammad Norouzi

    problem with running a Seam application

    Mohammad Norouzi Novice

      hi

      I have a simple application developed by Seam framework, but it has an error when I am going to submit the first page to navigate to another page, the error message as follows:

      --------------------
      ERROR 04-05 11:41:33,328 (Log4JLogger.java:error:119) -Exception in PhaseListen
      er RESTORE_VIEW 1 afterPhase
      java.lang.NullPointerException
      at org.jboss.seam.contexts.PageContext.getAttributeMap(PageContext.java:
      103)
      at org.jboss.seam.contexts.PageContext.(PageContext.java:40)
      at org.jboss.seam.contexts.Lifecycle.resumePage(Lifecycle.java:323)
      at org.jboss.seam.jsf.AbstractSeamPhaseListener.restoreAnyConversationCo
      ntext(AbstractSeamPhaseListener.java:39)
      at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.jav
      a:63)
      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
      sAfter(PhaseListenerManager.java:89)
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
      java:181)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
      :66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
      lowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:684)
      at java.lang.Thread.run(Thread.java:595)
      ERROR 04-05 11:41:33,375 (Log4JLogger.java:error:119) -Exception in PhaseListen
      er RESTORE_VIEW 1 afterPhase
      java.lang.NullPointerException
      at org.jboss.seam.contexts.PageContext.getAttributeMap(PageContext.java:
      103)
      at org.jboss.seam.contexts.PageContext.(PageContext.java:40)
      at org.jboss.seam.contexts.Lifecycle.resumePage(Lifecycle.java:323)
      at org.jboss.seam.jsf.AbstractSeamPhaseListener.restoreAnyConversationCo
      ntext(AbstractSeamPhaseListener.java:39)
      at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.jav
      a:63)
      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
      sAfter(PhaseListenerManager.java:89)
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
      java:181)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
      :66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
      lowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:684)
      at java.lang.Thread.run(Thread.java:595)
      ERROR 04-05 11:41:33,375 (Log4JLogger.java:error:119) -Servlet.service() for se
      rvlet Faces Servlet threw exception
      java.lang.NullPointerException
      at com.sun.faces.application.ViewHandlerImpl.findMatch(ViewHandlerImpl.j
      ava:409)
      at com.sun.faces.application.ViewHandlerImpl.calculateLocale(ViewHandler
      Impl.java:335)
      at org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.ja
      va:25)
      at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.
      java:283)
      at org.jboss.seam.jsf.SeamViewHandler.createView(SeamViewHandler.java:43
      )
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.
      java:144)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
      :66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
      lowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:684)
      at java.lang.Thread.run(Thread.java:595)
      ---------------------

      I am using Tomcat version 5.5.9.

      please help me out, this problem really confused me.

      thank you in advance.

      regards