1

我收到以下错误:

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");

我没有正确执行上述操作吗?

谢谢!

4

1 回答 1

2

试着打电话

parentMessage.next();

在尝试访问 SQL 之前

于 2011-11-07T16:21:26.860 回答