My Oracle Support Banner

java.sql.SQLException: Fail to convert to internal representation When Trying To Create Clob As A Record Using Java.sq.createStruct (Doc ID 2672977.1)

Last updated on JUNE 05, 2023

Applies to:

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

Symptoms


When trying to create a Clob as a record using java.sq.createStruct, the following exception is received:


Caused by: java.sql.SQLException: Fail to convert to internal representation: <name>
at oracle.jdbc.oracore.OracleTypeCLOB.toDatum(OracleTypeCLOB.java:77)
at oracle.jdbc.oracore.OracleType.toDatumInternal(OracleType.java:241)
at oracle.sql.StructDescriptor.toOracleArray(StructDescriptor.java:713)
at oracle.sql.StructDescriptor.toArray(StructDescriptor.java:1193)
at oracle.jdbc.driver.OracleStruct.(OracleStruct.java:154)
at oracle.sql.STRUCT.(STRUCT.java:225)
at oracle.jdbc.driver.PhysicalConnection.createStruct(PhysicalConnection.java:6954)

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


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