我们有一个使用 Oracle 在 JBOSS 上运行的 Java 应用程序。我们还使用框架 seam 和 hibernate。
当我们的应用程序启动并运行生产时,在应用程序启动几个小时后,我们会遇到如下问题:
crms_log_27_may.txt:10:47:09,170 ERROR [STDERR] java.sql.SQLException: Exhausted Resultset
crms_log_27_may.txt:10:47:09,170 ERROR [STDERR] java.sql.SQLException: Exhausted Resultset
crms_log_27_may.txt:10:47:09,170 ERROR [STDERR] java.sql.SQLException: Exhausted Resultset
crms_log_27_may.txt:10:22:18,135 ERROR [STDERR] Caused by: java.sql.SQLException: Closed Connection
crms_log_27_may.txt:10:24:10,231 ERROR [STDERR] Caused by: java.sql.SQLException: Closed Connection
我检查了所有代码,发现我rs.next()
正确使用和关闭了对象。