EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.exceptions
Class JAXBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.persistence.exceptions.EclipseLinkException
                  extended by org.eclipse.persistence.exceptions.JAXBException
All Implemented Interfaces:
java.io.Serializable

public class JAXBException
extends EclipseLinkException

Purpose:

Responsibilities:

See Also:
Serialized Form
Since:
Oracle EclipseLink 1.0

Field Summary
static int ADAPTER_CLASS_COULD_NOT_BE_INSTANTIATED
           
static int ADAPTER_CLASS_METHOD_EXCEPTION
           
static int ADAPTER_CLASS_NOT_LOADED
           
static int ANY_ATTRIBUTE_ON_NON_MAP_PROPERTY
           
static int BINDINGS_PKG_NOT_SET
           
static int CANNOT_CREATE_DYNAMIC_CONTEXT_FROM_CLASSES
           
static int CANNOT_INITIALIZE_FROM_NODE
           
static int CANNOT_REFRESH_METADATA
           
static int CLASS_NOT_FOUND_EXCEPTION
           
static int COULD_NOT_CREATE_CONTEXT_FOR_XML_MODEL
           
static int COULD_NOT_CREATE_CUSTOMIZER_INSTANCE
           
static int COULD_NOT_INITIALIZE_DOM_HANDLER_CONVERTER
           
static int COULD_NOT_LOAD_CLASS_FROM_METADATA
           
static int COULD_NOT_UNMARSHAL_METADATA
           
static int DUPLICATE_ELEMENT_NAME
           
static int DUPLICATE_PROPERTY_NAME
           
static int ENUM_CONSTANT_NOT_FOUND
           
static int ERROR_CREATING_DYNAMICJAXBCONTEXT
           
static int ERROR_CREATING_FIELD_ACCESSOR
           
static int ERROR_CREATING_PROPERTY_ACCESSOR
           
static int ERROR_INSTANTIATING_ACCESSOR_FACTORY
           
static int ERROR_INVOKING_ACCESSOR
           
static int EXCEPTION_DURING_NAME_TRANSFORMATION
           
static int EXCEPTION_DURING_SCHEMA_GEN
           
static int EXCEPTION_WITH_NAME_TRANSFORMER_CLASS
           
static int FACTORY_CLASS_WITHOUT_FACTORY_METHOD
           
static int FACTORY_METHOD_NOT_DECLARED
           
static int FACTORY_METHOD_OR_ZERO_ARG_CONST_REQ
           
static int ID_ALREADY_SET
           
static int INCORRECT_NUMBER_OF_XMLJOINNODES_ON_XMLELEMENTS
           
static int INVALID_ACCESSOR_FACTORY
           
static int INVALID_ADAPTER_CLASS
           
static int INVALID_CUSTOMIZER_CLASS
           
static int INVALID_ENUM_VALUE
           
static int INVALID_ID
           
static int INVALID_IDREF
           
static int INVALID_IDREF_CLASS
           
static int INVALID_INTERFACE
           
static int INVALID_LIST
           
static int INVALID_PACKAGE_ADAPTER_CLASS
           
static int INVALID_PROPERTY_ADAPTER_CLASS
           
static int INVALID_REF_CLASS
           
static int INVALID_REF_XML_PATH
           
static int INVALID_TYPE_ADAPTER_CLASS
           
static int INVALID_TYPE_FOR_XMLATTRIBUTEREF_PROPERTY
           
static int INVALID_TYPE_FOR_XMLVALUE_PROPERTY
           
static int INVALID_XML_ELEMENT_REF
           
static int INVALID_XML_ELEMENT_WRAPPER
           
static int INVALID_XML_PATH_ATTRIBUTE
           
static int INVALID_XMLELEMENT_IN_XMLELEMENTS
           
static int INVALID_XMLLOCATION
           
static int JAVATYPE_NOT_ALLOWED_IN_BINDINGS_FILE
           
static int JSON_VALUE_WRAPPER_REQUIRED
           
static int KEY_PARAMETER_TYPE_INCORRECT
           
static int MISSING_PROPERTY_IN_PROP_ORDER
           
static int MULTIPLE_ANY_ATTRIBUTE_MAPPING
           
static int MULTIPLE_XMLELEMREF
           
static int NAME_COLLISION
           
static int NO_ID_OR_KEY_ON_JOIN_TARGET
           
static int NO_OBJECT_FACTORY_OR_JAXB_INDEX_IN_PATH
           
static int NO_SUCH_WRITE_TRANSFORMATION_METHOD
           
static int NON_EXISTENT_PROPERTY_IN_PROP_ORDER
           
static int NULL_INPUT_STREAM
           
static int NULL_MAP_KEY
           
static int NULL_METADATA_FILE
           
static int NULL_METADATA_SOURCE
           
static int NULL_NODE
           
static int NULL_SESSION_NAME
           
static int NULL_SOURCE
           
static int NULL_TYPE_ON_TYPEMAPPINGINFO
           
static int OXM_KEY_NOT_FOUND
           
static int READ_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD
           
static int READ_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD
           
static int SAME_PROPERTY_IN_MULTIPLE_BINDINGS_FILES
           
static int SUBCLASS_CANNOT_HAVE_XMLVALUE
           
static int TRANSFORMER_CLASS_NOT_FOUND
           
static int TRANSIENT_IN_PROP_ORDER
           
static int TRANSIENT_REF_CLASS
           
static int UNABLE_TO_LOAD_METADATA_FROM_LOCATION
           
static int UNSUPPORTED_NODE_CLASS
           
static int VALUE_PARAMETER_TYPE_INCORRECT
           
static int VALUE_PARAMETER_TYPE_INCORRECT_FOR_OXM_XML
           
static int WRITE_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD
           
static int WRITE_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD
           
static int WRITE_TRANSFORMER_HAS_NO_XMLPATH
           
static int XJB_NOT_SOURCE
           
static int XJC_BINDING_ERROR
           
static int XMLANYELEMENT_ALREADY_SET
           
static int XMLVALUE_ALREADY_SET
           
static int XMLVALUE_ATTRIBUTE_CONFLICT
           
static int XSD_IMPORT_NOT_SOURCE
           
 
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
 
Constructor Summary
protected JAXBException(java.lang.String message)
           
protected JAXBException(java.lang.String message, java.lang.Exception internalException)
           
 
Method Summary
static JAXBException adapterClassCouldNotBeInstantiated(java.lang.String adapterClassName, java.lang.Exception ex)
          PUBLIC: Cause: An exception occurred while attempting to get a new instance of the adapter class.
