数据库连接池报错

Blade 未结 1 3197
没有如果
没有如果 2019-06-30 17:10

Caused by: org.apache.ibatis.exceptions.PersistenceException: 

### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 20, maxActive 20, creating 0, runningSqlCount 1 : INSERT INTO onebucket_washer_coupon_record (employee_id, customer_id, coupon_id, coupon_type, washer_type, consume_time, seriasl_number) VALUES (?, ?, ?, ?, ?, ?, ?)

runningSqlCount 2 : INSERT INTO onebucket_gas_consume (customer_id, employee_id, consume_money, oil_type, consumer_address, seriasl_number, coupon_type, coupon_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)

runningSqlCount 10 : UPDATE onebucket_topup_summary SET handover_id = ?, handover_num = ? WHERE is_delete = 0 AND employee_id = ?

runningSqlCount 6 : UPDATE onebucket_exchange_handover SET financial_id = ?, financial_name = ?, financial_sure_time = ? WHERE id = ? AND handover_status = 0

### The error may exist in org/springblade/employee/mapper/MemberMapper.java (best guess)

### The error may involve org.springblade.employee.mapper.MemberMapper.selectOne

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 20, maxActive 20, creating 0, runningSqlCount 1 : INSERT INTO onebucket_washer_coupon_record (employee_id, customer_id, coupon_id, coupon_type, washer_type, consume_time, seriasl_number) VALUES (?, ?, ?, ?, ?, ?, ?)

runningSqlCount 2 : INSERT INTO onebucket_gas_consume (customer_id, employee_id, consume_money, oil_type, consumer_address, seriasl_number, coupon_type, coupon_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)

runningSqlCount 10 : UPDATE onebucket_topup_summary SET handover_id = ?, handover_num = ? WHERE is_delete = 0 AND employee_id = ?

runningSqlCount 6 : UPDATE onebucket_exchange_handover SET financial_id = ?, financial_name = ?, financial_sure_time = ? WHERE id = ? AND handover_status = 0

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:150)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)

at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)

... 97 common frames omitted


1条回答
  •  rohon
    rohon (楼主)
    2019-07-01 10:30

    连接池满了吧

    0 讨论(0)
提交回复