Sun Java System Application Server 8.1 Enterprise Edition 2005Q1 Error Message Reference |
Chapter 9
MDB Error MessagesThis chapter describes messages for errors with a MDB prefix.
MDB00017Message
An error occurred during the message-driven beancontainer initialization at runtime.
Cause
The most common cause for this is that the physical resource(e.g. Queue) from which the message-driven bean is consuming either does not exist or has been configured incorrectly. Another common error is that the message-driven bean implementation class does not correctly implement the required javax.ejb.MessageBean or MessageListener interfaces.
Solutions/Workarounds
Double-check that the JNDI name of the message-driven bean's resource in sun-ejb-jar.xml is correct. It is also useful to run the verifier to check that the code requirements for the message-driven bean class have been fulfilled.
MDB00048Message
An error occurred during the pre-invocation processing before a message-driven bean MessageListener method is called.
Cause
This is often caused by some transaction-related errors.
Solutions/Workarounds
Double-check the transaction configuration for the message-driven bean and consult stack trace for additional details.
MDB00050Message
An error occurred during the lifecycle initialization of a message-driven bean instance.
Cause
This typically means a system exception was thrown from the bean code during the execution of the no-arg constructor, the setMessageDrivenContext method, or the ejbCreate method. Common causes are failed naming service lookups coding errors, or ClassNotFound errors.
Solutions/Workarounds
Check the stack trace to see which method threw the exception. If the error was caused by a NamingException, double-check the environment configuration (ejb-refs, resource-refs, etc.) in the deployment descriptor against the coded names. It would also be useful to run the verifier.
MDB00051Message
An error occurred while the container was destroying an instance of a message-driven bean.
Cause
The most common cause is that a message-driven bean class threw a system exception from its ejbRemove method.
Solutions/Workarounds
Check the message driven bean's ejbRemove implementation to determine what would result in an exception. Also consult the stack trace for more information.
MDB00052Message
An error occurred while the container was enabling the message flow into a message-driven bean.
Cause
This is an internal error that typically means there is a problem with the messaging system from which the message-driven bean is consuming.
Solutions/Workarounds
Check the stack trace for more details.