When Try to Enqueue Messages to AQ Using JMS: JMS-204: An Error Occurred in the AQ JNI Layer (Doc ID 1478667.1)

Last updated on NOVEMBER 05, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.

Goal

When the application is trying to publish messages on the Oracle AQ, application may get intermittent following exception

"Unable to send message." ERROR IN TRYING TO SEND BYTES MESSAGE TO Queue
Caused by:
oracle.jms.AQjmsException: JMS-204: An error occurred in the AQ JNI layer
at oracle.jms.AQjmsError.throwEx(AQjmsError.java:311)
at oracle.jms.AQjmsProducer.enqueue(AQjmsProducer.java:1323)
at oracle.jms.AQjmsProducer.send(AQjmsProducer.java:692)
at oracle.jms.AQjmsProducer.send(AQjmsProducer.java:533)
at com.stc.common.collabService.JMSQueueModel.sendMessage(JMSQueueModel.java:188)
at com.stc.common.collabService.JMSClientWrapper.putData(JMSClientWrapper.java:164)

database characterset is AL32UTF8

 

Solution

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