Default Mapping Exceptions (20001 - 20008)
DefaultMappingException
is a run-time exception that is raised when an error occurs during OC4J CMP default mapping.
Format
EXCEPTION [TOPLINK – error code]: Exception name
EXCEPTION DESCRIPTION: Message
Example 13-21 Default Mapping Exception
EXCEPTION [TOPLINK – 20002]: oracle.toplink.exceptions.DefaultMappingException
EXCEPTION DESCRIPTION: The finder method with the parameters as defined in the ejb-jar.xml file, is not found in the home of bean.
-
20001: FINDER_PARAMETER_TYPE_NOT_FOUND
-
Cause: Could not find the parameter type, defined in the ejb-jar.xml
file, of the finder in the entity bean.
-
Action: Check the finder definition in the ejb-jar.xml
file and the bean home to ensure that the named finder has the specified method parameter type(s).
-
20002: FINDER_NOT_DEFINED_IN_HOME
-
Cause: The finder method with the parameters as defined in the ejb-jar.xml
file, is not found in the home of bean.
-
Action: Check the ejb-jar.xml
file and the bean home to ensure that the finder with the specified name and method parameter type(s) are defined.
-
20003: EJB_SELECT_NOT_DEFINED_IN_BEAN
-
Cause: The ejbSelect
method with the parameters, as defined in the ejb-jar.xml
file, is not found in the bean class.
-
Action: Check the ejb-jar.xml
file and the bean class to ensure that the ejbSelect
method is defined with the specified name and method parameter type(s).
-
20004: FINDER_NOT_START_WITH_FIND_OR_EJBSELECT
-
Cause: The finder method of bean in the ejb-jar.xml
file is not well defined. It should start with either find
or ejbSelect
.
-
Action: Check the ejb-jar.xml
file to ensure that the query name starts with find
or ejbSelect
, according to the EJB specification.
-
20005: GETTER_NOT_FOUND
-
Cause: The abstract get method is not defined in the bean.
-
Action: Check the ejb-jar.xml
file and the bean class to ensure that the abstract get method is well defined.
-
20006: FIELD_NOT_FOUND
-
Cause: The CMP
field is not defined in the bean.
-
Action: Check the ejb-jar.xml
file and the bean class to ensure that the CMP
field defined in the ejb-jar.xml
file is also defined in the bean class.
-
20007: MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE
-
Cause: During an attempt to clone the specified object, the maximum number of attempts to lock the specified object was exceeded. TopLink failed to clone the object.
-
-
20008: MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE
-
Cause: During an attempt to merge changes to the specified object, the maximum number of attempts to lock the specified object was exceeded. TopLink failed to merge the transaction.
-