Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.exceptions
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byoracle.toplink.exceptions.TopLinkException
                  extended byoracle.toplink.exceptions.ValidationException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DescriptorException, IntegrityException, QueryException

public class ValidationException
extends TopLinkException

Purpose: This exception is used if incorrect state or method arguments are detected in a general TopLink object.

See Also:
Serialized Form

Field Summary
static int ALREADY_LOGGED_IN
static int CANNOT_ACQUIRE_CLIENTSESSION_FROM_SESSION
static int CANNOT_ACQUIRE_DATA_SOURCE
static int CANNOT_ADD_DESCRIPTORS_TO_SESSION
static int CANNOT_ADD_DESCRIPTORS_TO_SESSION_BROKER
static int CANNOT_COMMIT_UOW_AGAIN
static int CANNOT_CREATE_EXTERNAL_TRANSACTION_CONTROLLER
static int CANNOT_LOGIN_TO_A_SESSION
static int CANNOT_LOGOUT_OF_A_SESSION
static int CANNOT_MODIFY_READ_ONLY_CLASSES_SET_AFTER_USING_UNIT_OF_WORK
static int CANNOT_MODIFY_SCHEMA_IN_SESSION
static int CANNOT_REGISTER_AGGREGATE_OBJECT_IN_UNIT_OF_WORK
static int CANNOT_RELEASE_NON_CLIENTSESSION
static int CANNOT_REMOVE_FROM_READ_ONLY_CLASSES_IN_NESTED_UNIT_OF_WORK
static int CANNOT_SET_READ_POOL_SIZE_AFTER_LOGIN
static int CANT_HAVE_UNBOUND_IN_OUTPUT_ARGUMENTS
static int CHILD_DESCRIPTORS_DO_NOT_HAVE_IDENTITY_MAP
static int CONTAINER_POLICY_DOES_NOT_USE_KEYS
static int DESCRIPTOR_MUST_NOT_BE_INITIALIZED
static int EJB_CANNOT_LOAD_REMOTE_CLASS
static int EJB_CONTAINER_EXCEPTION_RAISED
static int EJB_DESCRIPTOR_NOT_FOUND_IN_SESSION
static int EJB_FINDER_EXCEPTION
static int EJB_INVALID_FINDER_ON_HOME
static int EJB_INVALID_PLATFORM_CLASS
static int EJB_INVALID_PROJECT_CLASS
static int EJB_INVALID_SESSION_TYPE_CLASS
static int EJB_MUST_BE_IN_TRANSACTION
static int EJB_MUST_SET_LICENSE_KEY
Deprecated. since 4.6. There is no direct replacement API.
static int EJB_NO_SUCH_SESSION_SPECIFIED_IN_PROPERTIES
static int EJB_PRIMARY_KEY_REFLECTION_EXCEPTION
static int EJB_SESSION_TYPE_CLASS_NOT_FOUND
static int EJB_TOPLINK_PROPERTIES_NOT_FOUND
static int ERROR_DECRYPTING_PASSWORD
static int ERROR_ENCRYPTING_PASSWORD
static int ERROR_IN_SESSION_XML
static int ERROR_WHILE_READING_LICENSE
Deprecated. since 4.6. There is no direct replacement API.
static int EXISTING_QUERY_TYPE_CONFLICT
static int FATAL_ERROR_OCCURRED
static int FIELD_LEVEL_LOCKING_NOTSUPPORTED_OUTSIDE_A_UNIT_OF_WORK
static int FILE_ERROR
static int ILLEGAL_CONTAINER_CLASS
static int ILLEGAL_USE_OF_MAP_IN_DIRECTCOLLECTION
static int INCORRECT_LOGIN_INSTANCE_PROVIDED
static int INVALID_CONNECTOR
static int INVALID_DATA_SOURCE_NAME
static int INVALID_ENCRYPTION_CLASS
static int INVALID_FILE_TYPE
static int INVALID_MERGE_POLICY
static int INVALID_READ_ONLY_CLASS_STRUCTURE_IN_UNIT_OF_WORK
static int INVALID_SEQUENCING_LOGIN
static int JAVA_TYPE_IS_NOT_A_VALID_DATABASE_TYPE
static int JTS_EXCEPTION_RAISED
static int KEYS_MUST_MATCH
static int LICENSE_FILE_NOT_FOUND
Deprecated. since 4.6. There is no direct replacement API.
static int LOG_IO_ERROR
static int LOGIN_BEFORE_ALLOCATING_CLIENT_SESSIONS
static int MAX_SIZE_LESS_THAN_MIN_SIZE
static int METHOD_NOT_DECLARED_IN_ITEM_CLASS
static int MISSING_DESCRIPTOR
static int MISSING_MAPPING
static int MULTIPLE_PROJECTS_SPECIFIED_IN_PROPERTIES
static int NO_PROJECT_SPECIFIED_IN_PROPERTIES
static int NO_PROPERTIES_FILE_FOUND
static int NO_SESSION_REGISTERED_FOR_CLASS
static int NO_SESSION_REGISTERED_FOR_NAME
static int NO_SESSIONS_XML_FOUND
static int NO_TABLES_TO_CREATE
static int NO_TOPLINK_EJB_JAR_XML_FOUND
static int NULL_CACHE_KEY_FOUND_ON_REMOVAL
static int NULL_UNDERLYING_VALUEHOLDER_VALUE
static int ONLY_FIELDS_ARE_VALID_KEYS_FOR_DATABASE_ROWS
static int OPERATION_NOT_SUPPORTED
static int OPTIMISTIC_LOCKING_NOT_SUPPORTED
static int ORACLE_OBJECT_TYPE_NAME_NOT_DEFINED
static int ORACLE_OBJECT_TYPE_NOT_DEFINED
static int ORACLE_VARRAY_MAXIMIM_SIZE_NOT_DEFINED
static int PLATFORM_CLASS_NOT_FOUND
static int POOL_NAME_DOES_NOT_EXIST
static int POOLS_MUST_BE_CONFIGURED_BEFORE_LOGIN
static int PROJECT_AMENDMENT_EXCEPTION_OCCURED
static int PROJECT_XML_NOT_FOUND
static int QUERY_ARGUMENT_TYPE_NOT_FOUND
static int SEQUENCE_SETUP_INCORRECTLY
static int SESSION_AMENDMENT_EXCEPTION_OCCURED
static int SESSION_LIMIT_IS_EXCEEDED
Deprecated. since 4.6. There is no direct replacement API.
static int SET_LISTENER_CLASSES_EXCEPTION
static int START_INDEX_OUT_OF_RANGE
static int STOP_INDEX_OUT_OF_RANGE
static int SUB_SESSION_NOT_DEFINED_FOR_BROKER
static int WRITE_OBJECT_NOT_ALLOWED_IN_UNIT_OF_WORK
static int WRONG_OBJECT_REGISTERED

