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) {}