My Oracle Support Banner

Batch Job Fails With Java.lang.NegativeArraySizeException (Doc ID 2801460.1)

Last updated on AUGUST 25, 2021

Applies to:

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

Symptoms


A batch Job with the following exception even after applying <Patch:27653480> per instructions in <Document:2437960.1> Java.lang.NegativeArraySizeException During Communication Via JDBC  :

Exception in thread "main" java.lang.NegativeArraySizeException
       at oracle.net.ano.CryptoNIONSDataChannel.readDataFromSocketChannel(Unknown Source)
       at oracle.jdbc.driver.T4CMAREngineNIO.prepareForReading(T4CMAREngineNIO.java:98)
       at oracle.jdbc.driver.T4CMAREngineNIO.unmarshalUB1(T4CMAREngineNIO.java:534)
       at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:485)
       at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252)
       at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612)
       at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:226)
       at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:59)
       at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:747)
       at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:904)
       at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1082)
       at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3780)
       at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1343)
       at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3822)
       at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1165)

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.