Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

XML Conversion Exceptions (25001 - 25016)

XMLConversionException is a run-time exception that is raised when a conversion between TopLink instances and XML fails. This exception is used in cache coordination that uses XML change sets.

Format

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

Example 13-25 XML Conversion Exception

EXCEPTION [TOPLINK – 25001]: oracle.toplink.exceptions.XMLConversionException
EXCEPTION DESCRIPTION: Cannot create URL for file  [\\FILE_SERVER\command.xml].

25001: ERROR_CREATE_URL
Cause: Failed to create a URL for the specified file.
Action: Ensure that all specified XPath strings on mappings are valid and correct.
25002: INVALID_XPATH_INDEX_STRING
Cause: An integer index could not be parsed from this XPath string.
Action: Update any XPath strings that contain an index, and ensure that only a single integer value is contained between the square braces.
25003: MARSHAL_EXCEPTION
Cause: An error occurred marshalling the object.
Action: Check the nested exception to determine the cause of the problem. Typically, there is a problem with the object being written.
25004: UNMARSHAL_EXCEPTION
Cause: An error occurred unmarshalling the document.
Action: Check the nested exception to determine the cause of the problem. Typically, there is a problem with the XML document being read.
25005: VALIDATE_EXCEPTION
Cause: An error occurred validating the object.
Action: The XML generated from the object is invalid according to the schema. Ensure that any values set in the domain classes do not violate any schema constraints when marshalled.
25006: DEFAULT_ROOT_ELEMENT_NOT_SPECIFIED
Cause: A default root element was not specified for the XMLDescriptor mapped to the root-level object.
Action: Set a default root element on any XMLDescriptor that will be marshalled as a root-level object.
25007: DESCRIPTOR_NOT_FOUND_IN_PROJECT
Cause: A descriptor for a class was not found in the project.
Action: Make sure that any classes referenced through CompositeObject and/or CompositeCollection mappings have descriptors in the project.
25008: NO_DESCRIPTOR_WITH_MATCHING_ROOT_ELEMENT
Cause: A descriptor with a default root element was not found in the project.
Action: Set a default root element on any descriptor that maps to the root of a document. Make sure that the root element of the XML document being read in is mapped to a descriptor in the project.
25010: SCHEMA_REFERENCE_NOT_SET
Cause: A schema reference was not specified for the XMLDescriptor mapped to.
Action: Set a schema reference on the correct descriptor.
25011: NULL_ARGUMENT
Cause: A null argument was encountered.
Action: Ensure that no null parameters are passed into any marshal or unmarshall methods on XMLMarshaller.
25012: ERROR_RESOLVING_XML_SCHEMA
Cause: An error occurred resolving the XML Schema.
Action: Check any schema references and make sure that the schema can be accessed by the application at runtime.
25013: ERROR_SETTING_SCHEMAS
Cause: An error occurred while trying to set the schemas.
Action: An error was encountered while attempting to set schemas on an XML parser. Check the nested exception to determine the correct course of action.
25014: ERROR_INSTANTIATING_SCHEMA_PLATFORM
Cause: An error occurred while trying to instantiate the schema platform.
Action: An error was encountered while instantiating the schema platform. Check the nested exception to determine the correct course of action.
25015: NAMESPACE_RESOLVER_NOT_SPECIFIED
Cause: An error occurred trying to resolve the namespace URI for. A namespace resolver was not specified on the descriptor.
Action: Ensure that any descriptors that make use of namespaces have a namespace resolver specified on them.
25016: NAMESPACE_NOT_FOUND
Cause: A namespace for the prefix was not found in the namespace resolver.
Action: Ensure that any namespace prefix which is used by a descriptor or mapping has a corresponding entry in that descriptor's namespace resolver.