question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Core: FullAjaxExceptionHandler does not show error page when exception is thrown during ajax request

See original GitHub issue

Describe the defect Original report on OmniFaces: https://github.com/omnifaces/omnifaces/issues/686

Reproducer: pf-8743.zip

Run mvn clean jetty:run and click “Send AJAX Error”.

Environment:

  • PF Version: 11.0.0

Analysis done by @BalusC in that ticket should be implemented.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pizzi80commented, May 13, 2022

I don’t think BalusC thoroughly tested his workaround and it was assuming your 500.xhtml had not much in it.

His workaround was for that very specific error the user was reporting but not a comprehensive fix for all scenarios depending on what code you have in your 500.xhtml.

ok! … I didn’t understand … 😉

@pizzi80 if you update my reproducer above to show your issue I can see if I can make it work or MonkeyPatch it for you.

no worries I’ll wait for the next release

only a funny note on the reproducer …

it’s funny that you use Eclipse Jetty with Apache MyFaces

while I use Apache Tomcat with (now) Eclipse’s Mojarra LOL
… maybe it’s time to unify all these projects 😄

0reactions
agoetzecommented, Aug 4, 2022

For all users still being on PrimeFaces 8: We had to revert to v8.0.16 to get rid of this problem. In all later versions (latest version right now is 8.0.19) the OmniFaces FullAjaxExceptionHandler does not work in conjunction with PrimeFaces. One just gets a broken page with some faulty CSS but not the expected error page.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jsf 2 - Error Page isnt showing with FullAjaxExceptionHandler
FullAjaxExceptionHandler : An exception occurred during processing JSF ajax request. Error page '/view/errorpages/expired.faces' will be ...
Read more >
FullAjaxExceptionHandler - OmniFaces Showcase
It would make sense if exceptions during ajax requests are handled the same way as ... You could for example show them in...
Read more >
Fullajaxexceptionhandler Does Not Redirect To Error Page ...
Exceptions which are thrown during ajax requests have by default totally no ... However the error page does not show up at all...
Read more >
Exceptions and Error Handling - UserFrosting Documentation
Any time an uncaught exception is thrown in your code, the underlying Slim ... If the error was generated during an AJAX request...
Read more >
Why JSF 2.0 Hides Exceptions When Using AJAX - Beyond Java
The client doesn't show any reaction at all. ... When an AJAX request runs on an error typically an error message is returned...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found