static JAXBException adapterClassMethodsCouldNotBeAccessed(java.lang.String adapterClassName, java.lang.Exception ex)
          PUBLIC: Cause: An exception occurred while attempting to get the declared methods from the adapter class.
static JAXBException adapterClassNotLoaded(java.lang.String adapterClassName, java.lang.Exception ex)
          PUBLIC: Cause: The adapter class set on XMLJavaTypeConverter could not be loaded.
static JAXBException anyAttributeOnNonMap(java.lang.String propertyName)
           
static JAXBException cannotCreateDynamicContextFromClasses()
          This exception is thrown if the user tries to create a new instance of DynamicJAXBContext using an array of actual classes.
static JAXBException cannotInitializeFromNode()
          This exception is thrown if the user tries to create a new instance of DynamicJAXBContext using an Node, that is not an instance of either Document or Element.
static JAXBException cannotRefreshMetadata()
           
static JAXBException classNotFoundException(java.lang.String className)
           
static JAXBException couldNotCreateContextForXmlModel()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException couldNotCreateContextForXmlModel(java.lang.Exception ex)
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException couldNotCreateCustomizerInstance(java.lang.Exception e, java.lang.String customizerClassName)
          This exception should be used when a descriptor customizer instance cannot be created.
static JAXBException couldNotInitializeDomHandlerConverter(java.lang.Exception nestedException, java.lang.String domHandlerClassName, java.lang.String propertyName)
          This exception should be used when DomHandlerConverter initialization fails.
static JAXBException couldNotLoadClassFromMetadata(java.lang.String classname)
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException couldNotUnmarshalMetadata(java.lang.Exception e)
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException duplicateElementName(javax.xml.namespace.QName qName)
           
static JAXBException duplicatePropertyName(java.lang.String propertyName, java.lang.String className)
           
static JAXBException enumConstantNotFound(java.lang.String name)
          This exception is thrown if the user tries to get a non-existant enum constant from an enum class.
static JAXBException errorCreatingDynamicJAXBContext(java.lang.Exception nestedException)
          This is a general exception, thrown if a problem was encountered during DynamicJAXBContext creation.
static JAXBException errorCreatingFieldAccessor(java.lang.Object accessorFactory, java.lang.Exception nestedException)
           
static JAXBException errorCreatingPropertyAccessor(java.lang.Object accessorFactory, java.lang.Exception nestedException)
           
static JAXBException errorInstantiatingAccessorFactory(java.lang.Object factoryClass, java.lang.Exception nestedException)
          PUBLIC: Cause: An exception occured while trying to instantiate an instance of the user specified AccessorFactory
static JAXBException errorInvokingAccessor(java.lang.Object accessor, java.lang.String method, java.lang.Exception nestedException)
           
static JAXBException exceptionDuringNameTransformation(java.lang.String nameBeingTransformed, java.lang.String nametransformerClassName, java.lang.Exception ex)
          PUBLIC: Cause: An exception occurred during transformation to an xml name
static JAXBException exceptionDuringSchemaGeneration(java.lang.Exception ex)
          PUBLIC: Cause: An exception occurred during schema generation.
static JAXBException exceptionWithNameTransformerClass(java.lang.String nametransformerClassName, java.lang.Exception ex)
          PUBLIC: Cause: An exception occurred while attempting to get a new instance of the transformer class.
static JAXBException factoryClassWithoutFactoryMethod(java.lang.String className)
           
static JAXBException factoryMethodNotDeclared(java.lang.String methodName, java.lang.String className)
           
static JAXBException factoryMethodOrConstructorRequired(java.lang.String className)
           
static JAXBException idAlreadySet(java.lang.String propertyName, java.lang.String idPropertyName, java.lang.String className)
          This exception should be used when an attempt is made to set an ID property when one has already been set.
static JAXBException incorrectKeyParameterType()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException incorrectNumberOfXmlJoinNodesOnXmlElements(java.lang.String propertyName, java.lang.String className)
          PUBLIC: Cause: There is a different number of XmlElements and XmlJoinNodes entries in a given XmlElementsJoinNodes.
static JAXBException incorrectValueParameterType()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException incorrectValueParameterTypeForOxmXmlKey()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException invalidAccessorFactory(java.lang.Object accessorFactoryClass, java.lang.Exception nestedException)
           
static JAXBException invalidAdapterClass(java.lang.String adapterClassName)
          PUBLIC: Cause: The adapter class does not extend javax.xml.bind.annotation.adapters.XmlAdapter.
static JAXBException invalidAttributeRef(java.lang.String propertyName, java.lang.String className)
          This exception should be used when an @XmlAttributeRef or xml-attribute-ref appears on a non-DataHandler property.
static JAXBException invalidCustomizerClass(java.lang.Exception e, java.lang.String customizerClassName)
          This exception would typically be thrown when a customizer class is set that is not an instance of DescriptorCustomizer.
static JAXBException invalidElementRef(java.lang.String propertyName, java.lang.String className)
           
static JAXBException invalidElementWrapper(java.lang.String propertyName)
           
static JAXBException invalidEnumValue(java.lang.Object value, java.lang.String theClassName, java.lang.Exception nestedException)
           
static JAXBException invalidId(java.lang.String propertyName)
           
static JAXBException invalidIdRef(java.lang.String propertyName, java.lang.String className)
           
static JAXBException invalidIDREFClass(java.lang.String className, java.lang.String propertyName, java.lang.String referencedClassName)
          PUBLIC: Cause: The referenced class (i.e. actualType) of the Property containing the XmlIDREF declaration does not have an associated TypeInfo.
static JAXBException invalidInterface(java.lang.String interfaceName)
           
static JAXBException invalidList(java.lang.String propertyName)
           
static JAXBException invalidPackageAdapterClass(java.lang.String adapterClassName, java.lang.String packageName)
          PUBLIC: Cause: The package level adapter class set on XMLJavaTypeConverter could not be loaded.
static JAXBException invalidPropertyAdapterClass(java.lang.String adapterClassName, java.lang.String propName, java.lang.String typeName)
          PUBLIC: Cause: The field/property level adapter class set on XMLJavaTypeConverter could not be loaded.