Method Summary
static ValidationException alreadyLoggedIn(java.lang.String sessionName)
static ValidationException cannotAcquireClientSessionFromSession()
static ValidationException cannotAcquireDataSource(java.lang.Object name, java.lang.Exception exception)
static ValidationException cannotAddDescriptorsToSessionBroker()
static ValidationException cannotCommitUOWAgain()
static ValidationException cannotCreateExternalTransactionController(java.lang.String externalTransactionControllerName)
static ValidationException cannotHaveUnboundInOutputArguments()
static ValidationException cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork()
static ValidationException cannotRegisterAggregateObjectInUnitOfWork(java.lang.Class type)
static ValidationException cannotReleaseNonClientSession()
static ValidationException cannotRemoveFromReadOnlyClassesInNestedUnitOfWork()
static ValidationException cannotSetListenerClasses(java.lang.Exception exception)
static ValidationException cannotSetReadPoolSizeAfterLogin()
static ValidationException childDescriptorsDoNotHaveIdentityMap()
static ValidationException containerPolicyDoesNotUseKeys(oracle.toplink.internal.queryframework.ContainerPolicy aPolicy, java.lang.String methodName)
static ValidationException descriptorMustBeNotInitialized(Descriptor descriptor)
static ValidationException ejbCannotLoadRemoteClass(java.lang.Exception exception, java.lang.Class beanClass, java.lang.String remoteClass)
static ValidationException ejbContainerExceptionRaised(java.lang.Exception exception)
static ValidationException ejbDescriptorNotFoundInSession(java.lang.Class beanClass, java.lang.String sessionName)
PUBLIC: Possible cause: The descriptor listed was not found in the session specified on the deployment descriptor.
static ValidationException ejbFinderException(java.lang.Object bean, java.lang.Throwable finderException, java.util.Vector primaryKey)
static ValidationException ejbInvalidHomeInterfaceClass(java.lang.Class homeClassName)
static ValidationException ejbInvalidPlatformClass(java.lang.String platformName, java.lang.String projectName)
static ValidationException ejbInvalidProjectClass(java.lang.String projectClassName, java.lang.String projectName, java.lang.Throwable aThrowable)
PUBLIC: Possible cause: The project class specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable can not be found.
static ValidationException ejbInvalidSessionTypeClass(java.lang.String sessionType, java.lang.String sessionName)
PUBLIC: Possible cause: The session type specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable is not a valid type.
static ValidationException ejbMustBeInTransaction(java.lang.Object bean)
PUBLIC: Possible cause: An attempt was made to create or remove a been outside of a transaction.
static ValidationException ejbNoSuchSessionSpecifiedInProperties(java.lang.String sessionName, java.lang.Class beanClass)
PUBLIC: Possible cause: The toplink_session_name value on the beans environment variable does not match with one in the TopLink.properties file.
static ValidationException ejbPrimaryKeyReflectionException(java.lang.Exception exception, java.lang.Object primaryKey, java.lang.Object bean)
PUBLIC: Possible cause: An incorrect primary key object is being used with a bean.
static ValidationException ejbSessionTypeClassNotFound(java.lang.String sessionType, java.lang.String sessionName, java.lang.Throwable exception)
PUBLIC: Possible cause: The session type specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable is not found using the default class loader.
static ValidationException ejbTopLinkPropertiesNotFound(java.lang.Exception exception)
PUBLIC: Possible cause: The TopLink.properties file can not be found.
static ValidationException errorDecryptingPassword(java.lang.Exception exception)
static ValidationException errorEncryptingPassword(java.lang.Exception exception)
static ValidationException errorInSessionsXML(java.lang.String translatedExceptions)
PUBLIC: The session named "name" could not be found in the Sessions.XML
static ValidationException errorWhileReadingLicenseFile(java.lang.String url, java.lang.Exception exception)
Deprecated. since TopLink 4.6. There is no direct replacement API.
static ValidationException existingQueryTypeConflict(DatabaseQuery newQuery, DatabaseQuery existingQuery)
static ValidationException fatalErrorOccurred(java.lang.Exception exception)
static ValidationException fieldLevelLockingNotSupportedWithoutUnitOfWork()
static ValidationException fileError(java.io.IOException exception)
static ValidationException illegalContainerClass(java.lang.Class aClass)
static ValidationException illegalUseOfMapInDirectCollection(DirectCollectionMapping directCollectionMapping, java.lang.Class aMapClass, java.lang.String keyMethodName)
static ValidationException incorrectLoginInstanceProvided()
static ValidationException invalidConnector(Connector connector)
static ValidationException invalidDataSourceName(java.lang.String name, java.lang.Exception exception)
static ValidationException invalidEncryptionClass(java.lang.String className, java.lang.Throwable throwableError)
static ValidationException invalidFileName(java.lang.String fileName)
static ValidationException invalidMergePolicy()
static ValidationException invalidSequencingLogin()
static ValidationException javaTypeIsNotAValidDatabaseType(java.lang.Class javaClass)
static ValidationException jtsExceptionRaised(java.lang.Exception exception)
static ValidationException loginBeforeAllocatingClientSessions()
static ValidationException logIOError(java.io.IOException exception)
static ValidationException maxSizeLessThanMinSize()
static ValidationException methodNotDeclaredInItemClass(java.lang.String methodName, java.lang.Class aClass)
static ValidationException missingDescriptor(java.lang.String className)
static ValidationException missingMappingForAttribute(Descriptor descriptor, java.lang.String attributeName, java.lang.String source)
Create a validation exception for the look up of a mapping on a descriptor for an unknown attribute name.
static ValidationException multipleProjectsSpecifiedInProperties(java.lang.String bundleName, java.lang.String serverName)
PUBLIC: Possible cause: More than one of projectClass, projectFile, and xmlProjectFile are specified for the same session in the TopLink.properties file.
static ValidationException noProjectSpecifiedInProperties(java.lang.String bundleName, java.lang.String serverName)
PUBLIC: Possible cause: The TopLink.properties file does not include any reference to a project class, file, or xml project file for the session specified in the deployment descriptor.
static ValidationException noPropertiesFileFound(java.lang.Exception exception)
static ValidationException noSessionRegisteredForClass(java.lang.Class domainClass)
static ValidationException noSessionRegisteredForName(java.lang.String sessionName)
static ValidationException noSessionsXMLFound(java.lang.String resourceName)
static ValidationException noTablesToCreate(Project project)
static ValidationException noTopLinkEjbJarXMLFound()
static ValidationException nullCacheKeyFoundOnRemoval(oracle.toplink.internal.identitymaps.IdentityMap map, java.lang.Class clazz)
static ValidationException nullUnderlyingValueHolderValue(java.lang.String methodName)
static ValidationException onlyFieldsAreValidKeysForDatabaseRows()
static ValidationException operationNotSupported(java.lang.String methodName)
static ValidationException optimisticLockingNotSupportedWithStoredProcedureGeneration()
static ValidationException oracleObjectTypeIsNotDefined(java.lang.String typeName)
static ValidationException oracleObjectTypeNameIsNotDefined(java.lang.Class type)
static ValidationException oracleVarrayMaximumSizeNotDefined(java.lang.String typeName)
static ValidationException platformClassNotFound(java.lang.Exception exception, java.lang.String className)
static ValidationException poolNameDoesNotExist(java.lang.String poolName)
static ValidationException poolsMustBeConfiguredBeforeLogin()
static ValidationException projectAmendmentExceptionOccured(java.lang.Exception exception, java.lang.String amendmentMethod, java.lang.String amendmentClass)
PUBLIC: Possible cause: An amendment method was called but can not be found.
static ValidationException projectXMLNotFound(java.lang.String projectXMLFile, java.lang.Exception exception)
static ValidationException queryArgumentTypeNotFound(DatabaseQuery query, java.lang.String argumentName, java.lang.String typeAsString, java.lang.Exception exception)
static ValidationException sequenceSetupIncorrectly(java.lang.String sequenceName)
static ValidationException sessionAmendmentExceptionOccured(java.lang.Exception exception, java.lang.String amendmentMethod, java.lang.String amendmentClass, java.lang.Class[] parameters)
PUBLIC: Possible cause: An amendment method was called but can not be found.
static ValidationException startIndexOutOfRange()
static ValidationException stopIndexOutOfRange()
static ValidationException subSessionsNotDefinedForBroker(java.lang.String brokerName)
PUBLIC: Possible cause: The session class specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable can not be found.
static ValidationException writeObjectNotAllowedInUnitOfWork()
static ValidationException wrongObjectRegistered(java.lang.Object registered, java.lang.Object parent)

