Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Error Message Reference

- Previous: Chapter 4 EEADM Error Messages
- Next: Chapter 6 JDO Error Messages

# Chapter 5 `EJB` Error Messages

This chapter describes messages for errors with a `EJB` prefix.

# `EJB` Messages

    EJB5013

`Problem occurred while deserializing stateful bean state.`

Solution:

Check the application classpath to ensure that all classes needed during deserialization are available.

    EJB5017

`An error occurred during the removal of an entity bean. One common cause is when the application throws a system exception from the `ejbRemove` method of an entity bean.`

Solution:

Check the exception stack trace to see if the exception originated from the entity bean implementation class.

    EJB5031

`An error occurred while looking up a Read Only Bean Notifier. The most common cause for this failure is that the string supplied to the `getReadOnlyBeanNotifier` method either does not refer to a read-only bean.`

Solution:

Check the application code that calls this method to make sure the string passed in refers to a valid read-only bean.

    EJB5069

`The `bean's` Home or `LocalHome` does not define a `no-arg` create method.`

Solution:

Check the Home or `LocalHome` interface for the appropriate create method signature. Running the verifier will help identify the error as well.

    EJB5071

`Some problem occurred during the `beforeCompletionphase` of the transaction lifecycle. This error often happens when application code throws a system exception from its `ejbStore` method or if the transaction manager encounters a system exception.`

Solution:

Check the stack trace to see if the exception originated from the `application's ejbStore` method. Also check the resource configuration to ensure that all resource managers involved in the transaction are configured properly and are healthy.

    EJB5090

`Problem during EJB container runtime initialization. See stack trace for more details. Some common causes are global JNDI name conflicts, `classnotfound` errors, and configuration errors for resources needed by the EJB.`

Solution:

If the EJB has a Remote view, check that its `JNDIname` does not clash with any other EJB's JNDI name or any other `globalJNDI` name. Check that all needed classes are available to the EJB. Also ensure that any resources needed by the EJB are available. If the EJB uses a data source make sure the corresponding database is running. If it uses a queue makes sure the physical queue has been created.

    EJB5111

`This error indicates a mismatch in the required method signature rules between a method defined on a [Home, Remote, LocalHome, Local] interface and the corresponding bean implementation class. E.g., this would happen if a create method in a Home interface did not have a matching `ejbCreate` method in the bean class.`

Solution:

Run the verifier tool to check that the methods defined on the bean class are correct with respect to the exposed interface.

    EJB5117

`Error while creating the persistent representation of an EJB timer. This typically means there is some configuration error or runtime problem with the EJB timer service data source.`

Solution:

Double-check the JDBC data source (and its associated connection pool) assigned to the timer-data source element in `domain.xml`. Common causes are that the database is not running, the timer table has not been created within that database, or that the connection pool's JDBC driver URL information is incorrect.

    EJB5128

`A problem occurred while the container was activating a stateful session bean. One possible cause is that the bean code threw a system exception from its `ejbActivate` method.`

Solution:

Check the stack trace to see whether the exception was thrown from the `ejbActivate` method and if so double-check the application code to determine what caused the exception.

    EJB5129

`An error occurred during the `afterCompletion` phase of the transaction lifecycle.`

Solution:

Check stack trace for details of error encountered by EJB container

- Previous: Chapter 4 EEADM Error Messages
- Next: Chapter 6 JDO Error Messages

- © 2010, Oracle Corporation and/or its affiliates