My Oracle Support Banner

After upgrading to WebLogic Server, Certain Functions that Read CLOB Data Throw: "java.sql.SQLException: Connection has already been closed" error (Doc ID 2693946.1)

Last updated on AUGUST 25, 2021

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


After upgrading to Weblogic, certain functions (for example length() and getCharacterStream()) that read CLOB data are throwing java.sql.SQLException: Connection has already been closed errors.

Stack Trace that is seen: 

Disabling "Wrap Data Types" for the datasource fixes the error, but what has changed after upgrading the application from WLS to WLS


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.