Consider the code:
PreparedStatement ps = null; ResultSet rs = null; try { ps = conn.createStatement(myQueryString); rs = ps.executeQuery(); // process
focus finally clause,
finally { try { rs.close(); ps.close(); } catch (Exception e) { // Do something } }
I think you have to modify 2 points.
First, use try & catch again in fainlly clause.
Second, do rs.close() before doing ps.close().
fly1997@naver.com