我收到以下错误:
java.sql.SQLException: Exhausted Resultset
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.ScrollableResultSet.getOracleObject(ScrollableResultSet.java:655)
at oracle.jdbc.driver.ScrollableResultSet.getFloat(ScrollableResultSet.java:828)
at oracle.jdbc.driver.OracleResultSet.getFloat(OracleResultSet.java:1552)
at website.web.InboxReader.NormalizeImp(InboxReader.java:625)
at website.web.InboxReader.accessGmail(InboxReader.java:122)
at website.web.InboxReader.main(InboxReader.java:51)
在以下几行之后:
ResultSet parentMessage = parentstmt.executeQuery("SELECT SUM(IMPORTANCE) AS IMPAVG FROM MAIL");
avgsum = parentMessage.getFloat("IMPAVG");
我没有正确地做到这一点吗?
谢谢!
答案 0 :(得分:2)
尝试致电
parentMessage.next();
尝试访问SQL之前