static JAXBException invalidReferencedXmlPathOnJoin(java.lang.String className, java.lang.String propertyName, java.lang.String referencedClassName, java.lang.String referencedXmlPath)
          PUBLIC: Cause: No ID or Key property exists on the target class with an XPath == referencedXmlPath.
static JAXBException invalidReferenceToTransientClass(java.lang.String className, java.lang.String propertyName, java.lang.String referencedClassName)
          PUBLIC: Cause: The reference class (i.e. actualType) of a given Property is marked transient.
static JAXBException invalidTypeAdapterClass(java.lang.String adapterClassName, java.lang.String typeName)
          PUBLIC: Cause: The type level adapter class set on XMLJavaTypeConverter could not be loaded.
static JAXBException invalidTypeForXmlValueField(java.lang.String fieldName)
           
static JAXBException invalidXmlElementInXmlElementsList(java.lang.String propertyName, java.lang.String elementName)
          This exception should be used when XmlElements and XmlIDREF are set on a property, but one or more of the XmlElement entries in the list has a type that does not have an XmlID property.
static JAXBException invalidXmlJoinNodeReferencedClass(java.lang.String propertyName, java.lang.String referencedClassName)
          PUBLIC: Cause: The referenced class (i.e. actualType) of the Property containing the XmlJoinNodes declaration does not have an associated TypeInfo.
static JAXBException invalidXmlLocation(java.lang.String propertyName, java.lang.String propertyType)
          Cause: @XmlLocation is set on a non-Locator property.
static JAXBException invalidXmlPathWithAttribute(java.lang.String propertyName, java.lang.String className, java.lang.String xpath)
          When the target of an XmlPaths -> XmlPath is an attribute, it must be nested, and not the root of the path.
static JAXBException javaTypeNotAllowedInBindingsFile(java.lang.String javaTypePackage, java.lang.String bindingsPackage)
          This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.
static JAXBException jsonValuePropertyRequired(java.lang.Object value)
          PUBLIC: Cause: An exception occurred marshalling json
static JAXBException missingPropertyInPropOrder(java.lang.String fieldName)
           
static JAXBException missingPropertyInPropOrder(java.lang.String fieldName, java.lang.String className)
           
static JAXBException multipleAnyAttributeMapping(java.lang.String className)
           
static JAXBException multipleXmlElementRef(java.lang.String propertyTypeName, java.lang.String className)
           
static JAXBException nameCollision(java.lang.String uri, java.lang.String name)
           
static JAXBException noKeyOrIDPropertyOnJoinTarget(java.lang.String className, java.lang.String propertyName, java.lang.String referencedClassName)
          PUBLIC: Cause: The target class has no ID or Key properties set.
static JAXBException nonExistentPropertyInPropOrder(java.lang.String fieldName)
           
static JAXBException noObjectFactoryOrJaxbIndexInPath(java.lang.String path)
           
static JAXBException noSuchWriteTransformationMethod(java.lang.String methodName)
          PUBLIC: Cause: Write transformation method does not exist, or has the wrong number or type of parameters.
static JAXBException nullInputStream()
          This exception is thrown if the user tries bootstrap from XML Schema but provides a null InputStream parameter.
static JAXBException nullMapKey()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException nullMetadataSource()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException nullMetadataSource(java.lang.String key)
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException nullNode()
          This exception is thrown if the user tries bootstrap from XML Schema but provides a null Node parameter.
static JAXBException nullSessionName()
          This exception is thrown if the user tries bootstrap from sessions.xml but provides a null sessionNames parameter.
static JAXBException nullSource()
          This exception is thrown if the user tries bootstrap from XML Schema but provides a null Source parameter.
static JAXBException nullTypeOnTypeMappingInfo(javax.xml.namespace.QName tagName)
          This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.
static JAXBException oxmKeyNotFound()
          PUBLIC: Cause: Properties passed to createDynamicFromOXM did not contain ECLIPSELINK_OXM_FILE_KEY, or was null.
static JAXBException packageNotSetForBindingException()
          This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.
static JAXBException propertyOrFieldCannotBeXmlValue(java.lang.String fieldName)
           
static JAXBException propertyOrFieldShouldBeAnAttribute(java.lang.String fieldName)
           
static JAXBException readTransformerHasBothClassAndMethod(java.lang.String propertyName)
          PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies both class and method.
static JAXBException readTransformerHasNeitherClassNorMethod(java.lang.String propertyName)
          PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies neither class nor method.
static JAXBException samePropertyInMultipleFiles(java.lang.String propertyName, java.lang.String className)
           
static JAXBException transformerClassNotFound(java.lang.String className)
          PUBLIC: Cause: Transformer class could not be loaded.
static JAXBException transientInProporder(java.lang.String fieldName)
           
static JAXBException unableToLoadMetadataFromLocation(java.lang.String location)
           
static JAXBException unsupportedNodeClass(java.lang.String className)
           
static JAXBException writeTransformerHasBothClassAndMethod(java.lang.String propertyName, java.lang.String xmlPath)
          PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class and specified xml-path specifies both class and method.
static JAXBException writeTransformerHasNeitherClassNorMethod(java.lang.String propertyName, java.lang.String xmlPath)
          PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class and specified xml-path specifies neither class nor method.
static JAXBException writeTransformerHasNoXmlPath(java.lang.String propertyName)
          PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class has no xml-path specified, or the specified xml-path is invalid.
static JAXBException xjbNotSource()
           
static JAXBException xjcBindingError()
          This exception is thrown if XJC was unable to generate a CodeModel.
static JAXBException xmlAnyElementAlreadySet(java.lang.String propertyName, java.lang.String xmlAnyElementPropertyName, java.lang.String className)
          This exception should be used when an attempt is made to set an XmlAnyElement property when one has already been set.
static JAXBException xmlValueAlreadySet(java.lang.String propertyName, java.lang.String xmlValuePropertyName, java.lang.String className)
          This exception should be used when an attempt is made to set an XmlValue property when one has already been set.
static JAXBException xsdImportNotSource()
           
 
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_OBJECT_FACTORY_OR_JAXB_INDEX_IN_PATH

public static final int NO_OBJECT_FACTORY_OR_JAXB_INDEX_IN_PATH
See Also:
Constant Field Values

FACTORY_METHOD_OR_ZERO_ARG_CONST_REQ

public static final int FACTORY_METHOD_OR_ZERO_ARG_CONST_REQ
See Also:
Constant Field Values

FACTORY_CLASS_WITHOUT_FACTORY_METHOD

