Class XMLMarshalException

  • All Implemented Interfaces:
    java.io.Serializable

    public class XMLMarshalException
    extends ValidationException

    Purpose: XMLMarshalExceptions are raised when issues are encountered during XMLMarshaller or XMLUnmarshaller operations.

    See Also:
    Serialized Form
    • Field Detail

      • INVALID_XPATH_INDEX_STRING

        public static final int INVALID_XPATH_INDEX_STRING
        See Also:
        Constant Field Values
      • DEFAULT_ROOT_ELEMENT_NOT_SPECIFIED

        public static final int DEFAULT_ROOT_ELEMENT_NOT_SPECIFIED
        See Also:
        Constant Field Values
      • DESCRIPTOR_NOT_FOUND_IN_PROJECT

        public static final int DESCRIPTOR_NOT_FOUND_IN_PROJECT
        See Also:
        Constant Field Values
      • NO_DESCRIPTOR_WITH_MATCHING_ROOT_ELEMENT

        public static final int NO_DESCRIPTOR_WITH_MATCHING_ROOT_ELEMENT
        See Also:
        Constant Field Values
      • SCHEMA_REFERENCE_NOT_SET

        public static final int SCHEMA_REFERENCE_NOT_SET
        See Also:
        Constant Field Values
      • ERROR_RESOLVING_XML_SCHEMA

        public static final int ERROR_RESOLVING_XML_SCHEMA
        See Also:
        Constant Field Values
      • ERROR_INSTANTIATING_SCHEMA_PLATFORM

        public static final int ERROR_INSTANTIATING_SCHEMA_PLATFORM
        See Also:
        Constant Field Values
      • NAMESPACE_RESOLVER_NOT_SPECIFIED

        public static final int NAMESPACE_RESOLVER_NOT_SPECIFIED
        See Also:
        Constant Field Values
      • ENUM_CLASS_NOT_SPECIFIED

        public static final int ENUM_CLASS_NOT_SPECIFIED
        See Also:
        Constant Field Values
      • FROMSTRING_METHOD_ERROR

        public static final int FROMSTRING_METHOD_ERROR
        See Also:
        Constant Field Values
      • INVALID_ENUM_CLASS_SPECIFIED

        public static final int INVALID_ENUM_CLASS_SPECIFIED
        See Also:
        Constant Field Values
      • ILLEGAL_STATE_XML_UNMARSHALLER_HANDLER

        public static final int ILLEGAL_STATE_XML_UNMARSHALLER_HANDLER
        See Also:
        Constant Field Values
      • INVALID_SWA_REF_ATTRIBUTE_TYPE

        public static final int INVALID_SWA_REF_ATTRIBUTE_TYPE
        See Also:
        Constant Field Values
      • NO_ENCODER_FOR_MIME_TYPE

        public static final int NO_ENCODER_FOR_MIME_TYPE
        See Also:
        Constant Field Values
      • ERROR_INSTANTIATING_UNMAPPED_CONTENTHANDLER

        public static final int ERROR_INSTANTIATING_UNMAPPED_CONTENTHANDLER
        See Also:
        Constant Field Values
      • UNMAPPED_CONTENTHANDLER_DOESNT_IMPLEMENT

        public static final int UNMAPPED_CONTENTHANDLER_DOESNT_IMPLEMENT
        See Also:
        Constant Field Values
      • NO_ATTACHMENT_UNMARSHALLER_SET

        public static final int NO_ATTACHMENT_UNMARSHALLER_SET
        See Also:
        Constant Field Values
      • SUBCLASS_ATTEMPTED_TO_OVERRIDE_NAMESPACE_DECLARATION

        public static final int SUBCLASS_ATTEMPTED_TO_OVERRIDE_NAMESPACE_DECLARATION
        See Also:
        Constant Field Values
      • ERROR_INVOKING_NAMESPACE_PREFIX_MAPPER

        public static final int ERROR_INVOKING_NAMESPACE_PREFIX_MAPPER
        See Also:
        Constant Field Values
      • ERROR_PROCESSING_PREFIX_MAPPER

        public static final int ERROR_PROCESSING_PREFIX_MAPPER
        See Also:
        Constant Field Values
      • ERROR_INVOKING_CHARACTER_ESCAPE_HANDLER

        public static final int ERROR_INVOKING_CHARACTER_ESCAPE_HANDLER
        See Also:
        Constant Field Values
      • ERROR_PROCESSING_CHARACTER_ESCAPE_HANDLER

        public static final int ERROR_PROCESSING_CHARACTER_ESCAPE_HANDLER
        See Also:
        Constant Field Values
      • ERROR_INVOKING_ID_RESOLVER

        public static final int ERROR_INVOKING_ID_RESOLVER
        See Also:
        Constant Field Values
      • ERROR_PROCESSING_ID_RESOLVER

        public static final int ERROR_PROCESSING_ID_RESOLVER
        See Also:
        Constant Field Values
      • WRAPPED_ID_RESOLVER_WITH_MULTI_ID

        public static final int WRAPPED_ID_RESOLVER_WITH_MULTI_ID
        See Also:
        Constant Field Values
      • PLATFORM_NOT_SUPPORTED_WITH_JSON_MEDIA_TYPE

        public static final int PLATFORM_NOT_SUPPORTED_WITH_JSON_MEDIA_TYPE
        See Also:
        Constant Field Values
      • UNMARSHAL_FROM_STRING_FAILED

        public static final int UNMARSHAL_FROM_STRING_FAILED
        See Also:
        Constant Field Values
      • INVALID_ATTRIBUTE_GROUP_NAME

        public static final int INVALID_ATTRIBUTE_GROUP_NAME
        See Also:
        Constant Field Values
      • NULL_VALUE_NOT_ALLOWED_FOR_VARIABLE

        public static final int NULL_VALUE_NOT_ALLOWED_FOR_VARIABLE
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLMarshalException

        protected XMLMarshalException​(java.lang.String message)
      • XMLMarshalException

        protected XMLMarshalException​(java.lang.String message,
                                      java.lang.Exception internalException)
    • Method Detail

      • invalidXPathString

        public static XMLMarshalException invalidXPathString​(java.lang.String xpathString,
                                                             java.lang.Exception nestedException)
      • invalidXPathIndexString

        public static XMLMarshalException invalidXPathIndexString​(java.lang.String xpathString)
      • marshalException

        public static XMLMarshalException marshalException​(java.lang.Exception nestedException)
      • unmarshalException

        public static XMLMarshalException unmarshalException​(java.lang.Exception nestedException)
      • validateException

        public static XMLMarshalException validateException​(java.lang.Exception nestedException)
      • defaultRootElementNotSpecified

        public static XMLMarshalException defaultRootElementNotSpecified​(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor)
      • descriptorNotFoundInProject

        public static XMLMarshalException descriptorNotFoundInProject​(java.lang.String className)
      • noDescriptorWithMatchingRootElement

        public static XMLMarshalException noDescriptorWithMatchingRootElement​(java.lang.String rootElementName)
      • errorResolvingXMLSchema

        public static XMLMarshalException errorResolvingXMLSchema​(java.lang.Exception nestedException)
      • errorSettingSchemas

        public static XMLMarshalException errorSettingSchemas​(java.lang.Exception nestedException,
                                                              java.lang.Object[] schemas)
      • errorInstantiatingSchemaPlatform

        public static XMLMarshalException errorInstantiatingSchemaPlatform​(java.lang.Exception nestedException)
      • namespaceResolverNotSpecified

        public static XMLMarshalException namespaceResolverNotSpecified​(java.lang.String localName)
      • namespaceNotFound

        public static XMLMarshalException namespaceNotFound​(java.lang.String prefix)
      • errorInvokingFromStringMethod

        public static XMLMarshalException errorInvokingFromStringMethod​(java.lang.Exception nestedException,
                                                                        java.lang.String className)
      • invalidEnumClassSpecified

        public static XMLMarshalException invalidEnumClassSpecified​(java.lang.Exception nestedException,
                                                                    java.lang.String className)
      • illegalStateXMLUnmarshallerHandler

        public static XMLMarshalException illegalStateXMLUnmarshallerHandler()
      • invalidSwaRefAttribute

        public static XMLMarshalException invalidSwaRefAttribute​(java.lang.String attributeClassification)
      • noEncoderForMimeType

        public static XMLMarshalException noEncoderForMimeType​(java.lang.String mimeType)
      • noDescriptorFound

        public static XMLMarshalException noDescriptorFound​(org.eclipse.persistence.internal.oxm.mappings.Mapping mapping)
        Since:
        EclipseLink 2.5.0
      • errorInstantiatingUnmappedContentHandler

        public static XMLMarshalException errorInstantiatingUnmappedContentHandler​(java.lang.Exception nestedException,
                                                                                   java.lang.String className)
      • unmappedContentHandlerDoesntImplement

        public static XMLMarshalException unmappedContentHandlerDoesntImplement​(java.lang.Exception nestedException,
                                                                                java.lang.String className)
      • objectNotFoundInCache

        public static XMLMarshalException objectNotFoundInCache​(java.lang.String nodeName)
      • noAttachmentUnmarshallerSet

        public static XMLMarshalException noAttachmentUnmarshallerSet​(java.lang.String cid)
      • unknownXsiTypeValue

        public static XMLMarshalException unknownXsiTypeValue​(java.lang.String xsiType,
                                                              org.eclipse.persistence.internal.oxm.mappings.Mapping mapping)
        Since:
        EclipseLink 2.5.0
      • subclassAttemptedToOverrideNamespaceDeclaration

        public static XMLMarshalException subclassAttemptedToOverrideNamespaceDeclaration​(java.lang.String prefix,
                                                                                          java.lang.String subClassName,
                                                                                          java.lang.String subClassNamespaceURI,
                                                                                          java.lang.String parentClassName,
                                                                                          java.lang.String parentClassNamespaceURI)
      • errorInvokingPrefixMapperMethod

        public static XMLMarshalException errorInvokingPrefixMapperMethod​(java.lang.String methodName,
                                                                          java.lang.Object prefixMapper)
      • errorProcessingPrefixMapper

        public static XMLMarshalException errorProcessingPrefixMapper​(java.lang.String methodName,
                                                                      java.lang.Object prefixMapper)
      • errorInvokingCharacterEscapeHandler

        public static XMLMarshalException errorInvokingCharacterEscapeHandler​(java.lang.String methodName,
                                                                              java.lang.Object handler,
                                                                              java.lang.Throwable nestedException)
      • errorProcessingCharacterEscapeHandler

        public static XMLMarshalException errorProcessingCharacterEscapeHandler​(java.lang.String methodName,
                                                                                java.lang.Object handler,
                                                                                java.lang.Throwable nestedException)
      • errorInvokingIDResolver

        public static XMLMarshalException errorInvokingIDResolver​(java.lang.String methodName,
                                                                  java.lang.Object resolver,
                                                                  java.lang.Throwable nestedException)
      • errorProcessingIDResolver

        public static XMLMarshalException errorProcessingIDResolver​(java.lang.String methodName,
                                                                    java.lang.Object resolver,
                                                                    java.lang.Throwable nestedException)
      • wrappedIDResolverWithMultiID

        public static XMLMarshalException wrappedIDResolverWithMultiID​(java.lang.String keyString,
                                                                       java.lang.Object resolver)
      • objectCycleDetected

        public static XMLMarshalException objectCycleDetected​(java.lang.String objectCycleString)
      • unsupportedMediaTypeForPlatform

        public static XMLMarshalException unsupportedMediaTypeForPlatform()
      • unmarshalFromStringException

        public static XMLMarshalException unmarshalFromStringException​(java.lang.String systemId,
                                                                       java.lang.Exception nestedException)
      • missingIDForIDRef

        public static XMLMarshalException missingIDForIDRef​(java.lang.String classname,
                                                            java.lang.Object[] primaryKey)
      • invalidAttributeGroupName

        public static XMLMarshalException invalidAttributeGroupName​(java.lang.String groupName,
                                                                    java.lang.String className)
      • nullValueNotAllowed

        public static XMLMarshalException nullValueNotAllowed​(java.lang.String variableName,
                                                              java.lang.String className)