My Oracle Support Banner

JMS-120: Dequeue Failed Due To java.lang.NegativeArraySizeException When Dequeueing Using JDBC with AQJMS (Doc ID 2609283.1)

Last updated on NOVEMBER 15, 2019

Applies to:

JDBC - Version 12.2.0.0.0 and later
Information in this document applies to any platform.

Symptoms

When calling Dequeue from stored procedure from a java program, the dequeue works successfully.  However, it fails when using AQJMS Dequeue with JDBC thin 12.2.0.1.

oracle.jms.AQjmsException: JMS-120: Dequeue failed
       at oracle.jms.AQjmsError.throwEx(AQjmsError.java:336)
       at oracle.jms.AQjmsConsumer.jdbcDequeue(AQjmsConsumer.java:1920)
       at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:1358)
       at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:1278)
       at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:1256)
       at oracle.jms.AQjmsConsumer.receive(AQjmsConsumer.java:1042)
       ...
Caused by: java.lang.NegativeArraySizeException
       at oracle.jdbc.driver.T4Ctoh.unmarshal(T4Ctoh.java:183)
       at oracle.jdbc.driver.T4Caqdq.readRPA(T4Caqdq.java:431)
       at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:412)
       at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
       at oracle.jdbc.driver.T4Caqdq.doOAQDQ(T4Caqdq.java:178)
       at oracle.jdbc.driver.T4CConnection.doDequeue(T4CConnection.java:5048)
       at oracle.jdbc.driver.PhysicalConnection.dequeue(PhysicalConnection.java:10132)
       at oracle.jdbc.driver.PhysicalConnection.dequeue(PhysicalConnection.java:10184)
       at oracle.jms.AQjmsConsumer.jdbcConnectionDequeueCheck25242(AQjmsConsumer.java:2369)
       at oracle.jms.AQmsConsumer.jdbcDequeue(AQjmsConsumer.java:1551)
       ... 5 more

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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