My Oracle Support Banner

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 DECEMBER 20, 2019

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


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(
at oracle.jms.AQjmsProducer.enqueue(
at oracle.jms.AQjmsProducer.send(
at oracle.jms.AQjmsProducer.send(

database characterset is AL32UTF8



To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.