users@glassfish.java.net

"message-driven bean invocation closed by container" error

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Jan 2009 16:31:18 PST

Has anyone seen an exception like this:

[#|2009-01-21T14:25:00.208-0700|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=23;_ThreadName=p: thread-pool-1; w: 3;_RequestID=538e0443-1f97-416a-8f39-d282887801d4;|
javax.ejb.EJBException: RxArchitect:PrecodingProcessorMDBean: message-driven bean invocation closed by container
        at com.sun.ejb.containers.MessageBeanContainer.beforeMessageDelivery(MessageBeanContainer.java:1001)
        at com.sun.ejb.containers.MessageBeanListenerImpl.beforeMessageDelivery(MessageBeanListenerImpl.java:70)
        at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:135)
        at $Proxy156.beforeDelivery(Unknown Source)
        at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:245)
        at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
|#]

The problem occurs when I try to invoke a message-driven bean (JMS). It appears that everything happens okay in my code when invoking the message but then it gets caught up in the com.sun.ejb.containers.MessageBeanContainer#beforeMessageDelivery() method. I looked at that method and this is the line of code that causes this error to be thrown:
if (containerState != CONTAINER_STARTED) { // i.e. no invocation

I tried googling it and was unable to come up with anything. Yesterday I was able to replicate this error pretty consistently (about 90% of the time). Then I rebooted my server and now I cannot replicate it at all. We have not changed this code for awhile and so I'm wondering if there might be a bug with the app server. Any ideas?

I am using Sun Java System Application Server 9.1 (build b58g-fcs) with Toplink Essentials.
[Message sent by forum member 'douglasi' (douglasi)]

http://forums.java.net/jive/thread.jspa?messageID=327732