java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.JAXBException
- All Implemented Interfaces:
Serializable
Purpose:
- This class provides an implementation of EclipseLinkException specific to the EclipseLink JAXB implementation
Responsibilities:
- Return a JAXBException that can be thrown around input parameters.
- Return a JAXBException that wraps an existing exception with additional input parameters.
- Since:
- Oracle EclipseLink 1.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ModifierConstructorDescriptionprotected
JAXBException
(String message) protected
JAXBException
(String message, Exception internalException) -
Method Summary
Modifier and TypeMethodDescriptionstatic JAXBException
adapterClassCouldNotBeInstantiated
(String adapterClassName, Exception ex) PUBLIC: Cause: An exception occurred while attempting to get a new instance of the adapter class.static JAXBException
adapterClassMethodsCouldNotBeAccessed
(String adapterClassName, Exception ex) PUBLIC: Cause: An exception occurred while attempting to get the declared methods from the adapter class.static JAXBException
adapterClassNotLoaded
(String adapterClassName, Exception ex) PUBLIC: Cause: The adapter class set on XMLJavaTypeConverter could not be loaded.static JAXBException
anyAttributeOnNonMap
(String propertyName) static JAXBException
This exception is thrown if the user tries to create a new instance of DynamicJAXBContext using an array of actual classes.static JAXBException
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
static JAXBException
classNotFoundException
(String className) static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
couldNotCreateCustomizerInstance
(Exception e, String customizerClassName) This exception should be used when a descriptor customizer instance cannot be created.static JAXBException
couldNotInitializeDomHandlerConverter
(Exception nestedException, String domHandlerClassName, String propertyName) This exception should be used when DomHandlerConverter initialization fails.static JAXBException
couldNotLoadClassFromMetadata
(String classname) This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
duplicateElementName
(QName qName) static JAXBException
duplicatePropertyName
(String propertyName, String className) static JAXBException
enumConstantNotFound
(String name) This exception is thrown if the user tries to get a non-existant enum constant from an enum class.static JAXBException
errorCreatingDynamicJAXBContext
(Exception nestedException) This is a general exception, thrown if a problem was encountered during DynamicJAXBContext creation.static JAXBException
errorCreatingFieldAccessor
(Object accessorFactory, Exception nestedException) static JAXBException
errorCreatingPropertyAccessor
(Object accessorFactory, Exception nestedException) static JAXBException
errorInstantiatingAccessorFactory
(Object factoryClass, Exception nestedException) PUBLIC: Cause: An exception occured while trying to instantiate an instance of the user specified AccessorFactorystatic JAXBException
errorInvokingAccessor
(Object accessor, String method, Exception nestedException) static JAXBException
exceptionDuringNameTransformation
(String nameBeingTransformed, String nametransformerClassName, Exception ex) PUBLIC: Cause: An exception occurred during transformation to an xml namestatic JAXBException
PUBLIC: Cause: An exception occurred during schema generation.static JAXBException
exceptionWithNameTransformerClass
(String nametransformerClassName, Exception ex) PUBLIC: Cause: An exception occurred while attempting to get a new instance of the transformer class.static JAXBException
factoryClassWithoutFactoryMethod
(String className) static JAXBException
factoryMethodNotDeclared
(String methodName, String className) static JAXBException
factoryMethodOrConstructorRequired
(String className) static JAXBException
idAlreadySet
(String propertyName, String idPropertyName, 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
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
incorrectNumberOfXmlJoinNodesOnXmlElements
(String propertyName, String className) PUBLIC: Cause: There is a different number of XmlElements and XmlJoinNodes entries in a given XmlElementsJoinNodes.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
invalidAccessorFactory
(Object accessorFactoryClass, Exception nestedException) static JAXBException
invalidAdapterClass
(String adapterClassName) PUBLIC: Cause: The adapter class does not extend jakarta.xml.bind.annotation.adapters.XmlAdapter.static JAXBException
invalidAttributeRef
(String propertyName, String className) This exception should be used when an @XmlAttributeRef or xml-attribute-ref appears on a non-DataHandler property.static JAXBException
invalidCustomizerClass
(Exception e, String customizerClassName) This exception would typically be thrown when a customizer class is set that is not an instance of DescriptorCustomizer.static JAXBException
invalidElementRef
(String propertyName, String className) static JAXBException
invalidElementWrapper
(String propertyName) static JAXBException
invalidEnumValue
(Object value, String theClassName, Exception nestedException) static JAXBException
static JAXBException
invalidIdRef
(String propertyName, String className) static JAXBException
invalidIDREFClass
(String className, String propertyName, String referencedClassName) PUBLIC: Cause: The referenced class (i.e.static JAXBException
invalidInterface
(String interfaceName) static JAXBException
invalidList
(String propertyName) static JAXBException
invalidPackageAdapterClass
(String adapterClassName, String packageName) PUBLIC: Cause: The package level adapter class set on XMLJavaTypeConverter could not be loaded.static JAXBException
invalidPropertyAdapterClass
(String adapterClassName, String propName, String typeName) PUBLIC: Cause: The field/property level adapter class set on XMLJavaTypeConverter could not be loaded.static JAXBException
invalidReferencedXmlPathOnJoin
(String className, String propertyName, String referencedClassName, String referencedXmlPath) PUBLIC: Cause: No ID or Key property exists on the target class with an XPath == referencedXmlPath.static JAXBException
invalidReferenceToTransientClass
(String className, String propertyName, String referencedClassName) PUBLIC: Cause: The reference class (i.e.static JAXBException
invalidTypeAdapterClass
(String adapterClassName, String typeName) PUBLIC: Cause: The type level adapter class set on XMLJavaTypeConverter could not be loaded.static JAXBException
invalidTypeForVariableNode
(String attribute, String type, String className) static JAXBException
invalidTypeForXmlValueField
(String fieldName, String className) static JAXBException
invalidValueForObjectGraph
(Object value) static JAXBException
invalidXmlElementInXmlElementsList
(String propertyName, 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
(String propertyName, String referencedClassName) PUBLIC: Cause: The referenced class (i.e.static JAXBException
invalidXmlLocation
(String propertyName, String propertyType) Cause: @XmlLocation is set on a non-Locator property.static JAXBException
invalidXmlPathWithAttribute
(String propertyName, String className, 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
(String javaTypePackage, String bindingsPackage) This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.static JAXBException
jsonValuePropertyRequired
(Object value) PUBLIC: Cause: An exception occurred marshalling jsonstatic JAXBException
missingPropertyInPropOrder
(String fieldName) static JAXBException
missingPropertyInPropOrder
(String fieldName, String className) static JAXBException
multipleAnyAttributeMapping
(String className) static JAXBException
multipleXmlElementRef
(String propertyTypeName, String className) static JAXBException
mustMapToText
(String propName, String typeName, String refTypeName) static JAXBException
nameCollision
(String uri, String name) static JAXBException
noKeyOrIDPropertyOnJoinTarget
(String className, String propertyName, String referencedClassName) PUBLIC: Cause: The target class has no ID or Key properties set.static JAXBException
nonExistentPropertyInPropOrder
(String fieldName, String className) static JAXBException
static JAXBException
noSuchWriteTransformationMethod
(String methodName) PUBLIC: Cause: Write transformation method does not exist, or has the wrong number or type of parameters.static JAXBException
This exception is thrown if the user tries bootstrap from XML Schema but provides a null InputStream parameter.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
nullMetadataSource
(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
This exception is thrown if the user tries bootstrap from sessions.xml but provides a null sessionNames parameter.static JAXBException
This exception is thrown if the user tries bootstrap from XML Schema but provides a null Source parameter.static JAXBException
nullTypeOnTypeMappingInfo
(QName tagName) This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.static JAXBException
PUBLIC: Cause: Properties passed to createDynamicFromOXM did not contain ECLIPSELINK_OXM_FILE_KEY, or was null.static JAXBException
This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e.static JAXBException
propertyOrFieldCannotBeXmlValue
(String fieldName, String className) static JAXBException
propertyOrFieldShouldBeAnAttribute
(String fieldName, String className) static JAXBException
readTransformerHasBothClassAndMethod
(String propertyName) PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies both class and method.static JAXBException
readTransformerHasNeitherClassNorMethod
(String propertyName) PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies neither class nor method.static JAXBException
samePropertyInMultipleFiles
(String propertyName, String className) static JAXBException
transformerClassNotFound
(String className) PUBLIC: Cause: Transformer class could not be loaded.static JAXBException
transientInProporder
(String fieldName, String className) static JAXBException
unableToLoadMetadataFromLocation
(String location) static JAXBException
unknownPropertyForVariableNode
(String propertyName, String className) static JAXBException
unknownTypeForVariableNode
(String className) static JAXBException
unsupportedNodeClass
(String className) static JAXBException
writeTransformerHasBothClassAndMethod
(String propertyName, 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
(String propertyName, 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
(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
static JAXBException
This exception is thrown if XJC was unable to generate a CodeModel.static JAXBException
xmlAnyElementAlreadySet
(String propertyName, String xmlAnyElementPropertyName, 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
(String propertyName, String xmlValuePropertyName, 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
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
NO_OBJECT_FACTORY_OR_JAXB_INDEX_IN_PATH
public static final int NO_OBJECT_FACTORY_OR_JAXB_INDEX_IN_PATH- See Also:
-
FACTORY_METHOD_OR_ZERO_ARG_CONST_REQ
public static final int FACTORY_METHOD_OR_ZERO_ARG_CONST_REQ- See Also:
-
FACTORY_CLASS_WITHOUT_FACTORY_METHOD
public static final int FACTORY_CLASS_WITHOUT_FACTORY_METHOD- See Also:
-
FACTORY_METHOD_NOT_DECLARED
public static final int FACTORY_METHOD_NOT_DECLARED- See Also:
-
ANY_ATTRIBUTE_ON_NON_MAP_PROPERTY
public static final int ANY_ATTRIBUTE_ON_NON_MAP_PROPERTY- See Also:
-
MULTIPLE_ANY_ATTRIBUTE_MAPPING
public static final int MULTIPLE_ANY_ATTRIBUTE_MAPPING- See Also:
-
INVALID_XML_ELEMENT_REF
public static final int INVALID_XML_ELEMENT_REF- See Also:
-
NAME_COLLISION
public static final int NAME_COLLISION- See Also:
-
UNSUPPORTED_NODE_CLASS
public static final int UNSUPPORTED_NODE_CLASS- See Also:
-
TRANSIENT_IN_PROP_ORDER
public static final int TRANSIENT_IN_PROP_ORDER- See Also:
-
XMLVALUE_ATTRIBUTE_CONFLICT
public static final int XMLVALUE_ATTRIBUTE_CONFLICT- See Also:
-
SUBCLASS_CANNOT_HAVE_XMLVALUE
public static final int SUBCLASS_CANNOT_HAVE_XMLVALUE- See Also:
-
NON_EXISTENT_PROPERTY_IN_PROP_ORDER
public static final int NON_EXISTENT_PROPERTY_IN_PROP_ORDER- See Also:
-
MISSING_PROPERTY_IN_PROP_ORDER
public static final int MISSING_PROPERTY_IN_PROP_ORDER- See Also:
-
INVALID_TYPE_FOR_XMLVALUE_PROPERTY
public static final int INVALID_TYPE_FOR_XMLVALUE_PROPERTY- See Also:
-
INVALID_XML_ELEMENT_WRAPPER
public static final int INVALID_XML_ELEMENT_WRAPPER- See Also:
-
INVALID_ID
public static final int INVALID_ID- See Also:
-
INVALID_IDREF
public static final int INVALID_IDREF- See Also:
-
INVALID_LIST
public static final int INVALID_LIST- See Also:
-
VALUE_PARAMETER_TYPE_INCORRECT_FOR_OXM_XML
public static final int VALUE_PARAMETER_TYPE_INCORRECT_FOR_OXM_XML- See Also:
-
KEY_PARAMETER_TYPE_INCORRECT
public static final int KEY_PARAMETER_TYPE_INCORRECT- See Also:
-
VALUE_PARAMETER_TYPE_INCORRECT
public static final int VALUE_PARAMETER_TYPE_INCORRECT- See Also:
-
NULL_METADATA_SOURCE
public static final int NULL_METADATA_SOURCE- See Also:
-
NULL_MAP_KEY
public static final int NULL_MAP_KEY- See Also:
-
COULD_NOT_LOAD_CLASS_FROM_METADATA
public static final int COULD_NOT_LOAD_CLASS_FROM_METADATA- See Also:
-
COULD_NOT_CREATE_CONTEXT_FOR_XML_MODEL
public static final int COULD_NOT_CREATE_CONTEXT_FOR_XML_MODEL- See Also:
-
COULD_NOT_UNMARSHAL_METADATA
public static final int COULD_NOT_UNMARSHAL_METADATA- See Also:
-
COULD_NOT_CREATE_CUSTOMIZER_INSTANCE
public static final int COULD_NOT_CREATE_CUSTOMIZER_INSTANCE- See Also:
-
INVALID_CUSTOMIZER_CLASS
public static final int INVALID_CUSTOMIZER_CLASS- See Also:
-
ID_ALREADY_SET
public static final int ID_ALREADY_SET- See Also:
-
XMLVALUE_ALREADY_SET
public static final int XMLVALUE_ALREADY_SET- See Also:
-
XMLANYELEMENT_ALREADY_SET
public static final int XMLANYELEMENT_ALREADY_SET- See Also:
-
COULD_NOT_INITIALIZE_DOM_HANDLER_CONVERTER
public static final int COULD_NOT_INITIALIZE_DOM_HANDLER_CONVERTER- See Also:
-
INVALID_TYPE_FOR_XMLATTRIBUTEREF_PROPERTY
public static final int INVALID_TYPE_FOR_XMLATTRIBUTEREF_PROPERTY- See Also:
-
INVALID_XMLELEMENT_IN_XMLELEMENTS
public static final int INVALID_XMLELEMENT_IN_XMLELEMENTS- See Also:
-
NULL_TYPE_ON_TYPEMAPPINGINFO
public static final int NULL_TYPE_ON_TYPEMAPPINGINFO- See Also:
-
JAVATYPE_NOT_ALLOWED_IN_BINDINGS_FILE
public static final int JAVATYPE_NOT_ALLOWED_IN_BINDINGS_FILE- See Also:
-
CANNOT_CREATE_DYNAMIC_CONTEXT_FROM_CLASSES
public static final int CANNOT_CREATE_DYNAMIC_CONTEXT_FROM_CLASSES- See Also:
-
CANNOT_INITIALIZE_FROM_NODE
public static final int CANNOT_INITIALIZE_FROM_NODE- See Also:
-
ERROR_CREATING_DYNAMICJAXBCONTEXT
public static final int ERROR_CREATING_DYNAMICJAXBCONTEXT- See Also:
-
ENUM_CONSTANT_NOT_FOUND
public static final int ENUM_CONSTANT_NOT_FOUND- See Also:
-
NULL_SESSION_NAME
public static final int NULL_SESSION_NAME- See Also:
-
NULL_SOURCE
public static final int NULL_SOURCE- See Also:
-
NULL_INPUT_STREAM
public static final int NULL_INPUT_STREAM- See Also:
-
NULL_NODE
public static final int NULL_NODE- See Also:
-
XJC_BINDING_ERROR
public static final int XJC_BINDING_ERROR- See Also:
-
CLASS_NOT_FOUND_EXCEPTION
public static final int CLASS_NOT_FOUND_EXCEPTION- See Also:
-
READ_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD
public static final int READ_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD- See Also:
-
READ_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD
public static final int READ_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD- See Also:
-
WRITE_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD
public static final int WRITE_TRANSFORMER_HAS_BOTH_CLASS_AND_METHOD- See Also:
-
WRITE_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD
public static final int WRITE_TRANSFORMER_HAS_NEITHER_CLASS_NOR_METHOD- See Also:
-
WRITE_TRANSFORMER_HAS_NO_XMLPATH
public static final int WRITE_TRANSFORMER_HAS_NO_XMLPATH- See Also:
-
NO_SUCH_WRITE_TRANSFORMATION_METHOD
public static final int NO_SUCH_WRITE_TRANSFORMATION_METHOD- See Also:
-
TRANSFORMER_CLASS_NOT_FOUND
public static final int TRANSFORMER_CLASS_NOT_FOUND- See Also:
-
OXM_KEY_NOT_FOUND
public static final int OXM_KEY_NOT_FOUND- See Also:
-
INVALID_REF_CLASS
public static final int INVALID_REF_CLASS- See Also:
-
TRANSIENT_REF_CLASS
public static final int TRANSIENT_REF_CLASS- See Also:
-
NO_ID_OR_KEY_ON_JOIN_TARGET
public static final int NO_ID_OR_KEY_ON_JOIN_TARGET- See Also:
-
INVALID_REF_XML_PATH
public static final int INVALID_REF_XML_PATH- See Also:
-
INVALID_IDREF_CLASS
public static final int INVALID_IDREF_CLASS- See Also:
-
ADAPTER_CLASS_NOT_LOADED
public static final int ADAPTER_CLASS_NOT_LOADED- See Also:
-
ADAPTER_CLASS_METHOD_EXCEPTION
public static final int ADAPTER_CLASS_METHOD_EXCEPTION- See Also:
-
ADAPTER_CLASS_COULD_NOT_BE_INSTANTIATED
public static final int ADAPTER_CLASS_COULD_NOT_BE_INSTANTIATED- See Also:
-
INVALID_ADAPTER_CLASS
public static final int INVALID_ADAPTER_CLASS- See Also:
-
INVALID_PACKAGE_ADAPTER_CLASS
public static final int INVALID_PACKAGE_ADAPTER_CLASS- See Also:
-
INVALID_TYPE_ADAPTER_CLASS
public static final int INVALID_TYPE_ADAPTER_CLASS- See Also:
-
INVALID_PROPERTY_ADAPTER_CLASS
public static final int INVALID_PROPERTY_ADAPTER_CLASS- See Also:
-
NULL_METADATA_FILE
public static final int NULL_METADATA_FILE- See Also:
-
BINDINGS_PKG_NOT_SET
public static final int BINDINGS_PKG_NOT_SET- See Also:
-
INCORRECT_NUMBER_OF_XMLJOINNODES_ON_XMLELEMENTS
public static final int INCORRECT_NUMBER_OF_XMLJOINNODES_ON_XMLELEMENTS- See Also:
-
INVALID_XML_PATH_ATTRIBUTE
public static final int INVALID_XML_PATH_ATTRIBUTE- See Also:
-
DUPLICATE_PROPERTY_NAME
public static final int DUPLICATE_PROPERTY_NAME- See Also:
-
SAME_PROPERTY_IN_MULTIPLE_BINDINGS_FILES
public static final int SAME_PROPERTY_IN_MULTIPLE_BINDINGS_FILES- See Also:
-
EXCEPTION_WITH_NAME_TRANSFORMER_CLASS
public static final int EXCEPTION_WITH_NAME_TRANSFORMER_CLASS- See Also:
-
EXCEPTION_DURING_NAME_TRANSFORMATION
public static final int EXCEPTION_DURING_NAME_TRANSFORMATION- See Also:
-
UNABLE_TO_LOAD_METADATA_FROM_LOCATION
public static final int UNABLE_TO_LOAD_METADATA_FROM_LOCATION- See Also:
-
CANNOT_REFRESH_METADATA
public static final int CANNOT_REFRESH_METADATA- See Also:
-
XJB_NOT_SOURCE
public static final int XJB_NOT_SOURCE- See Also:
-
XSD_IMPORT_NOT_SOURCE
public static final int XSD_IMPORT_NOT_SOURCE- See Also:
-
INVALID_XMLLOCATION
public static final int INVALID_XMLLOCATION- See Also:
-
EXCEPTION_DURING_SCHEMA_GEN
public static final int EXCEPTION_DURING_SCHEMA_GEN- See Also:
-
JSON_VALUE_WRAPPER_REQUIRED
public static final int JSON_VALUE_WRAPPER_REQUIRED- See Also:
-
ERROR_INSTANTIATING_ACCESSOR_FACTORY
public static final int ERROR_INSTANTIATING_ACCESSOR_FACTORY- See Also:
-
INVALID_ACCESSOR_FACTORY
public static final int INVALID_ACCESSOR_FACTORY- See Also:
-
ERROR_CREATING_FIELD_ACCESSOR
public static final int ERROR_CREATING_FIELD_ACCESSOR- See Also:
-
ERROR_CREATING_PROPERTY_ACCESSOR
public static final int ERROR_CREATING_PROPERTY_ACCESSOR- See Also:
-
ERROR_INVOKING_ACCESSOR
public static final int ERROR_INVOKING_ACCESSOR- See Also:
-
INVALID_ENUM_VALUE
public static final int INVALID_ENUM_VALUE- See Also:
-
INVALID_INTERFACE
public static final int INVALID_INTERFACE- See Also:
-
INVALID_VALUE_FOR_OBJECT_GRAPH
public static final int INVALID_VALUE_FOR_OBJECT_GRAPH- See Also:
-
DUPLICATE_ELEMENT_NAME
public static final int DUPLICATE_ELEMENT_NAME- See Also:
-
MULTIPLE_XMLELEMREF
public static final int MULTIPLE_XMLELEMREF- See Also:
-
UNKNOWN_TYPE_FOR_VARIABLE_MAPPING
public static final int UNKNOWN_TYPE_FOR_VARIABLE_MAPPING- See Also:
-
UNKNOWN_PROPERTY_FOR_VARIABLE_MAPPING
public static final int UNKNOWN_PROPERTY_FOR_VARIABLE_MAPPING- See Also:
-
INVALID_TYPE_FOR_VARIABLE_MAPPING
public static final int INVALID_TYPE_FOR_VARIABLE_MAPPING- See Also:
-
MUST_MAP_TO_TEXT
public static final int MUST_MAP_TO_TEXT- See Also:
-
-
Constructor Details
-
JAXBException
-
JAXBException
-
-
Method Details
-
noObjectFactoryOrJaxbIndexInPath
-
factoryMethodOrConstructorRequired
-
factoryClassWithoutFactoryMethod
-
factoryMethodNotDeclared
-
multipleAnyAttributeMapping
-
anyAttributeOnNonMap
-
invalidElementRef
-
invalidElementWrapper
-
invalidId
-
invalidIdRef
-
invalidList
-
nameCollision
-
unsupportedNodeClass
-
transientInProporder
-
nonExistentPropertyInPropOrder
-
missingPropertyInPropOrder
-
missingPropertyInPropOrder
-
propertyOrFieldShouldBeAnAttribute
-
propertyOrFieldCannotBeXmlValue
-
invalidTypeForXmlValueField
-
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<String, Source>. -
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<String, Source>. -
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<String, Source>. -
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 Value (in the package name to metadata source map) is null. -
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. -
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. -
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. -
couldNotLoadClassFromMetadata
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. -
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. -
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. -
couldNotUnmarshalMetadata
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. -
couldNotCreateCustomizerInstance
public static JAXBException couldNotCreateCustomizerInstance(Exception e, String customizerClassName) This exception should be used when a descriptor customizer instance cannot be created. -
invalidCustomizerClass
This exception would typically be thrown when a customizer class is set that is not an instance of DescriptorCustomizer. -
idAlreadySet
public static JAXBException idAlreadySet(String propertyName, String idPropertyName, 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 IDidPropertyName
- existing ID propertyclassName
- class in question
-
xmlValueAlreadySet
public static JAXBException xmlValueAlreadySet(String propertyName, String xmlValuePropertyName, 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 XmlValuexmlValuePropertyName
- existing XmlValue propertyclassName
- class in question
-
xmlAnyElementAlreadySet
public static JAXBException xmlAnyElementAlreadySet(String propertyName, String xmlAnyElementPropertyName, 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 XmlAnyElementxmlAnyElementPropertyName
- existing XmlAnyElement propertyclassName
- class in question
-
couldNotInitializeDomHandlerConverter
public static JAXBException couldNotInitializeDomHandlerConverter(Exception nestedException, String domHandlerClassName, String propertyName) This exception should be used when DomHandlerConverter initialization fails. -
invalidAttributeRef
This exception should be used when an @XmlAttributeRef or xml-attribute-ref appears on a non-DataHandler property. -
invalidXmlElementInXmlElementsList
public static JAXBException invalidXmlElementInXmlElementsList(String propertyName, 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. -
nullTypeOnTypeMappingInfo
This exception should be used when a TypeMappingInfo is specified but the Type is not set on it. -
javaTypeNotAllowedInBindingsFile
public static JAXBException javaTypeNotAllowedInBindingsFile(String javaTypePackage, String bindingsPackage) This exception should be used when a TypeMappingInfo is specified but the Type is not set on it. -
cannotCreateDynamicContextFromClasses
This exception is thrown if the user tries to create a new instance of DynamicJAXBContext using an array of actual classes. -
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
This is a general exception, thrown if a problem was encountered during DynamicJAXBContext creation. -
enumConstantNotFound
This exception is thrown if the user tries to get a non-existant enum constant from an enum class. -
nullSessionName
This exception is thrown if the user tries bootstrap from sessions.xml but provides a null sessionNames parameter. -
nullSource
This exception is thrown if the user tries bootstrap from XML Schema but provides a null Source parameter. -
nullInputStream
This exception is thrown if the user tries bootstrap from XML Schema but provides a null InputStream parameter. -
nullNode
This exception is thrown if the user tries bootstrap from XML Schema but provides a null Node parameter. -
xjcBindingError
This exception is thrown if XJC was unable to generate a CodeModel. -
classNotFoundException
-
readTransformerHasBothClassAndMethod
PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies both class and method. -
readTransformerHasNeitherClassNorMethod
PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies neither class nor method. -
writeTransformerHasBothClassAndMethod
public static JAXBException writeTransformerHasBothClassAndMethod(String propertyName, 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(String propertyName, String xmlPath) PUBLIC: Cause: WriteTransformer for the specified attribute of the specified class and specified xml-path specifies neither class nor method. -
writeTransformerHasNoXmlPath
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: Cause: Write transformation method does not exist, or has the wrong number or type of parameters. -
transformerClassNotFound
PUBLIC: Cause: Transformer class could not be loaded. -
oxmKeyNotFound
PUBLIC: Cause: Properties passed to createDynamicFromOXM did not contain ECLIPSELINK_OXM_FILE_KEY, or was null. -
invalidXmlJoinNodeReferencedClass
public static JAXBException invalidXmlJoinNodeReferencedClass(String propertyName, 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(String className, String propertyName, String referencedClassName) PUBLIC: Cause: The reference class (i.e. actualType) of a given Property is marked transient. I.e. List<Address> addresses; where Address is marked transient. -
noKeyOrIDPropertyOnJoinTarget
public static JAXBException noKeyOrIDPropertyOnJoinTarget(String className, String propertyName, String referencedClassName) PUBLIC: Cause: The target class has no ID or Key properties set. -
invalidReferencedXmlPathOnJoin
public static JAXBException invalidReferencedXmlPathOnJoin(String className, String propertyName, String referencedClassName, String referencedXmlPath) PUBLIC: Cause: No ID or Key property exists on the target class with an XPath == referencedXmlPath. -
invalidIDREFClass
public static JAXBException invalidIDREFClass(String className, String propertyName, 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: 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(String adapterClassName, Exception ex) PUBLIC: Cause: An exception occurred while attempting to get the declared methods from the adapter class. -
adapterClassCouldNotBeInstantiated
public static JAXBException adapterClassCouldNotBeInstantiated(String adapterClassName, Exception ex) PUBLIC: Cause: An exception occurred while attempting to get a new instance of the adapter class. -
invalidAdapterClass
PUBLIC: Cause: The adapter class does not extend jakarta.xml.bind.annotation.adapters.XmlAdapter. -
invalidPackageAdapterClass
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 XmlAdapterClasspackageName
- name of the target package
-
invalidTypeAdapterClass
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 XmlAdapterClasstypeName
- name of the target type
-
invalidPropertyAdapterClass
public static JAXBException invalidPropertyAdapterClass(String adapterClassName, String propName, 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 XmlAdapterClasspropName
- the name of the field/propertytypeName
- name of the owning type
-
incorrectNumberOfXmlJoinNodesOnXmlElements
public static JAXBException incorrectNumberOfXmlJoinNodesOnXmlElements(String propertyName, 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 XmlElementsJoinNodesclassName
- name of the owning class
-
invalidXmlPathWithAttribute
public static JAXBException invalidXmlPathWithAttribute(String propertyName, String className, 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 XmlPathsclassName
- name of the owning classxpath
- the offending XmlPath
-
duplicatePropertyName
-
samePropertyInMultipleFiles
-
exceptionWithNameTransformerClass
public static JAXBException exceptionWithNameTransformerClass(String nametransformerClassName, Exception ex) PUBLIC: Cause: An exception occurred while attempting to get a new instance of the transformer class. -
exceptionDuringNameTransformation
public static JAXBException exceptionDuringNameTransformation(String nameBeingTransformed, String nametransformerClassName, Exception ex) PUBLIC: Cause: An exception occurred during transformation to an xml name -
unableToLoadMetadataFromLocation
-
cannotRefreshMetadata
-
xjbNotSource
-
xsdImportNotSource
-
invalidXmlLocation
Cause: @XmlLocation is set on a non-Locator property. -
exceptionDuringSchemaGeneration
PUBLIC: Cause: An exception occurred during schema generation. -
jsonValuePropertyRequired
PUBLIC: Cause: An exception occurred marshalling json -
errorInstantiatingAccessorFactory
public static JAXBException errorInstantiatingAccessorFactory(Object factoryClass, Exception nestedException) PUBLIC: Cause: An exception occured while trying to instantiate an instance of the user specified AccessorFactory -
invalidAccessorFactory
public static JAXBException invalidAccessorFactory(Object accessorFactoryClass, Exception nestedException) -
errorCreatingFieldAccessor
public static JAXBException errorCreatingFieldAccessor(Object accessorFactory, Exception nestedException) -
errorCreatingPropertyAccessor
public static JAXBException errorCreatingPropertyAccessor(Object accessorFactory, Exception nestedException) -
errorInvokingAccessor
public static JAXBException errorInvokingAccessor(Object accessor, String method, Exception nestedException) -
invalidEnumValue
public static JAXBException invalidEnumValue(Object value, String theClassName, Exception nestedException) -
invalidInterface
-
invalidValueForObjectGraph
-
duplicateElementName
-
multipleXmlElementRef
-
unknownTypeForVariableNode
-
unknownPropertyForVariableNode
-
invalidTypeForVariableNode
public static JAXBException invalidTypeForVariableNode(String attribute, String type, String className) -
mustMapToText
-