My Oracle Support Banner

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 and later
Information in this document applies to any platform.


With JDBC, 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


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

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