jfinal多线程环境使用druid连接池老是报错

daifu_v1.0 | com.jfinal.plugin.activerecord.ActiveRecordException: com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Thu Nov 02 17:49:26 CST 2017

daifu_v1.0 | at com.jfinal.plugin.activerecord.Model.save(Model.java:452)

daifu_v1.0 | at com.axinfu.axindf.ext.log.sys.TaskSysLogOut.logDatabase(TaskSysLogOut.java:191)

daifu_v1.0 | at com.axinfu.axindf.ext.log.sys.TaskSysLogOut.run(TaskSysLogOut.java:60)

daifu_v1.0 | Caused by: com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Thu Nov 02 17:49:26 CST 2017

daifu_v1.0 | at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1340)

daifu_v1.0 | at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1241)

daifu_v1.0 | at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)

daifu_v1.0 | at com.alibaba.druid.filter.logging.LogFilter.dataSource_getConnection(LogFilter.java:874)

daifu_v1.0 | at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)

daifu_v1.0 | at com.alibaba.druid.filter.FilterAdapter.dataSource_getConnection(FilterAdapter.java:2745)

daifu_v1.0 | at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)

daifu_v1.0 | at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1219)


评论区

青峰大辉

2018-04-18 18:07

今天出现了这个错误,想请假一下老大@JFinal

eddiechow

2018-06-19 23:26

jounzhang

2020-03-04 16:15

该问题为druid的一个bug,已反馈给druid了,后续版本已修复,下载最新的druid即可

热门反馈

扫码入社