I think you need to put in a filter to intercept the case where the
session has timed out and redirect to another page. JSF can't render the
page if the backing bean doesn't exist in the session.

-R

-----Original Message-----
From: sio [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 8:25 AM
To: [email protected]
Subject: Re: NullPointerException in
org.apache.myfaces.lifecycle.PhaseListenerManager during RESTORE_STATE


Have anybody solve the problem???


Lisaa wrote:
> 
> Hi.,
> 
>   I have the same problem. 
> 
> Did you find any solution for this?
> 
> Envirnoment:  Seam 1.1.6, ajax4jsf1.1.0rc1, MyFaces 1.1.4, Tomahawk 
> 1.1.3
> 
> 
> Thanks.
> 
> 
> Madhav Bhargava-2 wrote:
>> 
>> 
>> Hi All,
>> 
>> 
>> 
>> 
>> Till now the application was working fine. Since 3 hrs I have been 
>> getting the following exception when navigating to different pages. 
>> The exception is thrown at any arbitrary JSF page so I am unable to 
>> trace anything.
>> 
>> I googled this exception and found that there was a patch released in

>> the nightly build sometime back.  I took the latest nightly build out

>> but I am still getting the same exception.
>> 
>> 
>> 
>> 
>> Stack Trace:
>> 
>> 
>> 
>> 
>> 929975 ERROR [http-0.0.0.0-8080-2]
>> org.apache.myfaces.lifecycle.PhaseListenerManager       - Exception
in
>> PhaseListener RESTORE_VIEW(1) afterPhase
>> 
>>  java.lang.NullPointerException
>> 
>>             at
>> org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(Remo
>> tin
>> gPhaseListener.java:87)
>> 
>>             at
>> org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
>> sAf
>> ter(PhaseListenerManager.java:92)
>> 
>>             at
>> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
>> .ja
>> va:99)
>> 
>>             at
>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
>> :70
>> )
>> 
>>             at
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:252)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
>> Fil
>> ter.java:100)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:202)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
>> Fil
>> ter.java:190)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:202)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
>> lte
>> r.java:81)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:202)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
>> alv
>> e.java:213)
>> 
>>             at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
>> alv
>> e.java:178)
>> 
>>             at
>> org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
>> ipa
>> lValve.java:39)
>> 
>>             at
>> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
>> yAs
>> sociationValve.java:159)
>> 
>>             at
>> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
>> e.j
>> ava:59)
>> 
>>             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(StandardEngineValve.
>> java:107)
>> 
>>             at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
>> a:1
>> 48)
>> 
>>             at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
>> :85
>> 6)
>> 
>>             at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
>> ssC
>> onnection(Http11Protocol.java:744)
>> 
>>             at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
>> int
>> .java:527)
>> 
>>             at
>> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
>> ker
>> Thread.java:112)
>> 
>>             at java.lang.Thread.run(Thread.java:595)
>> 
>> 929975 ERROR [http-0.0.0.0-8080-2]
>> org.apache.myfaces.lifecycle.PhaseListenerManager       - Exception
in
>> PhaseListener RESTORE_VIEW(1) afterPhase
>> 
>>  java.lang.NullPointerException
>> 
>>             at
>> com.sun.j2ee.blueprints.ui.util.ResourcePhaseListener.afterPhase(Reso
>> urc
>> ePhaseListener.java:127)
>> 
>>             at
>> org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListener
>> sAf
>> ter(PhaseListenerManager.java:92)
>> 
>>             at
>> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
>> .ja
>> va:99)
>> 
>>             at
>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
>> :70
>> )
>> 
>>             at
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:252)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
>> Fil
>> ter.java:100)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:202)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
>> Fil
>> ter.java:190)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:202)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
>> lte
>> r.java:81)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> ica
>> tionFilterChain.java:202)
>> 
>>             at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilt
>> erChain.java:173)
>> 
>>             at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
>> alv
>> e.java:213)
>> 
>>             at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
>> alv
>> e.java:178)
>> 
>>             at
>> org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
>> ipa
>> lValve.java:39)
>> 
>>             at
>> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
>> yAs
>> sociationValve.java:159)
>> 
>>             at
>> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
>> e.j
>> ava:59)
>> 
>>             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(StandardEngineValve.
>> java:107)
>> 
>>             at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
>> a:1
>> 48)
>> 
>>             at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
>> :85
>> 6)
>> 
>>             at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
>> ssC
>> onnection(Http11Protocol.java:744)
>> 
>>             at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
>> int
>> .java:527)
>> 
>>             at
>> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
>> ker
>> Thread.java:112)
>> 
>>             at java.lang.Thread.run(Thread.java:595)
>> 
>> 929990 ERROR [http-0.0.0.0-8080-2]
>>
org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ehr].[F
>> aces Servlet]       - Servlet.service() for servlet Faces Servlet
threw
>> exception
>> 
>>  java.lang.OutOfMemoryError: Java heap space
>> 
>> 
>> 
>> 
>> What can be the reason for this exception? Any help will be
appreciated.
>> 
>> 
>> 
>> 
>> Rgds,
>> 
>> madhav
>> 
>> 
>> 
>> **************** CAUTION - Disclaimer ***************** This e-mail 
>> contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for 
>> the use of the addressee(s). If you are not the intended recipient, 
>> please notify the sender by e-mail and delete the original message. 
>> Further, you are not to copy, disclose, or distribute this e-mail or 
>> its contents to any other person and any such actions are unlawful. 
>> This e-mail may contain viruses. Infosys has taken every reasonable 
>> precaution to minimize this risk, but is not liable for any damage 
>> you may sustain as a result of any virus in this e-mail. You should 
>> carry out your own virus checks before opening the e-mail or 
>> attachment. Infosys reserves the right to monitor and review the 
>> content of all messages sent to or from this e-mail address. Messages

>> sent to or from this e-mail address may be stored on the Infosys
e-mail system.
>> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>> 
> 
> 

--
View this message in context:
http://www.nabble.com/NullPointerException-in-org.apache.myfaces.lifecyc
le.PhaseListenerManager-during--RESTORE_STATE-tf2960249.html#a13366362
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to