gpt4 book ai didi

java.sql.SQLException

转载 作者:行者123 更新时间:2023-11-30 04:57:34 24 4
gpt4 key购买 nike

我收到以下错误:

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

我上面的做法是否正确?

谢谢!

最佳答案

尝试打电话

parentMessage.next();

在尝试访问 SQL 之前

关于java.sql.SQLException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8039233/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com