Top Description Fields Constructors Methods
org.eclipse.persistence.exceptions

public Class JAXBException

extends EclipseLinkException
Class Inheritance
Imports
javax.xml.namespace.QName, org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator

Purpose:

Responsibilities:

Since
Oracle EclipseLink 1.0

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
CRerrorCodehasBeenLoggedindentationStringinternalExceptionsessionshouldPrintInternalException

Constructor Summary

AccessConstructor and Description
protected
protected
JAXBException(String message, Exception internalException)

Method Summary

Modifier and TypeMethod and Description
public static JAXBException
adapterClassCouldNotBeInstantiated(String adapterClassName, Exception ex)

PUBLIC: Cause: An exception occurred while attempting to get a new instance of the adapter class.

public static JAXBException
adapterClassMethodsCouldNotBeAccessed(String adapterClassName, Exception ex)

PUBLIC: Cause: An exception occurred while attempting to get the declared methods from the adapter class.

public static JAXBException
adapterClassNotLoaded(String adapterClassName, Exception ex)

PUBLIC: Cause: The adapter class set on XMLJavaTypeConverter could not be loaded.

public static JAXBException
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.

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.

public static JAXBException
public static JAXBException
public static JAXBException
couldNotCreateContextForXmlModel()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
couldNotCreateContextForXmlModel(Exception ex)

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
couldNotCreateCustomizerInstance(Exception e, String customizerClassName)

This exception should be used when a descriptor customizer instance cannot be created.

public static JAXBException
couldNotInitializeDomHandlerConverter(Exception nestedException, String domHandlerClassName, String propertyName)

This exception should be used when DomHandlerConverter initialization fails.

public static JAXBException
couldNotLoadClassFromMetadata(String classname)

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
couldNotUnmarshalMetadata(Exception e)

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
public static JAXBException
duplicatePropertyName(String propertyName, String className)

public static JAXBException
enumConstantNotFound(String name)

This exception is thrown if the user tries to get a non-existant enum constant from an enum class.

public static JAXBException
errorCreatingDynamicJAXBContext(Exception nestedException)

This is a general exception, thrown if a problem was encountered during DynamicJAXBContext creation.

public static JAXBException
errorCreatingFieldAccessor(Object accessorFactory, Exception nestedException)

public static JAXBException
errorCreatingPropertyAccessor(Object accessorFactory, Exception nestedException)

public static JAXBException
errorInstantiatingAccessorFactory(Object factoryClass, Exception nestedException)

PUBLIC: Cause: An exception occured while trying to instantiate an instance of the user specified AccessorFactory

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

public static JAXBException
exceptionDuringNameTransformation(String nameBeingTransformed, String nametransformerClassName, Exception ex)

PUBLIC: Cause: An exception occurred during transformation to an xml name

public static JAXBException
exceptionDuringSchemaGeneration(Exception ex)

PUBLIC: Cause: An exception occurred during schema generation.

public static JAXBException
exceptionWithNameTransformerClass(String nametransformerClassName, Exception ex)

PUBLIC: Cause: An exception occurred while attempting to get a new instance of the transformer class.

public static JAXBException
public static JAXBException
factoryMethodNotDeclared(String methodName, String className)

public static JAXBException
public static JAXBException
idAlreadySet(String
attempting to set this property as ID
propertyName
,
String
existing ID property
idPropertyName
,
String
class in question
className
)

This exception should be used when an attempt is made to set an ID property when one has already been set.

public static JAXBException
incorrectKeyParameterType()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
incorrectNumberOfXmlJoinNodesOnXmlElements(String
name of the Property containing the XmlElementsJoinNodes
propertyName
,
String
name of the owning class
className
)

PUBLIC: Cause: There is a different number of XmlElements and XmlJoinNodes entries in a given XmlElementsJoinNodes.

public static JAXBException
incorrectValueParameterType()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
incorrectValueParameterTypeForOxmXmlKey()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
invalidAccessorFactory(Object accessorFactoryClass, Exception nestedException)

public static JAXBException
invalidAdapterClass(String adapterClassName)

PUBLIC: Cause: The adapter class does not extend jakarta.xml.bind.annotation.adapters.XmlAdapter.

public 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.

public 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.

public static JAXBException
invalidElementRef(String propertyName, String className)

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

public static JAXBException
invalidId(String propertyName)

public static JAXBException
invalidIdRef(String propertyName, String className)

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.

public static JAXBException
invalidInterface(String interfaceName)

public static JAXBException
invalidList(String propertyName)

public static JAXBException
invalidPackageAdapterClass(String
the name of the XmlAdapterClass
adapterClassName
,
String
name of the target package
packageName
)

PUBLIC: Cause: The package level adapter class set on XMLJavaTypeConverter could not be loaded.