Methods inherited from class oracle.toplink.exceptions.TopLinkException
getErrorCode, getInternalException, getMessage, getSession, printStackTrace, printStackTrace, printStackTrace, setShouldPrintInternalException

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

LOGIN_BEFORE_ALLOCATING_CLIENT_SESSIONS

public static final int LOGIN_BEFORE_ALLOCATING_CLIENT_SESSIONS
See Also:
Constant Field Values

POOL_NAME_DOES_NOT_EXIST

public static final int POOL_NAME_DOES_NOT_EXIST
See Also:
Constant Field Values

MAX_SIZE_LESS_THAN_MIN_SIZE

public static final int MAX_SIZE_LESS_THAN_MIN_SIZE
See Also:
Constant Field Values

POOLS_MUST_BE_CONFIGURED_BEFORE_LOGIN

public static final int POOLS_MUST_BE_CONFIGURED_BEFORE_LOGIN
See Also:
Constant Field Values

JAVA_TYPE_IS_NOT_A_VALID_DATABASE_TYPE

public static final int JAVA_TYPE_IS_NOT_A_VALID_DATABASE_TYPE
See Also:
Constant Field Values

MISSING_DESCRIPTOR

public static final int MISSING_DESCRIPTOR
See Also:
Constant Field Values

START_INDEX_OUT_OF_RANGE

public static final int START_INDEX_OUT_OF_RANGE
See Also:
Constant Field Values

