java数据库连接Druidsql失败_Druid数据库连接池异常connection holder is null
Druid数据库连接池异常connection holder is null
具体如下:### Error updating database. Cause: java.sql.SQLException: connection holder is null
### Cause: java.sql.SQLException: connection holder is null
; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; connection holder is null; nested exception is java.sql.SQLException: connection holder is null
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:371)
at com.sun.proxy.$Proxy15.insert(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:240)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
at com.sun.proxy.$Proxy28.insertList(Unknown Source)
at com.ajia.data.synchronize.service.score.impl.QuestScoreServiceImpl.insertList(QuestScoreServiceImpl.java:59)
at com.ajia.data.synchronize.service.score.impl.QuestScoreServiceImpl$$FastClassBySpringCGLIB$$18f74d0e.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)
connection holder 这肯定是连接池的异常,就看看连接池的配置。
#超过时间限制是否回收
removeAbandoned=true
#超过时间限制多长
removeAbandonedTimeout=300
解决方法一
我的任务时间比较长,而这个又这么短,就设置长一点,设置成一小时#超过时间限制多长
removeAbandonedTimeout=3600
解决方法二
直接设置成是不用超时回收连接removeAbandoned=false
java数据库连接Druidsql失败_Druid数据库连接池异常connection holder is null相关推荐
- 关于druid数据连接池抛出的 connection holder is null 异常
大概跑了三十分钟~~~这配置~~~这程序~~~ 然后华丽丽的报异常了~~~ 具体异常是这样的, ? 1 2 3 4 5 6 7 8 9 10 11 12 13 DEBUG: (BaseJdbcLogg ...
- 解决mysql中数据库连接connection holder is null的问题
一.问题 频繁查询或者更新数据库时,出现以下问题报错: Cause: java.sql.SQLException: connection holder is null 二.解决方法 在applicat ...
- java holder_java.sql.SQLException: connection holder is null
错误信息 2017-11-15 14:53:16.931 [ ] ERROR com.hzcf.flagship.web.AssetPlanController 126 : ### Error upd ...
- 线上问题:java.sql.SQLException: connection holder is null
1 场景复现 定时更新MySQL数据到缓存中:Map存储. A表和B表均在一个定时任务中查询数据,A表先查,B表后查, B表查询时,出现java.sql.SQLException: connectio ...
- Druid java.sql.SQLException: connection holder is null
问题 java.sql.SQLException: connection holder is null 项目使用了Druid,执行过程中出现了这个错误. 解决过程 错误的意思是没有获取到连接,怀疑是同 ...
- connection holder is null 异常
文章转自:http://my.oschina.net/haogrgr/blog/224010 非常感谢原作者,思路非常清晰 今天在一台配置很低的机器上运行批量更新的程序~~~ 大概跑了三十分钟~~~ ...
- java.sql.SQLException: connection holder is null
解决方案一: <!-- 是否自动回收超时连接 --> <property name="removeAbandoned" value="true" ...
- 开发中遇到的Cause: java.sql.SQLException: connection holder is null的异常
异常的出现是属于获取连接超时,从而找不到持有者. 项目中的配置体现: <property name="removeAbandoned" value="true&qu ...
- Caused by: java.sql.SQLException: connection holder is null
今天在改同事代码的时候,发现这个错误,仔细看代码发现他调对方接口取数据的时候,一次性把5万多条数据查了出来放到一个list,然后又一次型去处理这些数据,而中间的业务代码处理时间又恨长且比较慢,导致的数 ...
最新文章
- 暑期集训2:ACM基础算法 练习题A:CF-1008C
- 小程序上线7天,罗胖带着1000万用户跑了……
- 【Python基础】解决matplotlib文字标签遮挡问题
- TCP协议可靠性保证(确认应答机制,超时重传机制,流量控制,拥塞窗口)
- SQL登录 18470 18452 错误
- [财务知识] debt debit credit 的区别于联系
- python用什么处理文件_利用Python如何快速处理文件
- “天玑1000Plus”加持iQOO Z1评测:突破价位的极致体验
- 禁用了ssh的密码认证方式导致无法登陆
- activiti 工作流_JAVA-工作流引擎-activiti-Tasks介绍
- 列表生成式的复习以及生成器的练习, 杨辉三角实例(非常巧妙)
- 2019互联网行业程序员工资大数据报告
- ElasticSearch 中文同义词实现
- Linux下Teamviewer安装、设置及开机启动
- Git详解之一 Git起步
- 【超快捷】Windows系统自带的快捷键合集
- 解读物联网八大环节供应链(附13大电子行业产业链全景图)
- 谈谈一些感触——自我反思和总结
- 【vs quick】winmm.lib 解决 timeBeginPeriod 找不到
- ​stp文件转iges