You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edwin Ansicodd <er...@gmail.com> on 2009/03/04 11:21:05 UTC

What does Page Expired mean?

I've extended org.apache.wicket.markup.html.WebPage and created a page that
has a submit button to do a search.  After clicking the button, I get
directed to a page with following message:

Page Expired
The page you requested has expired.

Return to home page

No error messages appear.   What does this mean?  The page has expired?  Is
there something I am missing?


-- 
View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22327219.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: What does Page Expired mean?

Posted by Martin Grigorov <mc...@e-card.bg>.
In my experience the most often case is when I have a non-serializable
field in a page with Ajax components.

On the first Ajax interaction the serialization fails
(SerializableChecker logs its detailed exception) and on the next Ajax
request Wicket cannot find a page with the latest version and complains
with PageExpiredException.

So "page expiration" is not exactly "session expiration". Session
expiration is just one of the cases in which your page(s) is(are) lost. 

El mié, 04-03-2009 a las 14:39 +0100, Dave Schoorl escribió:
> This normally happens when your HttpSession expires. I'm not sure what 
> could be the reason in your case.
> 
> 
> Edwin Ansicodd wrote:
> > I see in the Page maps documentation:
> >
> > http://cwiki.apache.org/WICKET/page-maps.html
> >
> > that Page Exoured will be shown if the id and version for a page doesn't
> > exist.  But I can't see how the id and version of the page would not exist
> > anymore.
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


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


Re: What does Page Expired mean?

Posted by Edwin Ansicodd <er...@gmail.com>.
Actually, the page became invalid because I missed the closing tag for
<wicket:link> in the html, only had <wicket:link> and not the
</wicket:link>.

This caused:

ERROR org.apache.wicket.RequestCycle  - unexpected exception when handling
another exception: Expected close tag for <wicket:link>

which invalided the page.   

So missing wicket end tags can also cause pages to become invalid.



Edwin Ansicodd wrote:
> 
> Thank you for all the comments!
> 
> The Page Expired seemed to result because I had in my WebApplication: 		
> 
> mountBookmarkablePage("homepage", InitialPage.class);
> 
> But InitialPage extended a different base page as the search page I was
> using.  I changed InitialPage to use the same base page and then Page
> Expired no longer appeared.  
> 
> 	
> 

-- 
View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22368125.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: What does Page Expired mean?

Posted by Edwin Ansicodd <er...@gmail.com>.
Thank you for all the comments!

The Page Expired seemed to result because I had in my WebApplication: 		

mountBookmarkablePage("homepage", InitialPage.class);

But InitialPage extended a different base page as the search page I was
using.  I changed InitialPage to use the same base page and then Page
Expired error no longer appeared.  

	
-- 
View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22334691.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: What does Page Expired mean?

Posted by Brill Pappin <br...@pappin.ca>.
It's not an error or something to debug, which is why you are not  
seeing anything in the log.
Session is a basic webapp (not just java webapp) concept, I recommend  
reading up on it in the docs for your application server.

- Brill



On 4-Mar-09, at 10:05 AM, Edwin Ansicodd wrote:

>
> Can you suggest a way to debug this?  I am not showing anything in  
> the logs
> or in the debugger.
>
>
>
> Dave Schoorl wrote:
>>
>> This normally happens when your HttpSession expires. I'm not sure  
>> what
>> could be the reason in your case.
>>
>>
>> Edwin Ansicodd wrote:
>>> I see in the Page maps documentation:
>>>
>>> http://cwiki.apache.org/WICKET/page-maps.html
>>>
>>> that Page Exoured will be shown if the id and version for a page  
>>> doesn't
>>> exist.  But I can't see how the id and version of the page would not
>>> exist
>>> anymore.
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22331861.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: What does Page Expired mean?

Posted by Edwin Ansicodd <er...@gmail.com>.
Can you suggest a way to debug this?  I am not showing anything in the logs
or in the debugger.  



Dave Schoorl wrote:
> 
> This normally happens when your HttpSession expires. I'm not sure what 
> could be the reason in your case.
> 
> 
> Edwin Ansicodd wrote:
>> I see in the Page maps documentation:
>>
>> http://cwiki.apache.org/WICKET/page-maps.html
>>
>> that Page Exoured will be shown if the id and version for a page doesn't
>> exist.  But I can't see how the id and version of the page would not
>> exist
>> anymore.
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22331861.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: What does Page Expired mean?

Posted by Dave Schoorl <ma...@cyber-d.com>.
This normally happens when your HttpSession expires. I'm not sure what 
could be the reason in your case.


Edwin Ansicodd wrote:
> I see in the Page maps documentation:
>
> http://cwiki.apache.org/WICKET/page-maps.html
>
> that Page Exoured will be shown if the id and version for a page doesn't
> exist.  But I can't see how the id and version of the page would not exist
> anymore.
>   


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


Re: What does Page Expired mean?

Posted by Brill Pappin <br...@pappin.ca>.
They will not exist if the session has expired or if the page cache  
has become inconsistent somehow.
Usually you'll get this is you wait on a page for a while, or are in  
dev mode and change the code a lot.

- Brill

On 4-Mar-09, at 7:14 AM, Edwin Ansicodd wrote:

>
> I see in the Page maps documentation:
>
> http://cwiki.apache.org/WICKET/page-maps.html
>
> that Page Exoured will be shown if the id and version for a page  
> doesn't
> exist.  But I can't see how the id and version of the page would not  
> exist
> anymore.
> -- 
> View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22328873.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: What does Page Expired mean?

Posted by Edwin Ansicodd <er...@gmail.com>.
I see in the Page maps documentation:

http://cwiki.apache.org/WICKET/page-maps.html

that Page Exoured will be shown if the id and version for a page doesn't
exist.  But I can't see how the id and version of the page would not exist
anymore.
-- 
View this message in context: http://www.nabble.com/What-does-Page-Expired-mean--tp22327219p22328873.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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