public static final int FACTORY_CLASS_WITHOUT_FACTORY_METHOD
See Also:
Constant Field Values

FACTORY_METHOD_NOT_DECLARED

public static final int FACTORY_METHOD_NOT_DECLARED
See Also:
Constant Field Values

ANY_ATTRIBUTE_ON_NON_MAP_PROPERTY

public static final int ANY_ATTRIBUTE_ON_NON_MAP_PROPERTY
See Also:
Constant Field Values

MULTIPLE_ANY_ATTRIBUTE_MAPPING

public static final int MULTIPLE_ANY_ATTRIBUTE_MAPPING
See Also:
Constant Field Values

INVALID_XML_ELEMENT_REF

public static final int INVALID_XML_ELEMENT_REF
See Also:
Constant Field Values

NAME_COLLISION

public static final int NAME_COLLISION
See Also:
Constant Field Values

UNSUPPORTED_NODE_CLASS

public static final int UNSUPPORTED_NODE_CLASS
See Also:
Constant Field Values

TRANSIENT_IN_PROP_ORDER

public static final int TRANSIENT_IN_PROP_ORDER
See Also:
Constant Field Values

XMLVALUE_ATTRIBUTE_CONFLICT

public static final int XMLVALUE_ATTRIBUTE_CONFLICT
See Also:
Constant Field Values

SUBCLASS_CANNOT_HAVE_XMLVALUE

public static final int SUBCLASS_CANNOT_HAVE_XMLVALUE
See Also:
Constant Field Values

NON_EXISTENT_PROPERTY_IN_PROP_ORDER

public static final int NON_EXISTENT_PROPERTY_IN_PROP_ORDER
See Also:
Constant Field Values

MISSING_PROPERTY_IN_PROP_ORDER

public static final int MISSING_PROPERTY_IN_PROP_ORDER
See Also:
Constant Field Values

INVALID_TYPE_FOR_XMLVALUE_PROPERTY

public static final int INVALID_TYPE_FOR_XMLVALUE_PROPERTY
See Also:
Constant Field Values

INVALID_XML_ELEMENT_WRAPPER

public static final int INVALID_XML_ELEMENT_WRAPPER
See Also:
Constant Field Values

INVALID_ID

public static final int INVALID_ID
See Also:
Constant Field Values

INVALID_IDREF

public static final int INVALID_IDREF
See Also:
Constant Field Values

INVALID_LIST

public static final int INVALID_LIST
See Also:
Constant Field Values

VALUE_PARAMETER_TYPE_INCORRECT_FOR_OXM_XML

public static final int VALUE_PARAMETER_TYPE_INCORRECT_FOR_OXM_XML
See Also:
Constant Field Values

KEY_PARAMETER_TYPE_INCORRECT

public static final int KEY_PARAMETER_TYPE_INCORRECT
See Also:
Constant Field Values

VALUE_PARAMETER_TYPE_INCORRECT

public static final int VALUE_PARAMETER_TYPE_INCORRECT
See Also:
Constant Field Values

NULL_METADATA_SOURCE

public static final int NULL_METADATA_SOURCE
See Also:
Constant Field Values

NULL_MAP_KEY

public static final int NULL_MAP_KEY
See Also:
Constant Field Values

COULD_NOT_LOAD_CLASS_FROM_METADATA

public static final int COULD_NOT_LOAD_CLASS_FROM_METADATA
See Also:
Constant Field Values

COULD_NOT_CREATE_CONTEXT_FOR_XML_MODEL

public static final int COULD_NOT_CREATE_CONTEXT_FOR_XML_MODEL
See Also:
Constant Field Values

COULD_NOT_UNMARSHAL_METADATA

public static final int COULD_NOT_UNMARSHAL_METADATA
See Also:
Constant Field Values

COULD_NOT_CREATE_CUSTOMIZER_INSTANCE

public static final int COULD_NOT_CREATE_CUSTOMIZER_INSTANCE
See Also:
Constant Field Values

INVALID_CUSTOMIZER_CLASS

public static final int INVALID_CUSTOMIZER_CLASS
See Also:
Constant Field Values

ID_ALREADY_SET

public static final int ID_ALREADY_SET
See Also:
Constant Field Values

XMLVALUE_ALREADY_SET

public static final int XMLVALUE_ALREADY_SET
See Also:
Constant Field Values

XMLANYELEMENT_ALREADY_SET

public static final int XMLANYELEMENT_ALREADY_SET
See Also:
Constant Field Values

COULD_NOT_INITIALIZE_DOM_HANDLER_CONVERTER

public static final int COULD_NOT_INITIALIZE_DOM_HANDLER_CONVERTER
See Also:
Constant Field Values

INVALID_TYPE_FOR_XMLATTRIBUTEREF_PROPERTY

public static final int INVALID_TYPE_FOR_XMLATTRIBUTEREF_PROPERTY
See Also:
Constant Field Values

INVALID_XMLELEMENT_IN_XMLELEMENTS

public static final int INVALID_XMLELEMENT_IN_XMLELEMENTS
See Also:
Constant Field Values

NULL_TYPE_ON_TYPEMAPPINGINFO

public static final int NULL_TYPE_ON_TYPEMAPPINGINFO
See Also:
Constant Field Values

JAVATYPE_NOT_ALLOWED_IN_BINDINGS_FILE

public static final int JAVATYPE_NOT_ALLOWED_IN_BINDINGS_FILE
See Also:
Constant Field Values

CANNOT_CREATE_DYNAMIC_CONTEXT_FROM_CLASSES

public static final int CANNOT_CREATE_DYNAMIC_CONTEXT_FROM_CLASSES
See Also:
Constant Field Values

CANNOT_INITIALIZE_FROM_NODE

public static final int CANNOT_INITIALIZE_FROM_NODE
See Also:
Constant Field Values

ERROR_CREATING_DYNAMICJAXBCONTEXT

public static final int ERROR_CREATING_DYNAMICJAXBCONTEXT
See Also:
Constant Field Values

ENUM_CONSTANT_NOT_FOUND

public static final int ENUM_CONSTANT_NOT_FOUND
See Also:
Constant Field Values

NULL_SESSION_NAME

public static final int NULL_SESSION_NAME
See Also:
Constant Field Values

NULL_SOURCE

public static final int NULL_SOURCE
See Also:
Constant Field Values

NULL_INPUT_STREAM

public static final int NULL_INPUT_STREAM
See Also:
Constant Field Values

NULL_NODE

