• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
10 views

Problem :

I am getting bellow error while trying to execute  JDBC code
java.sql.sqlexception: operation not allowed after resultset closed
 
by (6.9k points)  

1 Answer

0 votes

Solution :

I think after while(Rs2.next()) you are trying to access something from Rs1. 

But it is already closed.

As you are re executing the statement to get Rs2 from it. Since you didn't close it, I think it is used again.

Further Readings :

by (33.3k points)  
...