Hi,

It seems like the error page is being rendered after a redirect. That's why
the request cycle is empty, because it is a new one.
On Oct 25, 2014 1:42 AM, "Entropy" <[email protected]> wrote:

> I have a requirement that when certain kinds of exceptions are thrown, I
> want
> to customize my exception error page.  I stuffed the exception into the
> requestcycle and retrieve it in the page like so:
>
> Exception exception =
> getRequestCycle().getMetaData(ESPApplication.EXCEPTION_KEY);
>
> I watch through breakpoints or log statements and the exception is provided
> the first time through, but after it processes it, the error page runs a
> second time, this time with a null in that value.  the result is that my
> error page is not getting what it needs, and renders without the needed
> info.
>
> Why would the error page run twice?  I don't see any additional exceptions
> in the log, and the error page does render...it just renders as if the
> exception object were null.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-error-page-runs-twice-tp4668093.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to