STOP_INDEX_OUT_OF_RANGE

public static final int STOP_INDEX_OUT_OF_RANGE
See Also:
Constant Field Values

FATAL_ERROR_OCCURRED

public static final int FATAL_ERROR_OCCURRED
See Also:
Constant Field Values

NO_PROPERTIES_FILE_FOUND

public static final int NO_PROPERTIES_FILE_FOUND
See Also:
Constant Field Values

CHILD_DESCRIPTORS_DO_NOT_HAVE_IDENTITY_MAP

public static final int CHILD_DESCRIPTORS_DO_NOT_HAVE_IDENTITY_MAP
See Also:
Constant Field Values

FILE_ERROR

public static final int FILE_ERROR
See Also:
Constant Field Values

INCORRECT_LOGIN_INSTANCE_PROVIDED

public static final int INCORRECT_LOGIN_INSTANCE_PROVIDED
See Also:
Constant Field Values

INVALID_MERGE_POLICY

public static final int INVALID_MERGE_POLICY
See Also:
Constant Field Values

ONLY_FIELDS_ARE_VALID_KEYS_FOR_DATABASE_ROWS

public static final int ONLY_FIELDS_ARE_VALID_KEYS_FOR_DATABASE_ROWS
See Also:
Constant Field Values

SEQUENCE_SETUP_INCORRECTLY

public static final int SEQUENCE_SETUP_INCORRECTLY
See Also:
Constant Field Values

WRITE_OBJECT_NOT_ALLOWED_IN_UNIT_OF_WORK

public static final int WRITE_OBJECT_NOT_ALLOWED_IN_UNIT_OF_WORK
See Also:
Constant Field Values

CANNOT_SET_READ_POOL_SIZE_AFTER_LOGIN

public static final int CANNOT_SET_READ_POOL_SIZE_AFTER_LOGIN
See Also:
Constant Field Values

CANNOT_ADD_DESCRIPTORS_TO_SESSION_BROKER

public static final int CANNOT_ADD_DESCRIPTORS_TO_SESSION_BROKER
See Also:
Constant Field Values

NO_SESSION_REGISTERED_FOR_CLASS

public static final int NO_SESSION_REGISTERED_FOR_CLASS
See Also:
Constant Field Values

NO_SESSION_REGISTERED_FOR_NAME

public static final int NO_SESSION_REGISTERED_FOR_NAME
See Also:
Constant Field Values

CANNOT_ADD_DESCRIPTORS_TO_SESSION

public static final int CANNOT_ADD_DESCRIPTORS_TO_SESSION
See Also:
Constant Field Values

CANNOT_LOGIN_TO_A_SESSION

public static final int CANNOT_LOGIN_TO_A_SESSION
See Also:
Constant Field Values

CANNOT_LOGOUT_OF_A_SESSION

public static final int CANNOT_LOGOUT_OF_A_SESSION
See Also:
Constant Field Values

CANNOT_MODIFY_SCHEMA_IN_SESSION

public static final int CANNOT_MODIFY_SCHEMA_IN_SESSION
See Also:
Constant Field Values

LOG_IO_ERROR

public static final int LOG_IO_ERROR
See Also:
Constant Field Values

CANNOT_REMOVE_FROM_READ_ONLY_CLASSES_IN_NESTED_UNIT_OF_WORK

public static final int CANNOT_REMOVE_FROM_READ_ONLY_CLASSES_IN_NESTED_UNIT_OF_WORK
See Also:
Constant Field Values

CANNOT_MODIFY_READ_ONLY_CLASSES_SET_AFTER_USING_UNIT_OF_WORK

public static final int CANNOT_MODIFY_READ_ONLY_CLASSES_SET_AFTER_USING_UNIT_OF_WORK
See Also:
Constant Field Values

INVALID_READ_ONLY_CLASS_STRUCTURE_IN_UNIT_OF_WORK

public static final int INVALID_READ_ONLY_CLASS_STRUCTURE_IN_UNIT_OF_WORK
See Also:
Constant Field Values

PLATFORM_CLASS_NOT_FOUND

public static final int PLATFORM_CLASS_NOT_FOUND
See Also:
Constant Field Values

NO_TABLES_TO_CREATE

public static final int NO_TABLES_TO_CREATE
See Also:
Constant Field Values

ILLEGAL_CONTAINER_CLASS

public static final int ILLEGAL_CONTAINER_CLASS
See Also:
Constant Field Values

CONTAINER_POLICY_DOES_NOT_USE_KEYS

public static final int CONTAINER_POLICY_DOES_NOT_USE_KEYS
See Also:
Constant Field Values

METHOD_NOT_DECLARED_IN_ITEM_CLASS

public static final int METHOD_NOT_DECLARED_IN_ITEM_CLASS
See Also:
Constant Field Values

MISSING_MAPPING

public static final int MISSING_MAPPING
See Also:
Constant Field Values

ILLEGAL_USE_OF_MAP_IN_DIRECTCOLLECTION

public static final int ILLEGAL_USE_OF_MAP_IN_DIRECTCOLLECTION
See Also:
Constant Field Values

CANNOT_RELEASE_NON_CLIENTSESSION

public static final int CANNOT_RELEASE_NON_CLIENTSESSION
See Also:
Constant Field Values

CANNOT_ACQUIRE_CLIENTSESSION_FROM_SESSION

public static final int CANNOT_ACQUIRE_CLIENTSESSION_FROM_SESSION
See Also:
Constant Field Values

OPTIMISTIC_LOCKING_NOT_SUPPORTED

public static final int OPTIMISTIC_LOCKING_NOT_SUPPORTED
See Also:
Constant Field Values

WRONG_OBJECT_REGISTERED

