You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Kriesten <ja...@renitence.de> on 2007/09/04 07:35:35 UTC

Session-Timeout Exception

Hi,

when a Session-Timeout occurs, the following Exception is thrown when the user
gets active again:

---8<---
2007-09-03 16:41:26,316 ERROR [org.apache.wicket.RequestCycle               ] -
Cannot find the rendered page in session [pagemap=nu
ll,componentPath=10,versionNumber=0]
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered
page in session [pagemap=null,componentPath=10,versio
nNumber=0]
        at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:451)
        at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1077)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1173)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:483)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:277)
        at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:129)
        at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
        at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:125)
        at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175)
        at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240)
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481)
        at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685)
        at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607)
        at java.lang.Thread.run(Thread.java:619)
---8<---

Can't this be avoided and just a redirect to the Session-Expired/Login-Page
initiated?

Best regards, --- Jan.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Session-Timeout Exception

Posted by Eelco Hillenius <ee...@gmail.com>.
On 9/3/07, Jan Kriesten <ja...@renitence.de> wrote:
>
> Hi,
>
> when a Session-Timeout occurs, the following Exception is thrown when the user
> gets active again:
>
> ---8<---
> 2007-09-03 16:41:26,316 ERROR [org.apache.wicket.RequestCycle               ] -
> Cannot find the rendered page in session [pagemap=nu
> ll,componentPath=10,versionNumber=0]
> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered
> page in session [pagemap=null,componentPath=10,versio
> nNumber=0]
>         at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:451)
>         at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
>         at org.apache.wicket.RequestCycle.step(RequestCycle.java:1077)
>         at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1173)
>         at org.apache.wicket.RequestCycle.request(RequestCycle.java:483)
>         at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:277)
>         at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:129)
>         at
> com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
>         at
> com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:125)
>         at
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175)
>         at
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240)
>         at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
>         at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481)
>         at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685)
>         at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607)
>         at java.lang.Thread.run(Thread.java:619)
> ---8<---
>
> Can't this be avoided and just a redirect to the Session-Expired/Login-Page
> initiated?

You can catch the exception in a custom request cycle and do this yourself.

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org