-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operation not allowed after ResultSet closed #1656
Comments
为什么要在关闭的ResultSet对象上做操作? |
我没有手动关闭,我一直在next()取数据,取着取着就被关闭了. |
我也遇到了相同的情况,一次获取大量数据(大约一分钟后返回),时间长了就报相同的错。最后发现应该是链接超时的问题 |
dataSource.setRemoveAbandoned(true); |
请问最后如何解决的 |
@lione0 试试这个 |
使用mysql, 到底怎么解决的啊? |
我在用jdbc对数据库进行dump,可以理解就是
select * from table1 limit 100 where id > xxx
,不断的从数据库批量取数据连接池管理用的druid(这也许是个错),然后不知道为什么,在线上跑一段时间就会报
刚开始怀疑是mysql JDBC driver的问题
查了很多资料,最后发现一个人跟我情况类似,下面有个回答说,你是不是用了dbcp?
我后来想想,我也是用了druid来做连接池.
然后我后来弃用了druid,错误果然就没有报了.
所以我怀疑,druid是不是在我不期望的情况下关闭了我的数据库连接?
以下是我的druid配置
The text was updated successfully, but these errors were encountered: