SQLException: Operation not allowed after ResultSet closed

前端 未结 2 1705
遇见更好的自我
遇见更好的自我 2021-01-24 20:29

I\'m trying to execute the getPendingSalesOrderIDs() method which calls upon method selectInAsending(...).

But this shows a SQLException saying java.sql.SQLException:

2条回答
  •  天命终不由人
    2021-01-24 20:54

    Yes, the problem is with the db.endSelect() call.

    Just return the resultset, and then be sure to call rs.close() once you are finished. This will take care of cleaning things up.

提交回复
热议问题