public static final int NULL_NODE
See Also:
Constant Field Values

XJC_BINDING_ERROR

public static final int XJC_BINDING_ERROR
See Also:
Constant Field Values

CLASS_NOT_FOUND_EXCEPTION

public static final int CLASS_NOT_FOUND_EXCEPTION
See Also:
Constant Field Values

READ_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD

public static final int READ_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD
See Also:
Constant Field Values

READ_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD

public static final int READ_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD
See Also:
Constant Field Values

WRITE_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD

public static final int WRITE_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD
See Also:
Constant Field Values

WRITE_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD

public static final int WRITE_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD
See Also:
Constant Field Values

WRITE_TRANSFORMER_HAS_NO_XMLPATH

public static final int WRITE_TRANSFORMER_HAS_NO_XMLPATH
See Also:
Constant Field Values

NO_SUCH_WRITE_TRANSFORMATION_METHOD

public static final int NO_SUCH_WRITE_TRANSFORMATION_METHOD
See Also:
Constant Field Values

TRANSFORMER_CLASS_NOT_FOUND

public static final int TRANSFORMER_CLASS_NOT_FOUND
See Also:
Constant Field Values

OXM_KEY_NOT_FOUND

public static final int OXM_KEY_NOT_FOUND
See Also:
Constant Field Values

INVALID_REF_CLASS

public static final int INVALID_REF_CLASS
See Also:
Constant Field Values

TRANSIENT_REF_CLASS

public static final int TRANSIENT_REF_CLASS
See Also:
Constant Field Values

NO_ID_OR_KEY_ON_JOIN_TARGET

public static final int NO_ID_OR_KEY_ON_JOIN_TARGET
See Also:
Constant Field Values

INVALID_REF_XML_PATH

public static final int INVALID_REF_XML_PATH
See Also:
Constant Field Values

INVALID_IDREF_CLASS

public static final int INVALID_IDREF_CLASS
See Also:
Constant Field Values

ADAPTER_CLASS_NOT_LOADED

public static final int ADAPTER_CLASS_NOT_LOADED
See Also:
Constant Field Values

ADAPTER_CLASS_METHOD_EXCEPTION

public static final int ADAPTER_CLASS_METHOD_EXCEPTION
See Also:
Constant Field Values

ADAPTER_CLASS_COULD_NOT_BE_INSTANTIATED

public static final int ADAPTER_CLASS_COULD_NOT_BE_INSTANTIATED
See Also:
Constant Field Values

INVALID_ADAPTER_CLASS

public static final int INVALID_ADAPTER_CLASS
See Also:
Constant Field Values

INVALID_PACKAGE_ADAPTER_CLASS

public static final int INVALID_PACKAGE_ADAPTER_CLASS
See Also:
Constant Field Values

INVALID_TYPE_ADAPTER_CLASS

public static final int INVALID_TYPE_ADAPTER_CLASS
See Also:
Constant Field Values

INVALID_PROPERTY_ADAPTER_CLASS

public static final int INVALID_PROPERTY_ADAPTER_CLASS
See Also:
Constant Field Values

NULL_METADATA_FILE

public static final int NULL_METADATA_FILE
See Also:
Constant Field Values

BINDINGS_PKG_NOT_SET

public static final int BINDINGS_PKG_NOT_SET
See Also:
Constant Field Values

INCORRECT_NUMBER_OF_XMLJOINNODES_ON_XMLELEMENTS

public static final int INCORRECT_NUMBER_OF_XMLJOINNODES_ON_XMLELEMENTS
See Also:
Constant Field Values

INVALID_XML_PATH_ATTRIBUTE

public static final int INVALID_XML_PATH_ATTRIBUTE
See Also:
Constant Field Values

DUPLICATE_PROPERTY_NAME

public static final int DUPLICATE_PROPERTY_NAME
See Also:
Constant Field Values

SAME_PROPERTY_IN_MULTIPLE_BINDINGS_FILES

public static final int SAME_PROPERTY_IN_MULTIPLE_BINDINGS_FILES
See Also:
Constant Field Values

EXCEPTION_WITH_NAME_TRANSFORMER_CLASS

public static final int EXCEPTION_WITH_NAME_TRANSFORMER_CLASS
See Also:
Constant Field Values

EXCEPTION_DURING_NAME_TRANSFORMATION

public static final int EXCEPTION_DURING_NAME_TRANSFORMATION
See Also:
Constant Field Values

UNABLE_TO_LOAD_METADATA_FROM_LOCATION

public static final int UNABLE_TO_LOAD_METADATA_FROM_LOCATION
See Also:
Constant Field Values

CANNOT_REFRESH_METADATA

public static final int CANNOT_REFRESH_METADATA
See Also:
Constant Field Values

XJB_NOT_SOURCE

public static final int XJB_NOT_SOURCE
See Also:
Constant Field Values

XSD_IMPORT_NOT_SOURCE

public static final int XSD_IMPORT_NOT_SOURCE
See Also:
Constant Field Values

INVALID_XMLLOCATION

public static final int INVALID_XMLLOCATION
See Also:
Constant Field Values

EXCEPTION_DURING_SCHEMA_GEN

public static final int EXCEPTION_DURING_SCHEMA_GEN
See Also:
Constant Field Values

JSON_VALUE_WRAPPER_REQUIRED

public static final int JSON_VALUE_WRAPPER_REQUIRED
See Also:
Constant Field Values

ERROR_INSTANTIATING_ACCESSOR_FACTORY

public static final int ERROR_INSTANTIATING_ACCESSOR_FACTORY
See Also:
Constant Field Values

INVALID_ACCESSOR_FACTORY

public static final int INVALID_ACCESSOR_FACTORY
See Also:
Constant Field Values

ERROR_CREATING_FIELD_ACCESSOR

public static final int ERROR_CREATING_FIELD_ACCESSOR
See Also:
Constant Field Values

ERROR_CREATING_PROPERTY_ACCESSOR

public static final int ERROR_CREATING_PROPERTY_ACCESSOR
See Also:
Constant Field Values

ERROR_INVOKING_ACCESSOR

public static final int ERROR_INVOKING_ACCESSOR
See Also:
Constant Field Values

INVALID_ENUM_VALUE

public static final int INVALID_ENUM_VALUE
See Also:
Constant Field Values

INVALID_INTERFACE

public static final int INVALID_INTERFACE
See Also:
Constant Field Values

DUPLICATE_ELEMENT_NAME

