Class EntityManagerSetupException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.EntityManagerSetupException
- All Implemented Interfaces:
Serializable
- 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
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ModifierConstructorDescriptionINTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.protected
EntityManagerSetupException
(String message) INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.protected
EntityManagerSetupException
(String message, Throwable internalException) INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityManagerSetupException
attemptedRedeployWithoutClose
(String sessionName) static EntityManagerSetupException
cannotAccessMethodOnObject
(Method aMethod, Object anObject) static EntityManagerSetupException
cannotDeployWithoutPredeploy
(String persistenceUnitName, String state, Exception exception) static EntityManagerSetupException
cannotPredeploy
(String persistenceUnitName, String state, Exception exception) static EntityManagerSetupException
classNotFoundForProperty
(String className, String propertyName, Exception exception) static EntityManagerSetupException
classNotFoundWhileProcessingAnnotations
(String className, Exception exception) static EntityManagerSetupException
compositeIncompatibleWithSessionsXml
(String persistenceUnitName) INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.static EntityManagerSetupException
compositeMemberCannotBeUsedStandalone
(String persistenceUnitName) INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.static EntityManagerSetupException
couldNotFindPersistenceUnitBundle
(String persistenceUnitName) INTERNAL: An OSGi application is trying to instantiate a persistence unit for which a bundle does not existstatic EntityManagerSetupException
INTERNAL: Our OSGI persistence provider does not support a JavaEE-type deploymentstatic EntityManagerSetupException
deployFailed
(String persistenceUnitName, Throwable exception) static EntityManagerSetupException
static EntityManagerSetupException
exceptionInSetupOfEM
(Exception exception) static EntityManagerSetupException
failedToInstantiateLogger
(String loggerClassName, String propertyName, Exception exception) static EntityManagerSetupException
failedToInstantiateProperty
(String className, String property, Exception exception) static EntityManagerSetupException
failedToInstantiateServerPlatform
(String serverPlatformClass, String serverPlatformString, Exception exception) static EntityManagerSetupException
failedToInstantiateTemporaryClassLoader
(Exception exception) INTERNAL: Reflective call with doPrivileged to create temporary classloader instance failed.static EntityManagerSetupException
failedWhileProcessingProperty
(String propertyName, String propertyValue, Exception exception) static EntityManagerSetupException
jtaPersistenceUnitInfoMissingJtaDataSource
(String persistenceUnitInfoName) static EntityManagerSetupException
methodInvocationFailed
(Method aMethod, Object anObject, Exception ex) static EntityManagerSetupException
missingProperty
(String property) static EntityManagerSetupException
missingServerPlatformException
(String sessionName, String xmlFileName) static EntityManagerSetupException
INTERNAL: The implementation of getNewTempClassLoader is returning null instead of a temporary ClassLoader instance.static EntityManagerSetupException
predeployFailed
(String persistenceUnitName, Throwable exception) static EntityManagerSetupException
puNotExist
(String puName) static EntityManagerSetupException
sessionLoadedFromSessionsXMLMustBeServerSession
(String sessionName, String sessionsXML, Object session) static EntityManagerSetupException
sessionNameNeedBeSpecified
(String PUName, String sessionsXML) static EntityManagerSetupException
sessionRemovedDuringDeployment
(String sessionName) static EntityManagerSetupException
sessionXMLValidationException
(String sessionName, String xmlFileName, ValidationException exception) static EntityManagerSetupException
wrongPropertyValueType
(String value, String expectedType, String propertyName) static EntityManagerSetupException
wrongSessionTypeException
(String sessionName, String xmlFileName, Exception exception) static EntityManagerSetupException
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
-
SESSIONS_XML_VALIDATION_EXCEPTION
public static final int SESSIONS_XML_VALIDATION_EXCEPTION- See Also:
-
WRONG_SESSION_TYPE_EXCEPTION
public static final int WRONG_SESSION_TYPE_EXCEPTION- See Also:
-
MISSING_SERVER_PLATFORM_EXCEPTION
public static final int MISSING_SERVER_PLATFORM_EXCEPTION- See Also:
-
ERROR_IN_SETUP_OF_EM
public static final int ERROR_IN_SETUP_OF_EM- See Also:
-
EXCEPTION_IN_SETUP_OF_EM
public static final int EXCEPTION_IN_SETUP_OF_EM- See Also:
-
CLASS_NOT_FOUND_FOR_PROPERTY
public static final int CLASS_NOT_FOUND_FOR_PROPERTY- See Also:
-
FAILED_TO_INSTANTIATE_SERVER_PLATFORM
public static final int FAILED_TO_INSTANTIATE_SERVER_PLATFORM- See Also:
-
CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS
public static final int CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS- See Also:
-
ATTEMPTED_REDEPLOY_WITHOUT_CLOSE
public static final int ATTEMPTED_REDEPLOY_WITHOUT_CLOSE- See Also:
-
JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE
public static final int JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE- See Also:
-
SESSION_REMOVED_DURING_DEPLOYMENT
public static final int SESSION_REMOVED_DURING_DEPLOYMENT- See Also:
-
WRONG_PROPERTY_VALUE_TYPE
public static final int WRONG_PROPERTY_VALUE_TYPE- See Also:
-
CANNOT_DEPLOY_WITHOUT_PREDEPLOY
public static final int CANNOT_DEPLOY_WITHOUT_PREDEPLOY- See Also:
-
FAILED_WHILE_PROCESSING_PROPERTY
public static final int FAILED_WHILE_PROCESSING_PROPERTY- See Also:
-
FAILED_TO_INSTANTIATE_LOGGER
public static final int FAILED_TO_INSTANTIATE_LOGGER- See Also:
-
PU_NOT_EXIST
public static final int PU_NOT_EXIST- See Also:
-
CANNOT_PREDEPLOY
public static final int CANNOT_PREDEPLOY- See Also:
-
PREDEPLOY_FAILED
public static final int PREDEPLOY_FAILED- See Also:
-
DEPLOY_FAILED
public static final int DEPLOY_FAILED- See Also:
-
SESSION_LOADED_FROM_SESSIONSXML_MUST_BE_SERVER_SESSION
public static final int SESSION_LOADED_FROM_SESSIONSXML_MUST_BE_SERVER_SESSION- See Also:
-
ATTEMPTED_LOAD_SESSION_WITHOUT_NAME_PROVIDED
public static final int ATTEMPTED_LOAD_SESSION_WITHOUT_NAME_PROVIDED- See Also:
-
WRONG_WEAVING_PROPERTY_VALUE
public static final int WRONG_WEAVING_PROPERTY_VALUE- See Also:
-
METHOD_INVOCATION_FAILED
public static final int METHOD_INVOCATION_FAILED- See Also:
-
CANNOT_ACCESS_METHOD_ON_OBJECT
public static final int CANNOT_ACCESS_METHOD_ON_OBJECT- See Also:
-
NO_TEMPORARY_CLASSLOADER_AVAILABLE
public static final int NO_TEMPORARY_CLASSLOADER_AVAILABLE- See Also:
-
CREATE_CONTAINER_EMF_NOT_SUPPORTED_IN_OSGI
public static final int CREATE_CONTAINER_EMF_NOT_SUPPORTED_IN_OSGI- See Also:
-
COULD_NOT_FIND_PERSISTENCE_UNIT_BUNDLE
public static final int COULD_NOT_FIND_PERSISTENCE_UNIT_BUNDLE- See Also:
-
FAILED_TO_INSTANTIATE_PROPERTY
public static final int FAILED_TO_INSTANTIATE_PROPERTY- See Also:
-
COMPOSITE_INCOMPATIBLE_WITH_SESSIONS_XML
public static final int COMPOSITE_INCOMPATIBLE_WITH_SESSIONS_XML- See Also:
-
COMPOSITE_MEMBER_CANNOT_BE_USED_STANDALONE
public static final int COMPOSITE_MEMBER_CANNOT_BE_USED_STANDALONE- See Also:
-
MISSING_PROPERTY
public static final int MISSING_PROPERTY- See Also:
-
FAILED_TO_INSTANTIATE_TEMP_CLASSLOADER
public static final int FAILED_TO_INSTANTIATE_TEMP_CLASSLOADER- See Also:
-
-
Constructor Details
-
EntityManagerSetupException
public EntityManagerSetupException()INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink. -
EntityManagerSetupException
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink. -
EntityManagerSetupException
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
-
Method Details
-
attemptedRedeployWithoutClose
-
missingServerPlatformException
public static EntityManagerSetupException missingServerPlatformException(String sessionName, String xmlFileName) -
sessionRemovedDuringDeployment
-
sessionXMLValidationException
public static EntityManagerSetupException sessionXMLValidationException(String sessionName, String xmlFileName, ValidationException exception) -
wrongSessionTypeException
public static EntityManagerSetupException wrongSessionTypeException(String sessionName, String xmlFileName, Exception exception) -
errorInSetupOfEM
-
exceptionInSetupOfEM
-
classNotFoundForProperty
public static EntityManagerSetupException classNotFoundForProperty(String className, String propertyName, Exception exception) -
failedToInstantiateServerPlatform
public static EntityManagerSetupException failedToInstantiateServerPlatform(String serverPlatformClass, String serverPlatformString, Exception exception) -
missingProperty
-
failedToInstantiateProperty
public static EntityManagerSetupException failedToInstantiateProperty(String className, String property, Exception exception) -
classNotFoundWhileProcessingAnnotations
public static EntityManagerSetupException classNotFoundWhileProcessingAnnotations(String className, Exception exception) -
jtaPersistenceUnitInfoMissingJtaDataSource
public static EntityManagerSetupException jtaPersistenceUnitInfoMissingJtaDataSource(String persistenceUnitInfoName) -
wrongPropertyValueType
public static EntityManagerSetupException wrongPropertyValueType(String value, String expectedType, String propertyName) -
cannotDeployWithoutPredeploy
public static EntityManagerSetupException cannotDeployWithoutPredeploy(String persistenceUnitName, String state, Exception exception) -
failedWhileProcessingProperty
public static EntityManagerSetupException failedWhileProcessingProperty(String propertyName, String propertyValue, Exception exception) -
failedToInstantiateLogger
public static EntityManagerSetupException failedToInstantiateLogger(String loggerClassName, String propertyName, Exception exception) -
puNotExist
-
cannotPredeploy
public static EntityManagerSetupException cannotPredeploy(String persistenceUnitName, String state, Exception exception) -
predeployFailed
public static EntityManagerSetupException predeployFailed(String persistenceUnitName, Throwable exception) -
deployFailed
public static EntityManagerSetupException deployFailed(String persistenceUnitName, Throwable exception) -
sessionLoadedFromSessionsXMLMustBeServerSession
public static EntityManagerSetupException sessionLoadedFromSessionsXMLMustBeServerSession(String sessionName, String sessionsXML, Object session) -
sessionNameNeedBeSpecified
public static EntityManagerSetupException sessionNameNeedBeSpecified(String PUName, String sessionsXML) -
wrongWeavingPropertyValue
-
methodInvocationFailed
public static EntityManagerSetupException methodInvocationFailed(Method aMethod, Object anObject, Exception ex) -
cannotAccessMethodOnObject
public static EntityManagerSetupException cannotAccessMethodOnObject(Method aMethod, Object anObject) -
noTemporaryClassLoaderAvailable
INTERNAL: The implementation of getNewTempClassLoader is returning null instead of a temporary ClassLoader instance.- Parameters:
PUName
-- Returns:
-
createContainerEntityManagerFactoryNotSupportedInOSGi
INTERNAL: Our OSGI persistence provider does not support a JavaEE-type deployment- Returns:
-
couldNotFindPersistenceUnitBundle
public static EntityManagerSetupException couldNotFindPersistenceUnitBundle(String persistenceUnitName) INTERNAL: An OSGi application is trying to instantiate a persistence unit for which a bundle does not exist- Parameters:
persistenceUnitName
-- Returns:
-
compositeIncompatibleWithSessionsXml
public static EntityManagerSetupException compositeIncompatibleWithSessionsXml(String persistenceUnitName) INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.- Parameters:
persistenceUnitName
-- Returns:
-
compositeMemberCannotBeUsedStandalone
public static EntityManagerSetupException compositeMemberCannotBeUsedStandalone(String persistenceUnitName) INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.- Parameters:
persistenceUnitName
-- Returns:
-
failedToInstantiateTemporaryClassLoader
public static EntityManagerSetupException failedToInstantiateTemporaryClassLoader(Exception exception) INTERNAL: Reflective call with doPrivileged to create temporary classloader instance failed.- Returns:
-