public static final int WRONG_OBJECT_REGISTERED
See Also:
Constant Field Values

KEYS_MUST_MATCH

public static final int KEYS_MUST_MATCH
See Also:
Constant Field Values

INVALID_CONNECTOR

public static final int INVALID_CONNECTOR
See Also:
Constant Field Values

INVALID_DATA_SOURCE_NAME

public static final int INVALID_DATA_SOURCE_NAME
See Also:
Constant Field Values

CANNOT_ACQUIRE_DATA_SOURCE

public static final int CANNOT_ACQUIRE_DATA_SOURCE
See Also:
Constant Field Values

JTS_EXCEPTION_RAISED

public static final int JTS_EXCEPTION_RAISED
See Also:
Constant Field Values

FIELD_LEVEL_LOCKING_NOTSUPPORTED_OUTSIDE_A_UNIT_OF_WORK

public static final int FIELD_LEVEL_LOCKING_NOTSUPPORTED_OUTSIDE_A_UNIT_OF_WORK
See Also:
Constant Field Values

EJB_CONTAINER_EXCEPTION_RAISED

public static final int EJB_CONTAINER_EXCEPTION_RAISED
See Also:
Constant Field Values

EJB_PRIMARY_KEY_REFLECTION_EXCEPTION

public static final int EJB_PRIMARY_KEY_REFLECTION_EXCEPTION
See Also:
Constant Field Values

EJB_CANNOT_LOAD_REMOTE_CLASS

public static final int EJB_CANNOT_LOAD_REMOTE_CLASS
See Also:
Constant Field Values

EJB_MUST_BE_IN_TRANSACTION

public static final int EJB_MUST_BE_IN_TRANSACTION
See Also:
Constant Field Values

EJB_MUST_SET_LICENSE_KEY

public static final int EJB_MUST_SET_LICENSE_KEY
Deprecated. since 4.6. There is no direct replacement API.
See Also:
Constant Field Values

EJB_INVALID_PROJECT_CLASS

public static final int EJB_INVALID_PROJECT_CLASS
See Also:
Constant Field Values

PROJECT_AMENDMENT_EXCEPTION_OCCURED

public static final int PROJECT_AMENDMENT_EXCEPTION_OCCURED
See Also:
Constant Field Values

EJB_TOPLINK_PROPERTIES_NOT_FOUND

public static final int EJB_TOPLINK_PROPERTIES_NOT_FOUND
See Also:
Constant Field Values

CANT_HAVE_UNBOUND_IN_OUTPUT_ARGUMENTS

public static final int CANT_HAVE_UNBOUND_IN_OUTPUT_ARGUMENTS
See Also:
Constant Field Values

EJB_INVALID_PLATFORM_CLASS

public static final int EJB_INVALID_PLATFORM_CLASS
See Also:
Constant Field Values

ORACLE_OBJECT_TYPE_NOT_DEFINED

public static final int ORACLE_OBJECT_TYPE_NOT_DEFINED
See Also:
Constant Field Values

ORACLE_OBJECT_TYPE_NAME_NOT_DEFINED

public static final int ORACLE_OBJECT_TYPE_NAME_NOT_DEFINED
See Also:
Constant Field Values

ORACLE_VARRAY_MAXIMIM_SIZE_NOT_DEFINED

public static final int ORACLE_VARRAY_MAXIMIM_SIZE_NOT_DEFINED
See Also:
Constant Field Values

DESCRIPTOR_MUST_NOT_BE_INITIALIZED

public static final int DESCRIPTOR_MUST_NOT_BE_INITIALIZED
See Also:
Constant Field Values

EJB_INVALID_FINDER_ON_HOME

public static final int EJB_INVALID_FINDER_ON_HOME
See Also:
Constant Field Values

EJB_NO_SUCH_SESSION_SPECIFIED_IN_PROPERTIES

public static final int EJB_NO_SUCH_SESSION_SPECIFIED_IN_PROPERTIES
See Also:
Constant Field Values

EJB_DESCRIPTOR_NOT_FOUND_IN_SESSION

public static final int EJB_DESCRIPTOR_NOT_FOUND_IN_SESSION
See Also:
Constant Field Values

EJB_FINDER_EXCEPTION

public static final int EJB_FINDER_EXCEPTION
See Also:
Constant Field Values

CANNOT_REGISTER_AGGREGATE_OBJECT_IN_UNIT_OF_WORK

public static final int CANNOT_REGISTER_AGGREGATE_OBJECT_IN_UNIT_OF_WORK
See Also:
Constant Field Values

MULTIPLE_PROJECTS_SPECIFIED_IN_PROPERTIES

public static final int MULTIPLE_PROJECTS_SPECIFIED_IN_PROPERTIES
See Also:
Constant Field Values

NO_PROJECT_SPECIFIED_IN_PROPERTIES

public static final int NO_PROJECT_SPECIFIED_IN_PROPERTIES
See Also:
Constant Field Values

INVALID_FILE_TYPE

public static final int INVALID_FILE_TYPE
See Also:
Constant Field Values

SUB_SESSION_NOT_DEFINED_FOR_BROKER

public static final int SUB_SESSION_NOT_DEFINED_FOR_BROKER
See Also:
Constant Field Values

EJB_INVALID_SESSION_TYPE_CLASS

public static final int EJB_INVALID_SESSION_TYPE_CLASS
See Also:
Constant Field Values

EJB_SESSION_TYPE_CLASS_NOT_FOUND

public static final int EJB_SESSION_TYPE_CLASS_NOT_FOUND
See Also:
Constant Field Values

CANNOT_CREATE_EXTERNAL_TRANSACTION_CONTROLLER

public static final int CANNOT_CREATE_EXTERNAL_TRANSACTION_CONTROLLER
See Also:
Constant Field Values

SESSION_AMENDMENT_EXCEPTION_OCCURED

public static final int SESSION_AMENDMENT_EXCEPTION_OCCURED
See Also:
Constant Field Values

SESSION_LIMIT_IS_EXCEEDED

public static final int SESSION_LIMIT_IS_EXCEEDED
Deprecated. since 4.6. There is no direct replacement API.
See Also:
Constant Field Values

SET_LISTENER_CLASSES_EXCEPTION

public static final int SET_LISTENER_CLASSES_EXCEPTION
See Also:
Constant Field Values

EXISTING_QUERY_TYPE_CONFLICT

public static final int EXISTING_QUERY_TYPE_CONFLICT
See Also:
Constant Field Values

QUERY_ARGUMENT_TYPE_NOT_FOUND

public static final int QUERY_ARGUMENT_TYPE_NOT_FOUND
See Also:
Constant Field Values

ERROR_IN_SESSION_XML

public static final int ERROR_IN_SESSION_XML
See Also:
Constant Field Values

NO_SESSIONS_XML_FOUND

public static final int NO_SESSIONS_XML_FOUND
See Also:
Constant Field Values

CANNOT_COMMIT_UOW_AGAIN

public static final int CANNOT_COMMIT_UOW_AGAIN
See Also:
Constant Field Values

OPERATION_NOT_SUPPORTED

public static final int OPERATION_NOT_SUPPORTED
See Also:
Constant Field Values

ERROR_WHILE_READING_LICENSE

public static final int ERROR_WHILE_READING_LICENSE
Deprecated. since 4.6. There is no direct replacement API.
See Also:
Constant Field Values

PROJECT_XML_NOT_FOUND

public static final int PROJECT_XML_NOT_FOUND
See Also:
Constant Field Values

LICENSE_FILE_NOT_FOUND

public static final int LICENSE_FILE_NOT_FOUND
Deprecated. since 4.6. There is no direct replacement API.
See Also:
Constant Field Values

NO_TOPLINK_EJB_JAR_XML_FOUND

public static final int NO_TOPLINK_EJB_JAR_XML_FOUND
See Also:
Constant Field Values

NULL_CACHE_KEY_FOUND_ON_REMOVAL

public static final int NULL_CACHE_KEY_FOUND_ON_REMOVAL
See Also:
Constant Field Values

NULL_UNDERLYING_VALUEHOLDER_VALUE

public static final int NULL_UNDERLYING_VALUEHOLDER_VALUE
See Also:
Constant Field Values

INVALID_SEQUENCING_LOGIN

public static final int INVALID_SEQUENCING_LOGIN
See Also:
Constant Field Values

INVALID_ENCRYPTION_CLASS

public static final int INVALID_ENCRYPTION_CLASS
See Also:
Constant Field Values

ERROR_ENCRYPTING_PASSWORD

public static final int ERROR_ENCRYPTING_PASSWORD
See Also:
Constant Field Values

ERROR_DECRYPTING_PASSWORD

public static final int ERROR_DECRYPTING_PASSWORD
See Also:
Constant Field Values

ALREADY_LOGGED_IN

public static final int ALREADY_LOGGED_IN
See Also:
Constant Field Values

Method Detail

cannotAcquireClientSessionFromSession

public static ValidationException cannotAcquireClientSessionFromSession()

cannotAcquireDataSource

public static ValidationException cannotAcquireDataSource(java.lang.Object name,
                                                          java.lang.Exception exception)

cannotSetListenerClasses

public static ValidationException cannotSetListenerClasses(java.lang.Exception exception)

cannotAddDescriptorsToSessionBroker

public static ValidationException cannotAddDescriptorsToSessionBroker()

cannotCreateExternalTransactionController

public static ValidationException cannotCreateExternalTransactionController(java.lang.String externalTransactionControllerName)

cannotHaveUnboundInOutputArguments

public static ValidationException cannotHaveUnboundInOutputArguments()

cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork

public static ValidationException cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork()

cannotRegisterAggregateObjectInUnitOfWork

public static ValidationException cannotRegisterAggregateObjectInUnitOfWork(java.lang.Class type)

cannotReleaseNonClientSession

public static ValidationException cannotReleaseNonClientSession()

cannotRemoveFromReadOnlyClassesInNestedUnitOfWork

public static ValidationException cannotRemoveFromReadOnlyClassesInNestedUnitOfWork()

cannotSetReadPoolSizeAfterLogin

public static ValidationException cannotSetReadPoolSizeAfterLogin()

childDescriptorsDoNotHaveIdentityMap

public static ValidationException childDescriptorsDoNotHaveIdentityMap()

containerPolicyDoesNotUseKeys

public static ValidationException containerPolicyDoesNotUseKeys(oracle.toplink.internal.queryframework.ContainerPolicy aPolicy,
                                                                java.lang.String methodName)

descriptorMustBeNotInitialized

public static ValidationException descriptorMustBeNotInitialized(Descriptor descriptor)

ejbCannotLoadRemoteClass

public static ValidationException ejbCannotLoadRemoteClass(java.lang.Exception exception,
                                                           java.lang.Class beanClass,
                                                           java.lang.String remoteClass)

ejbContainerExceptionRaised

public static ValidationException ejbContainerExceptionRaised(java.lang.Exception exception)

ejbDescriptorNotFoundInSession

public static ValidationException ejbDescriptorNotFoundInSession(java.lang.Class beanClass,
                                                                 java.lang.String sessionName)
PUBLIC: Possible cause: The descriptor listed was not found in the session specified on the deployment descriptor. Action: Check that the project specified in the TopLink.properties file is the desired project.

ejbFinderException

public static ValidationException ejbFinderException(java.lang.Object bean,
                                                     java.lang.Throwable finderException,
                                                     java.util.Vector primaryKey)

ejbInvalidHomeInterfaceClass

public static ValidationException ejbInvalidHomeInterfaceClass(java.lang.Class homeClassName)

ejbInvalidPlatformClass

public static ValidationException ejbInvalidPlatformClass(java.lang.String platformName,
                                                          java.lang.String projectName)

ejbInvalidProjectClass

public static ValidationException ejbInvalidProjectClass(java.lang.String projectClassName,
                                                         java.lang.String projectName,
                                                         java.lang.Throwable aThrowable)
PUBLIC: Possible cause: The project class specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable can not be found. Action: Check that the project class given in the exception is on the WebSphere dependent classpath.

ejbInvalidSessionTypeClass

public static ValidationException ejbInvalidSessionTypeClass(java.lang.String sessionType,
                                                             java.lang.String sessionName)
PUBLIC: Possible cause: The session type specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable is not a valid type. Action: Check the session type must be either DatabaseSession or it's subclasses type (including the user-defined session type, which must be extended from DatabaseSession).

ejbMustBeInTransaction

public static ValidationException ejbMustBeInTransaction(java.lang.Object bean)
PUBLIC: Possible cause: An attempt was made to create or remove a been outside of a transaction. Action: Ensure that all removing and creating of beans is done within a transaction.

ejbNoSuchSessionSpecifiedInProperties

public static ValidationException ejbNoSuchSessionSpecifiedInProperties(java.lang.String sessionName,
                                                                        java.lang.Class beanClass)
PUBLIC: Possible cause: The toplink_session_name value on the beans environment variable does not match with one in the TopLink.properties file. Action: Check that the session is in the properties file and check for any possible spelling differences. If necessary, correct the value of toplink_sessoin_name, regenerate thedeployment code, and redeploy.

ejbPrimaryKeyReflectionException

public static ValidationException ejbPrimaryKeyReflectionException(java.lang.Exception exception,
                                                                   java.lang.Object primaryKey,
                                                                   java.lang.Object bean)
PUBLIC: Possible cause: An incorrect primary key object is being used with a bean. Action: Ensure that you are using the correct primary key object for a bean.

ejbSessionTypeClassNotFound

public static ValidationException ejbSessionTypeClassNotFound(java.lang.String sessionType,
                                                              java.lang.String sessionName,
                                                              java.lang.Throwable exception)
PUBLIC: Possible cause: The session type specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable is not found using the default class loader. Action: Check that the session class given in the exception is on the app server classpath.

ejbTopLinkPropertiesNotFound

public static ValidationException ejbTopLinkPropertiesNotFound(java.lang.Exception exception)
PUBLIC: Possible cause: The TopLink.properties file can not be found. Action: Make sure that the location of the TopLink.properties files is on the classpath. If the exception is within VisualAge the TopLink.properties file must be in the project resources for the TopLink project.

errorWhileReadingLicenseFile

public static ValidationException errorWhileReadingLicenseFile(java.lang.String url,
                                                               java.lang.Exception exception)
Deprecated. since TopLink 4.6. There is no direct replacement API.
OBSOLETE: Possible cause: An reading error occurred while reading the license file. Action: Make sure that the license is properly installed in a location that TopLink can find it.

errorInSessionsXML

public static ValidationException errorInSessionsXML(java.lang.String translatedExceptions)
PUBLIC: The session named "name" could not be found in the Sessions.XML

noPropertiesFileFound

public static ValidationException noPropertiesFileFound(java.lang.Exception exception)

noSessionsXMLFound

public static ValidationException noSessionsXMLFound(java.lang.String resourceName)

errorEncryptingPassword

public static ValidationException errorEncryptingPassword(java.lang.Exception exception)

errorDecryptingPassword

public static ValidationException errorDecryptingPassword(java.lang.Exception exception)

invalidEncryptionClass

public static ValidationException invalidEncryptionClass(java.lang.String className,
                                                         java.lang.Throwable throwableError)

noTopLinkEjbJarXMLFound

public static ValidationException noTopLinkEjbJarXMLFound()

existingQueryTypeConflict

public static ValidationException existingQueryTypeConflict(DatabaseQuery newQuery,
                                                            DatabaseQuery existingQuery)

fatalErrorOccurred

public static ValidationException fatalErrorOccurred(java.lang.Exception exception)

fieldLevelLockingNotSupportedWithoutUnitOfWork

public static ValidationException fieldLevelLockingNotSupportedWithoutUnitOfWork()

fileError

public static ValidationException fileError(java.io.IOException exception)

illegalContainerClass

public static ValidationException illegalContainerClass(java.lang.Class aClass)

illegalUseOfMapInDirectCollection

public static ValidationException illegalUseOfMapInDirectCollection(DirectCollectionMapping directCollectionMapping,
                                                                    java.lang.Class aMapClass,
                                                                    java.lang.String keyMethodName)

incorrectLoginInstanceProvided

public static ValidationException incorrectLoginInstanceProvided()

invalidConnector

public static ValidationException invalidConnector(Connector connector)

invalidDataSourceName

public static ValidationException invalidDataSourceName(java.lang.String name,
                                                        java.lang.Exception exception)

invalidFileName

public static ValidationException invalidFileName(java.lang.String fileName)

invalidMergePolicy

public static ValidationException invalidMergePolicy()

javaTypeIsNotAValidDatabaseType

public static ValidationException javaTypeIsNotAValidDatabaseType(java.lang.Class javaClass)