public static final int DUPLICATE_ELEMENT_NAME
See Also:
Constant Field Values

MULTIPLE_XMLELEMREF

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

JAXBException

protected JAXBException(java.lang.String message)

JAXBException

protected JAXBException(java.lang.String message,
                        java.lang.Exception internalException)
Method Detail

noObjectFactoryOrJaxbIndexInPath

public static JAXBException noObjectFactoryOrJaxbIndexInPath(java.lang.String path)

factoryMethodOrConstructorRequired

public static JAXBException factoryMethodOrConstructorRequired(java.lang.String className)

factoryClassWithoutFactoryMethod

public static JAXBException factoryClassWithoutFactoryMethod(java.lang.String className)

factoryMethodNotDeclared

public static JAXBException factoryMethodNotDeclared(java.lang.String methodName,
                                                     java.lang.String className)

multipleAnyAttributeMapping

public static JAXBException multipleAnyAttributeMapping(java.lang.String className)

anyAttributeOnNonMap

public static JAXBException anyAttributeOnNonMap(java.lang.String propertyName)

invalidElementRef

public static JAXBException invalidElementRef(java.lang.String propertyName,
                                              java.lang.String className)

invalidElementWrapper

public static JAXBException invalidElementWrapper(java.lang.String propertyName)

invalidId

public static JAXBException invalidId(java.lang.String propertyName)

invalidIdRef

public static JAXBException invalidIdRef(java.lang.String propertyName,
                                         java.lang.String className)

invalidList

public static JAXBException invalidList(java.lang.String propertyName)

nameCollision

public static JAXBException nameCollision(java.lang.String uri,
                                          java.lang.String name)

unsupportedNodeClass

public static JAXBException unsupportedNodeClass(java.lang.String className)

transientInProporder

public static JAXBException transientInProporder(java.lang.String fieldName)

nonExistentPropertyInPropOrder

public static JAXBException nonExistentPropertyInPropOrder(java.lang.String fieldName)

missingPropertyInPropOrder

public static JAXBException missingPropertyInPropOrder(java.lang.String fieldName)

missingPropertyInPropOrder

public static JAXBException missingPropertyInPropOrder(java.lang.String fieldName,
                                                       java.lang.String className)

propertyOrFieldShouldBeAnAttribute

public static JAXBException propertyOrFieldShouldBeAnAttribute(java.lang.String fieldName)

propertyOrFieldCannotBeXmlValue

public static JAXBException propertyOrFieldCannotBeXmlValue(java.lang.String fieldName)

invalidTypeForXmlValueField

public static JAXBException invalidTypeForXmlValueField(java.lang.String fieldName)

incorrectKeyParameterType

public static JAXBException incorrectKeyParameterType()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the Key parameter type of the package name to metadata source map is something other than String. We require Map.

Returns:

incorrectValueParameterType

public static JAXBException incorrectValueParameterType()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the Value parameter type (of the package name to metadata source map) is something other than Source. We require Map.

Returns:

incorrectValueParameterTypeForOxmXmlKey

public static JAXBException incorrectValueParameterTypeForOxmXmlKey()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the Value parameter type associated with the 'eclipselink-oxm-xml' Key (in the properties map) is something other than Map.

Returns:

nullMetadataSource

public static JAXBException nullMetadataSource(java.lang.String key)
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the Value (in the package name to metadata source map) is null.

Parameters:
key -
Returns:

nullMetadataSource

public static JAXBException nullMetadataSource()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the handle to the OXM metadata file is null.

Returns:

packageNotSetForBindingException

public static JAXBException packageNotSetForBindingException()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the handle to the OXM metadata file has not been passes in with an associated String (for package name) and the unmarshalled XmlBindings object does not have a package-name set.

Returns:

nullMapKey

public static JAXBException nullMapKey()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where the Key (in the package name to metadata source map) is null.

Returns:

couldNotLoadClassFromMetadata

public static JAXBException couldNotLoadClassFromMetadata(java.lang.String classname)
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where a class that is declared in the metadata file cannot be loaded by the classloader.

Parameters:
classname -
Returns:

couldNotCreateContextForXmlModel

public static JAXBException couldNotCreateContextForXmlModel()
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where JAXBContext creation fails for our XmlModel.

Returns:

couldNotCreateContextForXmlModel

public static JAXBException couldNotCreateContextForXmlModel(java.lang.Exception ex)
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where JAXBContext creation fails for our XmlModel.

Parameters:
ex -
Returns:

couldNotUnmarshalMetadata

public static JAXBException couldNotUnmarshalMetadata(java.lang.Exception e)
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml). This exception applies to the case where an exception occurs while unmarshalling the eclipselink metadata file.

Parameters:
e -
Returns:

couldNotCreateCustomizerInstance

public static JAXBException couldNotCreateCustomizerInstance(java.lang.Exception e,
                                                             java.lang.String customizerClassName)
This exception should be used when a descriptor customizer instance cannot be created.

Parameters:
e -
javaClassName -
customizerClassName -
Returns:

invalidCustomizerClass

public static JAXBException invalidCustomizerClass(java.lang.Exception e,
                                                   java.lang.String customizerClassName)
This exception would typically be thrown when a customizer class is set that is not an instance of DescriptorCustomizer.

Parameters:
e -
customizerClassName -
Returns:

idAlreadySet

public static JAXBException idAlreadySet(java.lang.String propertyName,
                                         java.lang.String idPropertyName,
                                         java.lang.String className)
This exception should be used when an attempt is made to set an ID property when one has already been set.

Parameters:
propertyName - attempting to set this property as ID
idPropertyName - existing ID property
className - class in question
Returns:

xmlValueAlreadySet

public static JAXBException xmlValueAlreadySet(java.lang.String propertyName,
                                               java.lang.String xmlValuePropertyName,
                                               java.lang.String className)
This exception should be used when an attempt is made to set an XmlValue property when one has already been set.

Parameters:
propertyName - attempting to set this property as XmlValue
xmlValuePropertyName - existing XmlValue property
className - class in question
Returns:

xmlAnyElementAlreadySet

public static JAXBException xmlAnyElementAlreadySet(java.lang.String propertyName,
                                                    java.lang.String xmlAnyElementPropertyName,
                                                    java.lang.String className)
This exception should be used when an attempt is made to set an XmlAnyElement property when one has already been set.

Parameters:
propertyName - attempting to set this property as XmlAnyElement
xmlAnyElementPropertyName - existing XmlAnyElement property
className - class in question
Returns:

