Getting "Message Bean Resources Exceeded " Error In Oracle GlassFish Server

(Doc ID 1378002.1)

Last updated on APRIL 04, 2017

Applies to:

Oracle GlassFish Server - Version: 2.1.1 and later   [Release: 2.1 and later ]
Oracle GlassFish Server - Version: 2.1 to 3.1   [Release: 2.1 to 3.1]
Information in this document applies to any platform.

Symptoms

Any time a number of messages are sent to a Message Driven Bean (MDB) the GlassFish Server will throw this exception many times and then stop processing messages for a while.  Then it will start processing more messages and get the same error again.

INFO: [14/11/11 14:41:29:528 EST.1] p: thread-pool-1; w: 5 MQJCA4004:Message delivery to an MDB failed. See the linked exception for details.
INFO:
INFO: javax.resource.spi.UnavailableException
INFO:
INFO:   at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.createEndpoint(ConnectorMessageBeanClient.java:408)
INFO:
INFO:   at com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:150)
INFO:
INFO:   at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:77)
INFO:
INFO:   at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
INFO:
INFO: Caused by: com.sun.ejb.ResourcesExceededException: Message Bean Resources exceeded for message bean Keypunch:MsgFormDataBean
INFO:
INFO:   at com.sun.ejb.containers.MessageBeanContainer.createMessageBeanListener(MessageBeanContainer.java:619)
INFO:
INFO:   at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.createEndpoint(ConnectorMessageBeanClient.java:371)
INFO:
INFO:   ... 3 more
INFO:
FINE: exceeded max of 2
com.sun.ejb.ResourcesExceededException: Message Bean Resources exceeded for message bean Keypunch:MsgFormDataBean
        at com.sun.ejb.containers.MessageBeanContainer.createMessageBeanListener(MessageBeanContainer.java:619)
        at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.createEndpoint(ConnectorMessageBeanClient.java:371)
        at com.ibm.mq.connector.inbound.WorkImpl.run(WorkImpl.java:150)
        at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:77)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms