Programmers learn & share
0 votes

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)   | 51 views

1 Answer

0 votes

Solution :

I think after while( 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 (36.1k points)  
2,218 questions
2,683 answers
241 users