In my JSF Project (with framework primefaces), i defined in web.xml an error-page to display when java.lang.Exception is thrown.
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/erreur.xhtml</location>
</error-page>
That works fine when a RuntimeException is thrown (erreur.xhtml is displayed).
I also created a class (called TechnicalException) inherited from RuntimeException.
When a TechnicalException is thrown, I can't explain why the error page doesn't display. Same case when i'm specifying "TechnicalException" in "exception-type" tag of web.xml.
When the TechnicalException is thrown, the request is still processing (favicon of the tab in processing mode) until session timeout.
Have you any idea about this behaviour ?
I might have an idea: if you override the getCause() method it can result in a loop. Check your getCause() method and avoid "return this;"
Julien
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With