You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rajneesh K Rajput <ra...@contata.com> on 2009/07/02 14:38:24 UTC

Re: Geting ViewExpiredException

Hi Sujal,
I also faced this problem and was able to rectify this as proposed in
temporarily solutions. 

But, I am still looking into this how it can be handled within my faces code
base itself, and why latest implementation throwing an exception if view is
not found while older one was creating a new view state for the same
condition. 

http://www.nabble.com/ViewExpiredException%3A-(Myfaces1.2.6-and-Richfaces3.3.0)-Possible-problem-and-solution-discussion.-td24203426.html
http://www.nabble.com/ViewExpiredException%3A-(Myfaces1.2.6-and-Richfaces3.3.0)-Possible-problem-and-solution-discussion.-td24203426.html 


Sujal Ramnath Nagarkar wrote:
> 
> Hi,
> I am getting the ViewExpiredException, even when I don't have a session
> timeout for my application, and session is still valid.
> This occurs as I am trying to port from MyFaces 1.1 to MyFaces 1.2. The
> page works perfectly fine with MyFaces 1.1.
> The stacktrace is as follows:-
> An Error Occurred:
> /jsf/home.jsfNo saved view state could be found for the view identifier:
> /jsf/home.jsf
> 
> Caused by:
> javax.faces.application.ViewExpiredException - /jsf/home.jsfNo saved view
> state could be found for the view identifier: /jsf/home.jsf
> +- Stack Trace
> 
> javax.faces.application.ViewExpiredException: /jsf/home.jsfNo saved view
> state could be found for the view identifier: /jsf/home.jsf
> 
>         at
> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
> 
>         at
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
> 
>         at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
> 
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
> 
>         at
> org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:103)
> 
>         at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
> 
>         at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
> 
>         at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
> 
>         at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
> 
>         at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
> 
>         at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
> 
>         at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
> 
>         at
> weblogicx.servlet.gzip.filter.GZIPFilter.doFilter(GZIPFilter.java:70)
> 
>         at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
> 
>         at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
> 
>         at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 
>         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
> 
>         at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
> 
>         at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
> 
>         at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
> 
>         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
> 
>         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
> 
> If anyone has an idea, how to resolve this exception, please do reply.
> 
> With regards,
>     Sujal
> 
> 

-- 
View this message in context: http://www.nabble.com/Geting-ViewExpiredException-tp22913430p24305949.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: Geting ViewExpiredException

Posted by Rajneesh K Rajput <ra...@contata.com>.
This problem is solved for me, you can follow my same thread. 


Rajneesh K Rajput wrote:
> 
> Hi Sujal,
> I also faced this problem and was able to rectify this as proposed in
> temporarily solutions. 
> 
> But, I am still looking into this how it can be handled within my faces
> code base itself, and why latest implementation throwing an exception if
> view is not found while older one was creating a new view state for the
> same condition. 
> 
> 
> http://www.nabble.com/ViewExpiredException%3A-(Myfaces1.2.6-and-Richfaces3.3.0)-Possible-problem-and-solution-discussion.-td24203426.html
> http://www.nabble.com/ViewExpiredException%3A-(Myfaces1.2.6-and-Richfaces3.3.0)-Possible-problem-and-solution-discussion.-td24203426.html 
> 
> 
> Sujal Ramnath Nagarkar wrote:
>> 
>> Hi,
>> I am getting the ViewExpiredException, even when I don't have a session
>> timeout for my application, and session is still valid.
>> This occurs as I am trying to port from MyFaces 1.1 to MyFaces 1.2. The
>> page works perfectly fine with MyFaces 1.1.
>> The stacktrace is as follows:-
>> An Error Occurred:
>> /jsf/home.jsfNo saved view state could be found for the view identifier:
>> /jsf/home.jsf
>> 
>> Caused by:
>> javax.faces.application.ViewExpiredException - /jsf/home.jsfNo saved view
>> state could be found for the view identifier: /jsf/home.jsf
>> +- Stack Trace<http://localhost:7001/jsf/home.jsf>
>> 
>> javax.faces.application.ViewExpiredException: /jsf/home.jsfNo saved view
>> state could be found for the view identifier: /jsf/home.jsf
>> 
>>         at
>> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
>> 
>>         at
>> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
>> 
>>         at
>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
>> 
>>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
>> 
>>         at
>> org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:103)
>> 
>>         at
>> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
>> 
>>         at
>> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
>> 
>>         at
>> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
>> 
>>         at
>> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
>> 
>>         at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
>> 
>>         at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
>> 
>>         at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
>> 
>>         at
>> weblogicx.servlet.gzip.filter.GZIPFilter.doFilter(GZIPFilter.java:70)
>> 
>>         at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
>> 
>>         at
>> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
>> 
>>         at
>> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>> 
>>         at weblogic.security.service.SecurityManager.runAs(Unknown
>> Source)
>> 
>>         at
>> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
>> 
>>         at
>> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
>> 
>>         at
>> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
>> 
>>         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
>> 
>>         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>> 
>> If anyone has an idea, how to resolve this exception, please do reply.
>> 
>> With regards,
>>     Sujal
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Geting-ViewExpiredException-tp22913430p24427894.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.