JSF: Exception-handler-factory Not Called With AJAX Requests (Doc ID 1682843.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

The configured exception-handler-factory (in faces-config.xml) is not called when AJAX requests are used.

When trying to output the error message with <h:message> together with <h:commandlink>, and the exception is in a getter method I see the following:
1. The exception handler is invoked
2. The form is not rendered which means that I cannot see the error message

You may observe:
1. You see in the WLS log the UnexpectedExceptionHandler error message which is a good thing, because it means that the error hanlder factory is invoked
2. You can't see the error message rendered in the  page, which prevents me from seeing the error occurred.

So the result is that error messages thrown in getter methods will not be displayed neither with <h:messages> nor with <rich:messages>. The exception handling is based on the JSF exception handler.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms