I’ve seen this error while trying to access a column value after processing the resultset.
if (rs != null) {
while (rs.next()) {
count = rs.getInt(1);
}
count = rs.getInt(1); //this will throw Exhausted resultset
}
Hope this will help you 🙂
More Related Contents:
- Using setDate in PreparedStatement
- How to enable logging for SQL statements when using JDBC
- Getting output from dbms_output.get_lines using JDBC
- JDBC ResultSet get columns with table alias
- Getting an exception ORA-00942: table or view does not exist – when inserting into an existing table
- How to get the insert ID in JDBC?
- Is java.sql.Timestamp timezone specific?
- java.util.Date vs java.sql.Date
- java.sql.SQLException: – ORA-01000: maximum open cursors exceeded
- How to connect to Oracle using Service Name instead of SID
- How can I get the SQL of a PreparedStatement?
- right syntax to use near ‘?’
- Running a .sql script using MySQL with JDBC
- How to call oracle stored procedure which include user-defined type in java?
- Oracle JDBC intermittent Connection Issue
- Java – Can’t use ResultSet after connection close
- Timezones in SQL DATE vs java.sql.Date
- SQL prepared statement how to select via multiple possible menu selections?
- Class.forName(JDBC_DRIVER) no longer needed?
- MyBatis Batch Insert/Update For Oracle
- Java JDBC – How to connect to Oracle using tnsnames.ora
- How do I use PostgreSQL JSON(B) operators containing a question mark “?” via JDBC
- ojdbc14.jar vs. ojdbc6.jar
- Java – Storing SQL statements in an external file [closed]
- Connection timeout for DriverManager getConnection
- Oracle’s RETURNING INTO usage in Java (JDBC, Prepared Statement)
- MS SQL Exception: Incorrect syntax near ‘@P0’
- PreparedStatement and setTimestamp in oracle jdbc
- Iterating a ResultSet using the JDBC for Oracle takes a lot of time about 16s?
- Database independence through JDBC in java