couldNotInitializeDomHandlerConverter

public static JAXBException couldNotInitializeDomHandlerConverter(java.lang.Exception nestedException,
                                                                  java.lang.String domHandlerClassName,
                                                                  java.lang.String propertyName)
This exception should be used when DomHandlerConverter initialization fails.

Parameters:
nestedException -
domHandlerClassName -
propertyName -
Returns:

invalidAttributeRef

public static JAXBException invalidAttributeRef(java.lang.String propertyName,
                                                java.lang.String className)
This exception should be used when an @XmlAttributeRef or xml-attribute-ref appears on a non-DataHandler property.

Parameters:
propertyName -
className -
Returns:

invalidXmlElementInXmlElementsList

public static JAXBException invalidXmlElementInXmlElementsList(java.lang.String propertyName,
                                                               java.lang.String elementName)
This exception should be used when XmlElements and XmlIDREF are set on a property, but one or more of the XmlElement entries in the list has a type that does not have an XmlID property.

Parameters:
propertyName -
elementName -
Returns:

nullTypeOnTypeMappingInfo

public static JAXBException nullTypeOnTypeMappingInfo(javax.xml.namespace.QName tagName)
This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.

Parameters:
tagName -
Returns:

javaTypeNotAllowedInBindingsFile

public static JAXBException javaTypeNotAllowedInBindingsFile(java.lang.String javaTypePackage,
                                                             java.lang.String bindingsPackage)
This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.

Parameters:
tagName -
Returns:

cannotCreateDynamicContextFromClasses

public static JAXBException cannotCreateDynamicContextFromClasses()
This exception is thrown if the user tries to create a new instance of DynamicJAXBContext using an array of actual classes.


cannotInitializeFromNode

public static JAXBException cannotInitializeFromNode()
This exception is thrown if the user tries to create a new instance of DynamicJAXBContext using an Node, that is not an instance of either Document or Element.


errorCreatingDynamicJAXBContext

public static JAXBException errorCreatingDynamicJAXBContext(java.lang.Exception nestedException)
This is a general exception, thrown if a problem was encountered during DynamicJAXBContext creation.


enumConstantNotFound

public static JAXBException enumConstantNotFound(java.lang.String name)
This exception is thrown if the user tries to get a non-existant enum constant from an enum class.


nullSessionName

public static JAXBException nullSessionName()
This exception is thrown if the user tries bootstrap from sessions.xml but provides a null sessionNames parameter.


nullSource

public static JAXBException nullSource()
This exception is thrown if the user tries bootstrap from XML Schema but provides a null Source parameter.


nullInputStream

public static JAXBException nullInputStream()
This exception is thrown if the user tries bootstrap from XML Schema but provides a null InputStream parameter.


nullNode

public static JAXBException nullNode()
This exception is thrown if the user tries bootstrap from XML Schema but provides a null Node parameter.


xjcBindingError

public static JAXBException xjcBindingError()
This exception is thrown if XJC was unable to generate a CodeModel.


classNotFoundException

public static JAXBException classNotFoundException(java.lang.String className)

readTransformerHasBothClassAndMethod

public static JAXBException readTransformerHasBothClassAndMethod(java.lang.String propertyName)
PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies both class and method.


readTransformerHasNeitherClassNorMethod

public static JAXBException readTransformerHasNeitherClassNorMethod(java.lang.String propertyName)
PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies neither class nor method.


writeTransformerHasBothClassAndMethod

public static JAXBException writeTransformerHasBothClassAndMethod(java.lang.String propertyName,
                                                                  java.lang.String xmlPath)
PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class and specified xml-path specifies both class and method.


writeTransformerHasNeitherClassNorMethod

public static JAXBException writeTransformerHasNeitherClassNorMethod(java.lang.String propertyName,
                                                                     java.lang.String xmlPath)
PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class and specified xml-path specifies neither class nor method.


writeTransformerHasNoXmlPath

public static JAXBException writeTransformerHasNoXmlPath(java.lang.String propertyName)
PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class has no xml-path specified, or the specified xml-path is invalid.


noSuchWriteTransformationMethod

public static JAXBException noSuchWriteTransformationMethod(java.lang.String methodName)
PUBLIC: Cause: Write transformation method does not exist, or has the wrong number or type of parameters.


transformerClassNotFound

public static JAXBException transformerClassNotFound(java.lang.String className)
PUBLIC: Cause: Transformer class could not be loaded.


oxmKeyNotFound

public static JAXBException oxmKeyNotFound()
PUBLIC: Cause: Properties passed to createDynamicFromOXM did not contain ECLIPSELINK_OXM_FILE_KEY, or was null.


invalidXmlJoinNodeReferencedClass

public static JAXBException invalidXmlJoinNodeReferencedClass(java.lang.String propertyName,
                                                              java.lang.String referencedClassName)
PUBLIC: Cause: The referenced class (i.e. actualType) of the Property containing the XmlJoinNodes declaration does not have an associated TypeInfo.


invalidReferenceToTransientClass

public static JAXBException invalidReferenceToTransientClass(java.lang.String className,
                                                             java.lang.String propertyName,
                                                             java.lang.String referencedClassName)
PUBLIC: Cause: The reference class (i.e. actualType) of a given Property is marked transient. I.e. List
addresses; where Address is marked transient.


noKeyOrIDPropertyOnJoinTarget

public static JAXBException noKeyOrIDPropertyOnJoinTarget(java.lang.String className,
                                                          java.lang.String propertyName,
                                                          java.lang.String referencedClassName)
PUBLIC: Cause: The target class has no ID or Key properties set.


invalidReferencedXmlPathOnJoin

public static JAXBException invalidReferencedXmlPathOnJoin(java.lang.String className,
                                                           java.lang.String propertyName,
                                                           java.lang.String referencedClassName,
                                                           java.lang.String referencedXmlPath)
PUBLIC: Cause: No ID or Key property exists on the target class with an XPath == referencedXmlPath.


invalidIDREFClass

public static JAXBException invalidIDREFClass(java.lang.String className,
                                              java.lang.String propertyName,
                                              java.lang.String referencedClassName)
PUBLIC: Cause: The referenced class (i.e. actualType) of the Property containing the XmlIDREF declaration does not have an associated TypeInfo.


adapterClassNotLoaded

public static JAXBException adapterClassNotLoaded(java.lang.String adapterClassName,
                                                  java.lang.Exception ex)
