File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes DSRA9110E: Statement is closed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DSRA9110E: Statement is closed" Watch "DSRA9110E: Statement is closed" New topic

DSRA9110E: Statement is closed

sachin burange
Ranch Hand

Joined: Jun 24, 2008
Posts: 43
While running the job this error occurs randomely.
I am not able to understand why it behves randomely.
connection object is taken from connction pool.

try {
conn_rsweb = rsUtilDBConnections.getRsWebConnection();
stmt_rsweb = conn_rsweb.createStatement();
String sql1 = "query";
//Here it gives error
rs_rsweb = stmt_rsweb.executeQuery(sql1);
catch (SQLException sqe)
rs_rsweb = stmt_rsweb.executeQuery(sql1);
}catch(Exception e) {}

Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1082

What is frequencey of your job ?

Since you have not posted complete code I just want to know if statement is a class level variable ? where are you closing resultset/statement once your task is complete


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
I agree. Here's the link:
subject: DSRA9110E: Statement is closed
It's not a secret anymore!