Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.sql.SQLException: Closed Statement: getMetaData

jnl1-JavaNetOct 2 2009 — edited Dec 7 2009
hi all...

I'm porting an application to Oracle 11g, from Oracle 9.2. The current application uses Oracle 9, and ojdbc14 jar, JDK 1.4. The migrated app will use Oracle 11g, ojdbc6 and JDK 1.6. During our testing we've noticed this error:

java.sql.SQLException: Closed Statement: getMetaData

This seems to come up after getting a resultSet from a stored proc and making the call:

resultSet.getColumnCount();

Does anyone have an idea on what would cause this ? The stored proc and the code accessing the DB hasn't changed. Just the Oracle version, and driver jars.

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2010
Added on Oct 2 2009
1 comment
3,602 views