My Oracle Support Banner

ClassCastException "Java.Lang.String Cannot Be Cast To <CustomDomain>" When Using af:dynamicComponent (Doc ID 2252405.1)

Last updated on OCTOBER 25, 2022

Applies to:

Oracle JDeveloper - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

ADF provides the chance to create Custom, Validated Data Types by using Domains to define fields in Entity Objects as described in

Oracle® Fusion Middleware Developing Fusion Web Applications with Oracle Application Development Framework 12c (12.2.1)
E52650-07
April 2016

4.15.1 How to Create a Domain

 

However in ADF 12.2.1.2.0, especially with dynamic components, an exception similar to the following is thrown while creating a Business Domain Layer Using Entity Objects:

 

where <CustomDomain> is the full classpath of the class representing the defined custom domain.

 

For a common JSF page a workaround is to set the converter of an af:inputText from "default" to "oracle.genericDomain" in the component Properties.
However, in case of a dynamic JSF page using af:dynamicComponent such workaround does not work.

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.