My Oracle Support Banner

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

Last updated on SEPTEMBER 20, 2019

Applies to:

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

Symptoms

A multi-threaded, standalone Java application runs in a version 1.6 JVM and connects to a database using JDBC/Thin 11.1.0.7 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.

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.