org.springframework.transaction.CannotCreateTransactionException

wangxi得 发布于 2014/10/16 21:48
阅读 6K+
收藏 0

请问这个异常是连接数多大造成的吗?怎么改配置(连接池配置还是mysql配置)?

 org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException
        at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:240)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127)
        at com.cap.socket.client.SArrangeException.advException(SArrangeException.java:38)
        at com.cap.socket.client.SArrangeException.run(SArrangeException.java:27)
        at com.cap.socket.RequestProcessor.handle_request(RequestProcessor.java:202)
        at com.cap.socket.RequestProcessor.run(RequestProcessor.java:326)
Caused by: com.alibaba.druid.pool.GetConnectionTimeoutException
        at com.alibaba.druid.pool.DruidDataSource.pollLast(DruidDataSource.java:815)
        at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:501)
        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:406)
        at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:385)
        at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:202)
        ... 6 more21:32:21,028  INFO RequestProcessor:119 - request:1011405042387;1405042372;1405042337;1403040013;1405041759;1405041760;1405042532;1403040069;1405041294;1405042428;1403040025;1405042447;1403040042#101.82.71.221;101.82.60.133;101.82.145.186;101.84.185.11;101.82.84.127;101.89.158.37;101.83.231.209;101.82.125.29;101.89.162.120;101.82.171.134;101.82.166.241;114.81.199.109;101.82.243.130#4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20;4.1.1.20#14092601;14092601;14092601;14092601;14092601;14092601;14092601;14092601;14092601;14092601;14092601;14092601;14092601$


加载中
0
Ask_lve
Ask_lve

您好,我也遇到了这样的问题,请问你是如何解决的及如何避免再次遇到,能说说吗?

返回顶部
顶部