My Oracle Support Banner

Using ResultSet.next() Throws "java.sql.SQLException: Closed Statement: Next" When Accessing Refcursor (Doc ID 736490.1)

Last updated on OCTOBER 24, 2022

Applies to:

JDBC - Version 10.2.0.4 to 11.1.0.6 [Release 10.2 to 11.1]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

Existing JDBC application that calls a PL/SQL procedure that returns a ref cursor now receives
"java.sql.SQLException: Closed Statement: next" when using a version 10.2.0.4 or 11g JDBC OCI driver.

Sample logic:

10.2.0.4 Error Stack:

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
References


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