PUBLIC: Cause: The adapter class set on XMLJavaTypeConverter could not be loaded. This is most likely due to an incorrect class name or the wrong classloader being set on XMLConversionManager.


adapterClassMethodsCouldNotBeAccessed

public static JAXBException adapterClassMethodsCouldNotBeAccessed(java.lang.String adapterClassName,
                                                                  java.lang.Exception ex)
PUBLIC: Cause: An exception occurred while attempting to get the declared methods from the adapter class.


adapterClassCouldNotBeInstantiated

public static JAXBException adapterClassCouldNotBeInstantiated(java.lang.String adapterClassName,
                                                               java.lang.Exception ex)
PUBLIC: Cause: An exception occurred while attempting to get a new instance of the adapter class.


invalidAdapterClass

public static JAXBException invalidAdapterClass(java.lang.String adapterClassName)
PUBLIC: Cause: The adapter class does not extend javax.xml.bind.annotation.adapters.XmlAdapter.


invalidPackageAdapterClass

public static JAXBException invalidPackageAdapterClass(java.lang.String adapterClassName,
                                                       java.lang.String packageName)
PUBLIC: Cause: The package level adapter class set on XMLJavaTypeConverter could not be loaded. This is most likely due to an incorrect class name or the wrong classloader being set on XMLConversionManager.

Parameters:
adapterClassName - the name of the XmlAdapterClass
packageName - name of the target package

invalidTypeAdapterClass

public static JAXBException invalidTypeAdapterClass(java.lang.String adapterClassName,
                                                    java.lang.String typeName)
PUBLIC: Cause: The type level adapter class set on XMLJavaTypeConverter could not be loaded. This is most likely due to an incorrect class name or the wrong classloader being set on XMLConversionManager.

Parameters:
adapterClassName - the name of the XmlAdapterClass
typeName - name of the target type

invalidPropertyAdapterClass

public static JAXBException invalidPropertyAdapterClass(java.lang.String adapterClassName,
                                                        java.lang.String propName,
                                                        java.lang.String typeName)
PUBLIC: Cause: The field/property level adapter class set on XMLJavaTypeConverter could not be loaded. This is most likely due to an incorrect class name or the wrong classloader being set on XMLConversionManager.

Parameters:
adapterClassName - the name of the XmlAdapterClass
propName - the name of the field/property
typeName - name of the owning type

incorrectNumberOfXmlJoinNodesOnXmlElements

public static JAXBException incorrectNumberOfXmlJoinNodesOnXmlElements(java.lang.String propertyName,
                                                                       java.lang.String className)
PUBLIC: Cause: There is a different number of XmlElements and XmlJoinNodes entries in a given XmlElementsJoinNodes. There must be an equal number of each.

Parameters:
propertyName - name of the Property containing the XmlElementsJoinNodes
className - name of the owning class
Returns:

invalidXmlPathWithAttribute

public static JAXBException invalidXmlPathWithAttribute(java.lang.String propertyName,
                                                        java.lang.String className,
                                                        java.lang.String xpath)
When the target of an XmlPaths -> XmlPath is an attribute, it must be nested, and not the root of the path.

Parameters:
propertyName - name of the Property containing the XmlPaths
className - name of the owning class
xpath - the offending XmlPath
Returns:

duplicatePropertyName

public static JAXBException duplicatePropertyName(java.lang.String propertyName,
                                                  java.lang.String className)

samePropertyInMultipleFiles

public static JAXBException samePropertyInMultipleFiles(java.lang.String propertyName,
                                                        java.lang.String className)

exceptionWithNameTransformerClass

public static JAXBException exceptionWithNameTransformerClass(java.lang.String nametransformerClassName,
                                                              java.lang.Exception ex)
PUBLIC: Cause: An exception occurred while attempting to get a new instance of the transformer class.


exceptionDuringNameTransformation

public static JAXBException exceptionDuringNameTransformation(java.lang.String nameBeingTransformed,
                                                              java.lang.String nametransformerClassName,
                                                              java.lang.Exception ex)
PUBLIC: Cause: An exception occurred during transformation to an xml name


unableToLoadMetadataFromLocation

public static JAXBException unableToLoadMetadataFromLocation(java.lang.String location)

cannotRefreshMetadata

public static JAXBException cannotRefreshMetadata()

xjbNotSource

public static JAXBException xjbNotSource()

xsdImportNotSource

public static JAXBException xsdImportNotSource()

invalidXmlLocation

public static JAXBException invalidXmlLocation(java.lang.String propertyName,
                                               java.lang.String propertyType)
Cause: @XmlLocation is set on a non-Locator property.


exceptionDuringSchemaGeneration

public static JAXBException exceptionDuringSchemaGeneration(java.lang.Exception ex)
PUBLIC: Cause: An exception occurred during schema generation.


jsonValuePropertyRequired

public static JAXBException jsonValuePropertyRequired(java.lang.Object value)
PUBLIC: Cause: An exception occurred marshalling json


errorInstantiatingAccessorFactory

public static JAXBException errorInstantiatingAccessorFactory(java.lang.Object factoryClass,
                                                              java.lang.Exception nestedException)
PUBLIC: Cause: An exception occured while trying to instantiate an instance of the user specified AccessorFactory


invalidAccessorFactory

public static JAXBException invalidAccessorFactory(java.lang.Object accessorFactoryClass,
                                                   java.lang.Exception nestedException)

errorCreatingFieldAccessor

public static JAXBException errorCreatingFieldAccessor(java.lang.Object accessorFactory,
                                                       java.lang.Exception nestedException)

errorCreatingPropertyAccessor

public static JAXBException errorCreatingPropertyAccessor(java.lang.Object accessorFactory,
                                                          java.lang.Exception nestedException)

errorInvokingAccessor

public static JAXBException errorInvokingAccessor(java.lang.Object accessor,
                                                  java.lang.String method,
                                                  java.lang.Exception nestedException)

invalidEnumValue

public static JAXBException invalidEnumValue(java.lang.Object value,
                                             java.lang.String theClassName,
                                             java.lang.Exception nestedException)

invalidInterface

public static JAXBException invalidInterface(java.lang.String interfaceName)

duplicateElementName

public static JAXBException duplicateElementName(javax.xml.namespace.QName qName)

multipleXmlElementRef

public static JAXBException multipleXmlElementRef(java.lang.String propertyTypeName,
                                                  java.lang.String className)

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference