Skip Headers

# Entity Manager Setup Exceptions (28001 – 28007)

Previous

Next

`EntityManagerSetupException` is raised when an error is encountered during the process of setting up an entity manager.

Format

    EXCEPTION [TOPLINK – error code]: Exception name
    EXCEPTION DESCRIPTION: Message

Entity Manager Setup Exception

    EXCEPTION [TOPLINK – 28001]: oracle.toplink.exceptions.EntityManagerSetupException
    EXCEPTION DESCRIPTION: Error while trying to create session.

28001: SESSIONS_XML_VALIDATION_EXCEPTION
  Cause: A `ValidationException` was thrown while trying to create a session `sessionName`.
  Action: Ensure that your `fileName` file is on the classpath. If it is on the classpath, ensure that this file contains the session sessionName.

28002: WRONG_SESSION_TYPE_EXCEPTION
  Cause: Failure to load a `ServerSession` sessionName from `sourceName`.
  Action: Ensure that the server session's type is correct.

28003: MISSING_SERVER_PLATFORM_EXCEPTION
  Cause: Server platform specification was not found: TopLink has loaded a session sessionName from sourceName, but this session either does not have a server platform specified, or specifies a server platform that does not use an external transaction controller.
  Action: If you plan to use JTA, specify an appropriate server platform.

28004: ERROR_IN_SETUP_OF_EM
  Cause: Error while setting up an `oracle.toplink.sessions.entitymanager.EntityManagerFactory`.
  Action: Ensure the correct setup of the `EntityManagerFactory`: `initializeFromMain` method of the `EntityContainer` should return `true`.

28005: EXCEPTION_IN_SETUP_OF_EM
  Cause: Error during the setup of `oracle.toplink.sessions.entitymanager.EntityManagerFactory`.
  Action: See the generated exception for the root cause.

28006: CLASS_NOT_FOUND_FOR_PROPERTY
  Cause: Failure to find the class `ClassName` specified in the property `propertyName`.
  Action: Ensure that the class exists and is on the classpath.

28007: FAILED_TO_INSTANTIATE_SERVER_PLATFORM
  Cause: Failure to instantiate a server platform of type `ServerPlatformType` specified in the property `propertyName`.
  Action: See the generated exception for the root cause.