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

Last updated on NOVEMBER 02, 2016

Applies to:

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


Symptoms

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 (10.1.3.3.0)
E10294-02
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:

<MESSAGE>
  <HEADER>
    <TSTZ_ORIGINATING>2009-10-14T09:38:35.813-04:30</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>test.oracle.com</HOST_ID>
    <HOST_NWADDR>abc.abc.abc.abc</HOST_NWADDR>
    <MODULE_ID>esb.monitor.agent</MODULE_ID>
    <THREAD_ID>114</THREAD_ID>
    <USER_ID>oracle</USER_ID>
  </HEADER>
  <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>10.1.1.102:21607:1255528950728:103</UNIQUE_ID><SEQ>721</SEQ></EXEC_CONTEXT_ID>
  </CORRELATION_DATA>
  <PAYLOAD>
    <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(JMSEnqueuer.java:293)
    at oracle.tip.esb.monitor.agent.ActivityMessageBatcher.sendXML(ActivityMessageBatcher.java:426)
    at oracle.tip.esb.monitor.agent.ActivityMessageBatcher.sendMessages(ActivityMessageBatcher.java:360)
    at oracle.tip.esb.monitor.agent.ActivityMessageBatcher.run(ActivityMessageBatcher.java:343)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
    at java.lang.Thread.run(Thread.java:810)
Caused by: oracle.jms.AQjmsException: JMS-204: An error occurred in the AQ JNI layer
    at oracle.jms.AQjmsError.throwEx(AQjmsError.java:308)
    at oracle.jms.AQjmsProducer.enqueue(AQjmsProducer.java:1190)
    at oracle.jms.AQjmsProducer.publish(AQjmsProducer.java:1407)
    at oracle.jms.AQjmsProducer.publish(AQjmsProducer.java:1254)
    at oracle.j2ee.ra.jms.generic.TopicPublisherWrapper.publish(TopicPublisherWrapper.java:65)
    at oracle.tip.esb.server.dispatch.JMSEnqueuer.enqueue(JMSEnqueuer.java:290)
    ... 8 more
</MSG_TEXT>
  </PAYLOAD>
</MESSAGE>



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