I\'m trying to execute the getPendingSalesOrderIDs() method which calls upon method selectInAsending(...).
But this shows a SQLException saying java.sql.SQLException:
Yes, the problem is with the db.endSelect() call.
db.endSelect()
Just return the resultset, and then be sure to call rs.close() once you are finished. This will take care of cleaning things up.
rs.close()