Skip Headers

# XML Marshal Exceptions (25001 – 25020)

Previous

Next

`XMLMarshalException` is raised when an error is encountered during the XML marshalling process.

Format

    EXCEPTION [TOPLINK – error code]: Exception name
    EXCEPTION DESCRIPTION: Message

XML Marshal Exception

    EXCEPTION [TOPLINK – 25001]: oracle.toplink.exceptions.XMLMarshalException
    EXCEPTION DESCRIPTION: Error while trying to create session.

25001: INVALID_XPATH_STRING
  Cause: Attempt to use an invalid XPath `string`.
  Action: Ensure that the XPath is specified correctly.

25002: INVALID_XPATH_INDEX_STRING
  Cause: Attempt to parse an integer index from the XPath string `xpathString`.
  Action: Ensure that the XPath is specified correctly.

25003: MARSHAL_EXCEPTION
  Cause: Error occurred during the object marshalling.
  Action: See the generated exception for the root cause.

25004: UNMARSHAL_EXCEPTION
  Cause: Error while setting up an `oracle.toplink.sessions.entitymanager.EntityManagerFactory`.
  Action: Ensure the correct setup of the `EntityManagerFactory`: `initializeFromMain` method of the `EntityContainer` should return `true`.

25005: VALIDATE_EXCEPTION
  Cause: Validation error.
  Action: See the generated exception for the root cause.

25006: DEFAULT_ROOT_ELEMENT_NOT_SPECIFIED
  Cause: A default root element is not specified for the `XMLDescriptor` mapped to `target`.
  Action: Specify the default root element for the descriptor.

25007: DESCRIPTOR_NOT_FOUND_IN_PROJECT
  Cause: A descriptor for class `ClassName` was not found in the project.
  Action: Ensure that the descriptor for this class exists.

25008: NO_DESCRIPTOR_WITH_MATCHING_ROOT_ELEMENT
  Cause: A descriptor with the default root element `element` was not found in the project.
  Action: Ensure that the descriptor for this class exists and that its default root element is specified.

25010: SCHEMA_REFERENCE_NOT_SET
  Cause: A schema reference is not specified for the XMLDescriptor mapped to target.
  Action: Specify the schema reference for the descriptor.

25011: NULL_ARGUMENT
  Cause: A `null` argument was encountered.
  Action: Ensure that this argument is not `null`.

25012: ERROR_RESOLVING_XML_SCHEMA
  Cause: Failure to resolve the XML schema.
  Action: See the generated exception for the root cause.

25013: ERROR_SETTING_SCHEMAS
  Cause: Failure to set schemas.
  Action: See the generated exception for the root cause.

25014: ERROR_INSTANTIATING_SCHEMA_PLATFORM
  Cause: Error during the schema platform instantiation.
  Action: See the generated exception for the root cause.

25015: NAMESPACE_RESOLVER_NOT_SPECIFIED
  Cause: Failure to resolve the namespace URI for target.
  Action: Specify a namespace resolver on the descriptor

25016: NAMESPACE_NOT_FOUND
  Cause: A namespace for the prefix `prefix` was not found in the namespace resolver.
  Action: Ensure that the namespace for this prefix exists in the namespace resolver.

25017: ENUM_CLASS_NOT_SPECIFIED
  Cause: Enumeration class is not specified.
  Action: Set either `enumClass` or `enumClassName` on the `JAXBTypesafeEnumConverter`.

25018: FROMSTRING_METHOD_ERROR
  Cause: Error during the invocation of the `fromString` method on the enumeration class `ClassName`: the method does not exist or could not be invoked.
  Action: See the generated exception for the root cause.

25019: INVALID_ENUM_CLASS_SPECIFIED
  Cause: The specified enumeration class ClassName was not found.
  Action: Ensure the correct specification of the enumeration class.

25020: ILLEGAL_STATE_XML_UNMARSHALLER_HANDLER
  Cause: Attempt to call the method `getResult` before the call to the `endDocument` event.
  Action: Call the getResult method after the `endDocument` event has been called.

For more information, see "Understanding XML Mappings".