ResultSet rs = MySqlBean.executeQuery(sql);
while(rs.next()){
if((rs.getString(“username”).compareTo(usr)==0)&&(rs.getString(“password”).compareTo(pwd)==0)){
validated = true;
}
rs.close();
}
//ResultSet closes in a while loop with an error Operation not allowed after ResultSet closed
Similar Posts:
- [Solved] Operation not allowed after ResultSet closed
- [Solved] JAVA:java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcodbcDrive
- How to Solve Python socket:[Errno 32] Broken pipe
- How to Solve Error: Scanner class java. Util. NoSuchElementException exception
- Java.sql.sqlexception: an analysis of the causes of exhausted resultset
- Rabbitmq simple configuration and oserror: [errno 9] bad file descriptor problem
- Bt-Panel Type error: cannot concatenate ‘STR’ and ‘nonetype’ objects
- [Solved] Error resolving template “XXX”, template might not exist or might not be accessible by any of the
- IO exception: socket read timed out always appears in Oracle program
- [Solved] Received subscribe acknowledgement with invalid QoS values from the broker