My Oracle Support Banner

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

Last updated on DECEMBER 16, 2023

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.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.