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:
java.io.Serializable
public class EntityManagerSetupException extends EclipseLinkException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
-
Constructor Summary
Constructors Modifier Constructor Description EntityManagerSetupException()INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.protectedEntityManagerSetupException(java.lang.String message)INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.protectedEntityManagerSetupException(java.lang.String message, java.lang.Throwable internalException)INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityManagerSetupExceptionattemptedRedeployWithoutClose(java.lang.String sessionName)static EntityManagerSetupExceptioncannotAccessMethodOnObject(java.lang.reflect.Method aMethod, java.lang.Object anObject)static EntityManagerSetupExceptioncannotDeployWithoutPredeploy(java.lang.String persistenceUnitName, java.lang.String state, java.lang.Exception exception)static EntityManagerSetupExceptioncannotPredeploy(java.lang.String persistenceUnitName, java.lang.String state, java.lang.Exception exception)static EntityManagerSetupExceptionclassNotFoundForProperty(java.lang.String className, java.lang.String propertyName, java.lang.Exception exception)static EntityManagerSetupExceptionclassNotFoundWhileProcessingAnnotations(java.lang.String className, java.lang.Exception exception)static EntityManagerSetupExceptioncompositeIncompatibleWithSessionsXml(java.lang.String persistenceUnitName)INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.static EntityManagerSetupExceptioncompositeMemberCannotBeUsedStandalone(java.lang.String persistenceUnitName)INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.static EntityManagerSetupExceptioncouldNotFindPersistenceUnitBundle(java.lang.String persistenceUnitName)INTERNAL: An OSGi application is trying to instantiate a persistence unit for which a bundle does not existstatic EntityManagerSetupExceptioncreateContainerEntityManagerFactoryNotSupportedInOSGi()INTERNAL: Our OSGI persistence provider does not support a JavaEE-type deploymentstatic EntityManagerSetupExceptiondeployFailed(java.lang.String persistenceUnitName, java.lang.Throwable exception)static EntityManagerSetupExceptionerrorInSetupOfEM()static EntityManagerSetupExceptionexceptionInSetupOfEM(java.lang.Exception exception)static EntityManagerSetupExceptionfailedToInstantiateLogger(java.lang.String loggerClassName, java.lang.String propertyName, java.lang.Exception exception)static EntityManagerSetupExceptionfailedToInstantiateProperty(java.lang.String className, java.lang.String property, java.lang.Exception exception)static EntityManagerSetupExceptionfailedToInstantiateServerPlatform(java.lang.String serverPlatformClass, java.lang.String serverPlatformString, java.lang.Exception exception)static EntityManagerSetupExceptionfailedToInstantiateTemporaryClassLoader(java.lang.Exception exception)INTERNAL: Reflective call with doPrivileged to create temporary classloader instance failed.static EntityManagerSetupExceptionfailedWhileProcessingProperty(java.lang.String propertyName, java.lang.String propertyValue, java.lang.Exception exception)static EntityManagerSetupExceptionjtaPersistenceUnitInfoMissingJtaDataSource(java.lang.String persistenceUnitInfoName)static EntityManagerSetupExceptionmethodInvocationFailed(java.lang.reflect.Method aMethod, java.lang.Object anObject, java.lang.Exception ex)static EntityManagerSetupExceptionmissingProperty(java.lang.String property)static EntityManagerSetupExceptionmissingServerPlatformException(java.lang.String sessionName, java.lang.String xmlFileName)static EntityManagerSetupExceptionnoTemporaryClassLoaderAvailable(java.lang.String PUName)INTERNAL: The implementation of getNewTempClassLoader is returning null instead of a temporary ClassLoader instance.static EntityManagerSetupExceptionpredeployFailed(java.lang.String persistenceUnitName, java.lang.Throwable exception)static EntityManagerSetupExceptionpuNotExist(java.lang.String puName)static EntityManagerSetupExceptionsessionLoadedFromSessionsXMLMustBeServerSession(java.lang.String sessionName, java.lang.String sessionsXML, java.lang.Object session)static EntityManagerSetupExceptionsessionNameNeedBeSpecified(java.lang.String PUName, java.lang.String sessionsXML)static EntityManagerSetupExceptionsessionRemovedDuringDeployment(java.lang.String sessionName)static EntityManagerSetupExceptionsessionXMLValidationException(java.lang.String sessionName, java.lang.String xmlFileName, ValidationException exception)static EntityManagerSetupExceptionwrongPropertyValueType(java.lang.String value, java.lang.String expectedType, java.lang.String propertyName)static EntityManagerSetupExceptionwrongSessionTypeException(java.lang.String sessionName, java.lang.String xmlFileName, java.lang.Exception exception)static EntityManagerSetupExceptionwrongWeavingPropertyValue()-
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
-
-
-
-
Field Detail
-
SESSIONS_XML_VALIDATION_EXCEPTION
public static final int SESSIONS_XML_VALIDATION_EXCEPTION
- See Also:
- Constant Field Values
-
WRONG_SESSION_TYPE_EXCEPTION
public static final int WRONG_SESSION_TYPE_EXCEPTION
- See Also:
- Constant Field Values
-
MISSING_SERVER_PLATFORM_EXCEPTION
public static final int MISSING_SERVER_PLATFORM_EXCEPTION
- See Also:
- Constant Field Values
-
ERROR_IN_SETUP_OF_EM
public static final int ERROR_IN_SETUP_OF_EM
- See Also:
- Constant Field Values
-
EXCEPTION_IN_SETUP_OF_EM
public static final int EXCEPTION_IN_SETUP_OF_EM
- See Also:
- Constant Field Values
-
CLASS_NOT_FOUND_FOR_PROPERTY
public static final int CLASS_NOT_FOUND_FOR_PROPERTY
- See Also:
- Constant Field Values
-
FAILED_TO_INSTANTIATE_SERVER_PLATFORM
public static final int FAILED_TO_INSTANTIATE_SERVER_PLATFORM
- See Also:
- Constant Field Values
-
CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS
public static final int CLASS_NOT_FOUND_WHILE_PROCESSING_ANNOTATIONS
- See Also:
- Constant Field Values
-
ATTEMPTED_REDEPLOY_WITHOUT_CLOSE
public static final int ATTEMPTED_REDEPLOY_WITHOUT_CLOSE
- See Also:
- Constant Field Values
-
JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE
public static final int JTA_PERSISTENCE_UNIT_INFO_MISSING_JTA_DATA_SOURCE
- See Also:
- Constant Field Values
-
SESSION_REMOVED_DURING_DEPLOYMENT
public static final int SESSION_REMOVED_DURING_DEPLOYMENT
- See Also:
- Constant Field Values
-
WRONG_PROPERTY_VALUE_TYPE
public static final int WRONG_PROPERTY_VALUE_TYPE
- See Also:
- Constant Field Values
-
CANNOT_DEPLOY_WITHOUT_PREDEPLOY
public static final int CANNOT_DEPLOY_WITHOUT_PREDEPLOY
- See Also:
- Constant Field Values
-
FAILED_WHILE_PROCESSING_PROPERTY
public static final int FAILED_WHILE_PROCESSING_PROPERTY
- See Also:
- Constant Field Values
-
FAILED_TO_INSTANTIATE_LOGGER
public static final int FAILED_TO_INSTANTIATE_LOGGER
- See Also:
- Constant Field Values
-
PU_NOT_EXIST
public static final int PU_NOT_EXIST
- See Also:
- Constant Field Values
-
CANNOT_PREDEPLOY
public static final int CANNOT_PREDEPLOY
- See Also:
- Constant Field Values
-
PREDEPLOY_FAILED
public static final int PREDEPLOY_FAILED
- See Also:
- Constant Field Values
-
DEPLOY_FAILED
public static final int DEPLOY_FAILED
- See Also:
- Constant Field Values
-
SESSION_LOADED_FROM_SESSIONSXML_MUST_BE_SERVER_SESSION
public static final int SESSION_LOADED_FROM_SESSIONSXML_MUST_BE_SERVER_SESSION
- See Also:
- Constant Field Values
-
ATTEMPTED_LOAD_SESSION_WITHOUT_NAME_PROVIDED
public static final int ATTEMPTED_LOAD_SESSION_WITHOUT_NAME_PROVIDED
- See Also:
- Constant Field Values
-
WRONG_WEAVING_PROPERTY_VALUE
public static final int WRONG_WEAVING_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
METHOD_INVOCATION_FAILED
public static final int METHOD_INVOCATION_FAILED
- See Also:
- Constant Field Values
-
CANNOT_ACCESS_METHOD_ON_OBJECT
public static final int CANNOT_ACCESS_METHOD_ON_OBJECT
- See Also:
- Constant Field Values
-
NO_TEMPORARY_CLASSLOADER_AVAILABLE
public static final int NO_TEMPORARY_CLASSLOADER_AVAILABLE
- See Also:
- Constant Field Values
-
CREATE_CONTAINER_EMF_NOT_SUPPORTED_IN_OSGI
public static final int CREATE_CONTAINER_EMF_NOT_SUPPORTED_IN_OSGI
- See Also:
- Constant Field Values
-
COULD_NOT_FIND_PERSISTENCE_UNIT_BUNDLE
public static final int COULD_NOT_FIND_PERSISTENCE_UNIT_BUNDLE
- See Also:
- Constant Field Values
-
FAILED_TO_INSTANTIATE_PROPERTY
public static final int FAILED_TO_INSTANTIATE_PROPERTY
- See Also:
- Constant Field Values
-
COMPOSITE_INCOMPATIBLE_WITH_SESSIONS_XML
public static final int COMPOSITE_INCOMPATIBLE_WITH_SESSIONS_XML
- See Also:
- Constant Field Values
-
COMPOSITE_MEMBER_CANNOT_BE_USED_STANDALONE
public static final int COMPOSITE_MEMBER_CANNOT_BE_USED_STANDALONE
- See Also:
- Constant Field Values
-
MISSING_PROPERTY
public static final int MISSING_PROPERTY
- See Also:
- Constant Field Values
-
FAILED_TO_INSTANTIATE_TEMP_CLASSLOADER
public static final int FAILED_TO_INSTANTIATE_TEMP_CLASSLOADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntityManagerSetupException
public EntityManagerSetupException()
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
EntityManagerSetupException
protected EntityManagerSetupException(java.lang.String message)
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
EntityManagerSetupException
protected EntityManagerSetupException(java.lang.String message, java.lang.Throwable internalException)INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
-
Method Detail
-
attemptedRedeployWithoutClose
public static EntityManagerSetupException attemptedRedeployWithoutClose(java.lang.String sessionName)
-
missingServerPlatformException
public static EntityManagerSetupException missingServerPlatformException(java.lang.String sessionName, java.lang.String xmlFileName)
-
sessionRemovedDuringDeployment
public static EntityManagerSetupException sessionRemovedDuringDeployment(java.lang.String sessionName)
-
sessionXMLValidationException
public static EntityManagerSetupException sessionXMLValidationException(java.lang.String sessionName, java.lang.String xmlFileName, ValidationException exception)
-
wrongSessionTypeException
public static EntityManagerSetupException wrongSessionTypeException(java.lang.String sessionName, java.lang.String xmlFileName, java.lang.Exception exception)
-
errorInSetupOfEM
public static EntityManagerSetupException errorInSetupOfEM()
-
exceptionInSetupOfEM
public static EntityManagerSetupException exceptionInSetupOfEM(java.lang.Exception exception)
-
classNotFoundForProperty
public static EntityManagerSetupException classNotFoundForProperty(java.lang.String className, java.lang.String propertyName, java.lang.Exception exception)
-
failedToInstantiateServerPlatform
public static EntityManagerSetupException failedToInstantiateServerPlatform(java.lang.String serverPlatformClass, java.lang.String serverPlatformString, java.lang.Exception exception)
-
missingProperty
public static EntityManagerSetupException missingProperty(java.lang.String property)
-
failedToInstantiateProperty
public static EntityManagerSetupException failedToInstantiateProperty(java.lang.String className, java.lang.String property, java.lang.Exception exception)
-
classNotFoundWhileProcessingAnnotations
public static EntityManagerSetupException classNotFoundWhileProcessingAnnotations(java.lang.String className, java.lang.Exception exception)
-
jtaPersistenceUnitInfoMissingJtaDataSource
public static EntityManagerSetupException jtaPersistenceUnitInfoMissingJtaDataSource(java.lang.String persistenceUnitInfoName)
-
wrongPropertyValueType
public static EntityManagerSetupException wrongPropertyValueType(java.lang.String value, java.lang.String expectedType, java.lang.String propertyName)
-
cannotDeployWithoutPredeploy
public static EntityManagerSetupException cannotDeployWithoutPredeploy(java.lang.String persistenceUnitName, java.lang.String state, java.lang.Exception exception)
-
failedWhileProcessingProperty
public static EntityManagerSetupException failedWhileProcessingProperty(java.lang.String propertyName, java.lang.String propertyValue, java.lang.Exception exception)
-
failedToInstantiateLogger
public static EntityManagerSetupException failedToInstantiateLogger(java.lang.String loggerClassName, java.lang.String propertyName, java.lang.Exception exception)
-
puNotExist
public static EntityManagerSetupException puNotExist(java.lang.String puName)
-
cannotPredeploy
public static EntityManagerSetupException cannotPredeploy(java.lang.String persistenceUnitName, java.lang.String state, java.lang.Exception exception)
-
predeployFailed
public static EntityManagerSetupException predeployFailed(java.lang.String persistenceUnitName, java.lang.Throwable exception)
-
deployFailed
public static EntityManagerSetupException deployFailed(java.lang.String persistenceUnitName, java.lang.Throwable exception)
-
sessionLoadedFromSessionsXMLMustBeServerSession
public static EntityManagerSetupException sessionLoadedFromSessionsXMLMustBeServerSession(java.lang.String sessionName, java.lang.String sessionsXML, java.lang.Object session)
-
sessionNameNeedBeSpecified
public static EntityManagerSetupException sessionNameNeedBeSpecified(java.lang.String PUName, java.lang.String sessionsXML)
-
wrongWeavingPropertyValue
public static EntityManagerSetupException wrongWeavingPropertyValue()
-
methodInvocationFailed
public static EntityManagerSetupException methodInvocationFailed(java.lang.reflect.Method aMethod, java.lang.Object anObject, java.lang.Exception ex)
-
cannotAccessMethodOnObject
public static EntityManagerSetupException cannotAccessMethodOnObject(java.lang.reflect.Method aMethod, java.lang.Object anObject)
-
noTemporaryClassLoaderAvailable
public static EntityManagerSetupException noTemporaryClassLoaderAvailable(java.lang.String PUName)
INTERNAL: The implementation of getNewTempClassLoader is returning null instead of a temporary ClassLoader instance.- Parameters:
PUName-- Returns:
-
createContainerEntityManagerFactoryNotSupportedInOSGi
public static EntityManagerSetupException createContainerEntityManagerFactoryNotSupportedInOSGi()
INTERNAL: Our OSGI persistence provider does not support a JavaEE-type deployment- Returns:
-
couldNotFindPersistenceUnitBundle
public static EntityManagerSetupException couldNotFindPersistenceUnitBundle(java.lang.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(java.lang.String persistenceUnitName)
INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.- Parameters:
persistenceUnitName-- Returns:
-
compositeMemberCannotBeUsedStandalone
public static EntityManagerSetupException compositeMemberCannotBeUsedStandalone(java.lang.String persistenceUnitName)
INTERNAL: Persistence unit tries to use sessions.xml and to be a composite.- Parameters:
persistenceUnitName-- Returns:
-
failedToInstantiateTemporaryClassLoader
public static EntityManagerSetupException failedToInstantiateTemporaryClassLoader(java.lang.Exception exception)
INTERNAL: Reflective call with doPrivileged to create temporary classloader instance failed.- Returns:
-
-