jtsExceptionRaised

public static ValidationException jtsExceptionRaised(java.lang.Exception exception)

loginBeforeAllocatingClientSessions

public static ValidationException loginBeforeAllocatingClientSessions()

logIOError

public static ValidationException logIOError(java.io.IOException exception)

maxSizeLessThanMinSize

public static ValidationException maxSizeLessThanMinSize()

methodNotDeclaredInItemClass

public static ValidationException methodNotDeclaredInItemClass(java.lang.String methodName,
                                                               java.lang.Class aClass)

missingDescriptor

public static ValidationException missingDescriptor(java.lang.String className)

missingMappingForAttribute

public static ValidationException missingMappingForAttribute(Descriptor descriptor,
                                                             java.lang.String attributeName,
                                                             java.lang.String source)
Create a validation exception for the look up of a mapping on a descriptor for an unknown attribute name. The source is a string describing where the lookup was called from.

multipleProjectsSpecifiedInProperties

public static ValidationException multipleProjectsSpecifiedInProperties(java.lang.String bundleName,
                                                                        java.lang.String serverName)
PUBLIC: Possible cause: More than one of projectClass, projectFile, and xmlProjectFile are specified for the same session in the TopLink.properties file. Action: Remove one or more of the entries so that only one of the three is specified in the TopLink.properties file.

noProjectSpecifiedInProperties

public static ValidationException noProjectSpecifiedInProperties(java.lang.String bundleName,
                                                                 java.lang.String serverName)
PUBLIC: Possible cause: The TopLink.properties file does not include any reference to a project class, file, or xml project file for the session specified in the deployment descriptor. Action: Edit the TopLink.properties file to include the desired project.

noSessionRegisteredForClass

public static ValidationException noSessionRegisteredForClass(java.lang.Class domainClass)

noSessionRegisteredForName

public static ValidationException noSessionRegisteredForName(java.lang.String sessionName)

noTablesToCreate

public static ValidationException noTablesToCreate(Project project)

onlyFieldsAreValidKeysForDatabaseRows

public static ValidationException onlyFieldsAreValidKeysForDatabaseRows()

operationNotSupported

public static ValidationException operationNotSupported(java.lang.String methodName)

optimisticLockingNotSupportedWithStoredProcedureGeneration

public static ValidationException optimisticLockingNotSupportedWithStoredProcedureGeneration()

oracleObjectTypeIsNotDefined

public static ValidationException oracleObjectTypeIsNotDefined(java.lang.String typeName)

oracleObjectTypeNameIsNotDefined

public static ValidationException oracleObjectTypeNameIsNotDefined(java.lang.Class type)

oracleVarrayMaximumSizeNotDefined

public static ValidationException oracleVarrayMaximumSizeNotDefined(java.lang.String typeName)

platformClassNotFound

public static ValidationException platformClassNotFound(java.lang.Exception exception,
                                                        java.lang.String className)

poolNameDoesNotExist

public static ValidationException poolNameDoesNotExist(java.lang.String poolName)

poolsMustBeConfiguredBeforeLogin

public static ValidationException poolsMustBeConfiguredBeforeLogin()

projectAmendmentExceptionOccured

public static ValidationException projectAmendmentExceptionOccured(java.lang.Exception exception,
                                                                   java.lang.String amendmentMethod,
                                                                   java.lang.String amendmentClass)
PUBLIC: Possible cause: An amendment method was called but can not be found. Action: Check that the required amendment method exists on the class specified.

projectXMLNotFound

public static ValidationException projectXMLNotFound(java.lang.String projectXMLFile,
                                                     java.lang.Exception exception)

queryArgumentTypeNotFound

public static ValidationException queryArgumentTypeNotFound(DatabaseQuery query,
                                                            java.lang.String argumentName,
                                                            java.lang.String typeAsString,
                                                            java.lang.Exception exception)

sequenceSetupIncorrectly

public static ValidationException sequenceSetupIncorrectly(java.lang.String sequenceName)

sessionAmendmentExceptionOccured

public static ValidationException sessionAmendmentExceptionOccured(java.lang.Exception exception,
                                                                   java.lang.String amendmentMethod,
                                                                   java.lang.String amendmentClass,
                                                                   java.lang.Class[] parameters)
PUBLIC: Possible cause: An amendment method was called but can not be found. Action: Check that the required amendment method exists on the class specified.

startIndexOutOfRange

public static ValidationException startIndexOutOfRange()

stopIndexOutOfRange

public static ValidationException stopIndexOutOfRange()

subSessionsNotDefinedForBroker

public static ValidationException subSessionsNotDefinedForBroker(java.lang.String brokerName)
PUBLIC: Possible cause: The session class specified in the TopLink.properties file for the session specified on the toplink_session_name environment variable can not be found. Action: Check that the session class given in the exception is on the application server dependent classpath.

writeObjectNotAllowedInUnitOfWork

public static ValidationException writeObjectNotAllowedInUnitOfWork()

wrongObjectRegistered

public static ValidationException wrongObjectRegistered(java.lang.Object registered,
                                                        java.lang.Object parent)

cannotCommitUOWAgain

public static ValidationException cannotCommitUOWAgain()

nullCacheKeyFoundOnRemoval

public static ValidationException nullCacheKeyFoundOnRemoval(oracle.toplink.internal.identitymaps.IdentityMap map,
                                                             java.lang.Class clazz)

nullUnderlyingValueHolderValue

public static ValidationException nullUnderlyingValueHolderValue(java.lang.String methodName)

invalidSequencingLogin

public static ValidationException invalidSequencingLogin()

alreadyLoggedIn

public static ValidationException alreadyLoggedIn(java.lang.String sessionName)

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.