Or you can update the settings in your Application class:

getApplicationSettings().setInternalErrorPage(HomePage.class);

Alex Objelean


Thomas Singer-4 wrote:
> 
> As I have reported a couple of weeks ago (but can't find the message any
> more for a follow-up), Wicket shows an ugly internal-error page if one
> somehow modified the stateful URLs, e.g.
> 
> http://localhost:8080/?wicket:interface=:8
> 
> Following exception is logged:
> 
>> org.apache.wicket.protocol.http.request.InvalidUrlException:
>> org.apache.wicket.WicketRuntimeException: Internal error parsing
>> wicket:interface = :6
>>      at
>> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:231)
>>      at org.apache.wicket.Request.getRequestParameters(Request.java:172)
>>      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1301)
>>      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419)
>>      at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>>      at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
>>      at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
>>      at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>      at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> 
> How to configure Wicket to show the configured 404-page instead?
> 
> Tom
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/InvalidUrlException---how-to-show-404-page-tp25712108p25712450.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to