| Author |
DSRA9110E: Statement is closed
|
sachin burange
Ranch Hand
Joined: Jun 24, 2008
Posts: 41
|
|
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"; try { //Here it gives error rs_rsweb = stmt_rsweb.executeQuery(sql1); } catch (SQLException sqe) { rs_rsweb = stmt_rsweb.executeQuery(sql1); } }catch(Exception e) {}
|
Regards
Sachin
|
 |
Shailesh Chandra
Ranch Hand
Joined: Aug 13, 2004
Posts: 1076
|
|
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 Shailesh
|
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
|
 |
 |
|
|
subject: DSRA9110E: Statement is closed
|
|
|