Calling Setnull() For Xmltype Fails With "java.sql.SQLException: Invalid column type: sqlType=2007" (Doc ID 1270192.1)

Last updated on SEPTEMBER 01, 2014

Applies to:

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

Symptoms


With JDBC 11.2.0.2, trying to set an XMLType column to NULL using:
pstmt.setNull(19, oracle.jdbc.OracleTypes.OPAQUE, "SYS.XMLTYPE")

fails with:
Invalid column type: 1111.



Trying to use :
stmt.setNull(16, OracleTypes.OPAQUE)

gives a different error:
java.sql.SQLException: Invalid column type: sqlType=2007

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