ORA-17018
Invalid cursor.
Cause
An attempt is being made to set an invalid result set on a statement.
Action
Ensure that the result set is an instance of OracleResultSet and that the result set and the statement belong to the same connection.