The result set used by the statement cannot be used because it is not open or does not exist.
Correct the program logic to avoid using result sets that are not valid.