public static JAXBException
invalidPropertyAdapterClass(String
the name of the XmlAdapterClass
adapterClassName
,
String
the name of the field/property
propName
,
String
name of the owning type
typeName
)

PUBLIC: Cause: The field/property level adapter class set on XMLJavaTypeConverter could not be loaded.

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.

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.

public static JAXBException
invalidTypeAdapterClass(String
the name of the XmlAdapterClass
adapterClassName
,
String
name of the target type
typeName
)

PUBLIC: Cause: The type level adapter class set on XMLJavaTypeConverter could not be loaded.

public static JAXBException
invalidTypeForVariableNode(String attribute, String type, String className)

public static JAXBException
public static JAXBException
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.

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.

public static JAXBException
invalidXmlLocation(String propertyName, String propertyType)

Cause: @XmlLocation is set on a non-Locator property.

public static JAXBException
invalidXmlPathWithAttribute(String
name of the Property containing the XmlPaths
propertyName
,
String
name of the owning class
className
,
String
the offending XmlPath
xpath
)

When the target of an XmlPaths -> XmlPath is an attribute, it must be nested, and not the root of the path.

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.

public static JAXBException
jsonValuePropertyRequired(Object value)

PUBLIC: Cause: An exception occurred marshalling json

public static JAXBException
public static JAXBException
public static JAXBException
public static JAXBException
multipleXmlElementRef(String propertyTypeName, String className)

public static JAXBException
mustMapToText(String propName, String typeName, String refTypeName)

public static JAXBException
public static JAXBException
noKeyOrIDPropertyOnJoinTarget(String className, String propertyName, String referencedClassName)

PUBLIC: Cause: The target class has no ID or Key properties set.

public static JAXBException
public static JAXBException
public static JAXBException
noSuchWriteTransformationMethod(String methodName)

PUBLIC: Cause: Write transformation method does not exist, or has the wrong number or type of parameters.

public static JAXBException
nullInputStream()

This exception is thrown if the user tries bootstrap from XML Schema but provides a null InputStream parameter.

public static JAXBException
nullMapKey()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
nullMetadataSource(String key)

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
nullMetadataSource()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
nullNode()

This exception is thrown if the user tries bootstrap from XML Schema but provides a null Node parameter.

public static JAXBException
nullSessionName()

This exception is thrown if the user tries bootstrap from sessions.xml but provides a null sessionNames parameter.

public static JAXBException
nullSource()

This exception is thrown if the user tries bootstrap from XML Schema but provides a null Source parameter.

public static JAXBException
nullTypeOnTypeMappingInfo(QName tagName)

This exception should be used when a TypeMappingInfo is specified but the Type is not set on it.

public static JAXBException
oxmKeyNotFound()

PUBLIC: Cause: Properties passed to createDynamicFromOXM did not contain ECLIPSELINK_OXM_FILE_KEY, or was null.

public static JAXBException
packageNotSetForBindingException()

This exception would typically be used by JAXBContextFactory during externalized metadata processing (i.e. eclipselink-oxm.xml).

public static JAXBException
public static JAXBException
public static JAXBException
readTransformerHasBothClassAndMethod(String propertyName)

PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies both class and method.

public static JAXBException
readTransformerHasNeitherClassNorMethod(String propertyName)

PUBLIC: Cause: ReadTransformer for the specified attribute of the specified class specifies neither class nor method.

public static JAXBException
samePropertyInMultipleFiles(String propertyName, String className)

public static JAXBException
transformerClassNotFound(String className)

PUBLIC: Cause: Transformer class could not be loaded.

public static JAXBException
transientInProporder(String fieldName, String className)

public static JAXBException
public static JAXBException
unknownPropertyForVariableNode(String propertyName, String className)

public static JAXBException
public static JAXBException
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.

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.

public 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.

public static JAXBException
public static JAXBException
xjcBindingError()

This exception is thrown if XJC was unable to generate a CodeModel.

public static JAXBException
xmlAnyElementAlreadySet(String
attempting to set this property as XmlAnyElement
propertyName
,
String
existing XmlAnyElement property
xmlAnyElementPropertyName
,
String
class in question
className
)

This exception should be used when an attempt is made to set an XmlAnyElement property when one has already been set.

public static JAXBException
xmlValueAlreadySet(String
attempting to set this property as XmlValue
propertyName
,
String
existing XmlValue property
xmlValuePropertyName
,
String
class in question
className
)

This exception should be used when an attempt is made to set an XmlValue property when one has already been set.

public static JAXBException
Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
crgetErrorCodegetIndentationStringgetInternalExceptiongetMessagegetSessiongetUnformattedMessagehasBeenLoggedprintStackTraceprintStackTraceprintStackTracesetErrorCodesetHasBeenLoggedsetIndentationStringsetInternalExceptionsetSessionsetShouldPrintInternalExceptionshouldPrintInternalExceptiontoString