JDBC-ResultSet is closed in while-Loop

后端 未结 3 581
执笔经年
执笔经年 2020-12-12 07:29

I\'m having a really bad time with a ResultSet, which is closed within a while-Loop for iterating this ResultSet. I have know the exact line in which the ResultSet is closed

3条回答
  •  执笔经年
    2020-12-12 07:56

    Is your Statement a class variable and you are using the same for both the queries? Is yes, it's wrong. You can have only one ResultSet per Statement.

    See the java docs.

提交回复
热议问题