oracle.jdbc.driver.OracleSQLException: ORA-22922: nonexistent LOB value (Doc ID 284290.1)

Last updated on JULY 26, 2017

Applies to:

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

Symptoms

When calling a stored procedure via a Java application that involves a LOB results in the following error:

oracle.jdbc.driver.OracleSQLException: ORA-22922: nonexistent LOB value

 

oracle.jdbc.driver.OracleSQLException: ORA-22922: nonexistent LOB value
at oracle.jdbc.driver.T2SConnection.check_error(T2SConnection.java:120)
at oracle.jdbc.driver.T2SConnection.lobLength(T2SConnection.java:2383)
at oracle.jdbc.driver.T2SConnection.length(T2SConnection.java:971)
at oracle.sql.CLOB.length(CLOB.java:252)
at clTest.getMyClob(clTest:63)



The code may work with earlier versions of the JDBC Driver, but fails with the 10g driver and above.

Changes

 

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