My Oracle Support Banner

When Processing ESB Instances Get Error: 'JMS-204: An error occurred in the AQ JNI layer' (Doc ID 955571.1)

Last updated on AUGUST 15, 2018

Applies to:

Oracle ESB - Version and later
Information in this document applies to any platform.
***Checked for relevance on 05-Oct-2011***


Have a typical ESB cluster setup where the ESB topics/queues (e.g. ESB_MONITOR) are configured for Database Peristence, i.e. using AQ based Topics, following this document:

Oracle� Application Server
Enterprise Deployment Guide
10g Release 3 (
June 2008

Section: 3.23 Configuring JNDIs for the Topic and Topic Connection Factory

After running a successful ESB flow that creates several instances (ESB Instance Tracking is turned on) there are error messages seen in the ESB Runtime Container logfile at $OH/j2ee/<ESB Runtime container>/log/*_*_*_group_*/oc4j/log.xml:

    <MSG_TEXT>Could not send the activity messages. Current internal buffer size is "18"
oracle.tip.esb.server.dispatch.QueueHandlerException: Error publishing jms message

    at oracle.tip.esb.server.dispatch.JMSEnqueuer.enqueue(
    at oracle.tip.esb.monitor.agent.ActivityMessageBatcher.sendXML(
    at oracle.tip.esb.monitor.agent.ActivityMessageBatcher.sendMessages(
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$
Caused by: oracle.jms.AQjmsException: JMS-204: An error occurred in the AQ JNI layer
    at oracle.jms.AQjmsError.throwEx(
    at oracle.jms.AQjmsProducer.enqueue(
    at oracle.jms.AQjmsProducer.publish(
    at oracle.jms.AQjmsProducer.publish(
    at oracle.j2ee.ra.jms.generic.TopicPublisherWrapper.publish(
    at oracle.tip.esb.server.dispatch.JMSEnqueuer.enqueue(
    ... 8 more


To view full details, 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 a vibrant support community of peers and Oracle experts.