IO Protocol Violation Error When Fetching Long Column (Doc ID 1313872.1)

Last updated on JUNE 02, 2017

Applies to:

JDBC - Version: 11.2.0.1 to 11.2.0.1 - Release: 11.2 to 11.2
Information in this document applies to any platform.

Symptoms

The application is throwing the following stack error when getting a long column:

java.sql.SQLRecoverableException: IO Error: Protocol violation
at oracle.jdbc.driver.OracleStatement.freeLine(OracleStatement.java:3951)
at oracle.jdbc.driver.PhysicalConnection.needLineUnchecked(PhysicalConnection.java:5155)
at oracle.jdbc.driver.PhysicalConnection.needLine(PhysicalConnection.java:5143)
at oracle.jdbc.driver.OracleStatement.hardClose(OracleStatement.java:1658)
at oracle.jdbc.driver.OracleStatement.hardClose(OracleStatement.java:1622)
at oracle.jdbc.driver.OraclePreparedStatement.hardClose(OraclePreparedStatement.java:10315)
at oracle.jdbc.driver.OracleStatement.closeOrCache(OracleStatement.java:1612)
at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:1541)
at oracle.jdbc.driver.OracleStatementWrapper.close(OracleStatementWrapper.java:77)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.close(OraclePreparedStatementWrapper.java:78)
...
Caused by: java.io.IOException: Protocol violation
at oracle.jdbc.driver.OracleInputStream.needBytes(OracleInputStream.java:154)
at oracle.jdbc.driver.OracleInputStream.close(OracleInputStream.java:211)
at oracle.jdbc.driver.OracleStatement.freeLine(OracleStatement.java:3945)
... 10 more
Caused by: java.sql.SQLException: Protocol violation
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
at oracle.jdbc.driver.T4CTTIfun.resumeReceive(T4CTTIfun.java:254)
at oracle.jdbc.driver.T4C8Oall.continueReadRow(T4C8Oall.java:845)
at oracle.jdbc.driver.T4CPreparedStatement.continueReadRow(T4CPreparedStatement.java:1116)
at oracle.jdbc.driver.T4CLongAccessor.fetchNextColumns(T4CLongAccessor.java:237)
at oracle.jdbc.driver.OracleInputStream.needBytes(OracleInputStream.java:142)
... 12 more

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