My Oracle Support Banner

Occasional, Intermittent "java.sql.SQLException: Closed Statement" When Connection Shared Between Threads (Doc ID 784343.1)

Last updated on MAY 24, 2022

Applies to:

JDBC - Version to [Release 11.1 to 12c]
Information in this document applies to any platform.


A multi-threaded, standalone Java application runs in a version 1.6 JVM and connects to a database using JDBC/Thin ojdbc6.jar. This is also applicable to later versions.

Intermittently, queries from a particular method fail with:

Although the Connection object is shared between threads, the Statement object is specific to one thread.


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.