问题描述:
使用springboot 线程池连接MySQL时,mysql数据库wait_timeout 为8个小时,在这段时间内无数据操作时,连接池会自动断掉;
解决方案:
#当连接空闲时,是否执行连接测试
spring.datasource.test-while-idle=true
#当从连接池借用连接时,是否测试该连接
spring.datasource.test-on-borrow=false
#指定空闲连接检查、废弃连接清理、空闲连接池大小调整之间的操作时间间隔
spring.datasource.time-between-eviction-runs-millis= 3600000
异常信息:
org.springframework.dao.RecoverableDataAccessException:
### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
### SQL: INSERT INTO `dwd_mat_contract_ledger` ( purord, contractcode, conname, bidbat, prjname, prjcode, ordtype, large_code, mid_code, small_code, large_mat, mid_mat, small_mat, material_name, material_code, order_num, unit, supp_name, suppcode, eindt, budat, dddjhs, ddzjhs, waers, demand_unit_code, demand_unit_name, purordcode, ddsxrq, remark, is_deleted, creator, gmt_created, modifier, gmt_modified, purord_create_time, is_plan ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DATE_FORMAT(?,'%Y-%m-%d'), DATE_FORMAT(?,'%Y-%m-%d'), ?, ?, ?, ?, ?, ?, ?, '', 0, 'admin', now(), 'admin', now(), DATE_FORMAT(?,'%Y-%m-%d'), ? )
### Cause: com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
; SQL []; The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:98) ~[spring-jdbc-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) ~[spring-jdbc-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:75) ~[mybatis-spring-1.3.0.jar!/:1.3.0]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:447) ~[mybatis-spring-1.3.0.jar!/:1.3.0]
at com.sun.proxy.$Proxy116.insert(Unknown Source) ~[na:na]
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:279) ~[mybatis-spring-1.3.0.jar!/:1.3.0]
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:57) ~[mybatis-3.4.1.jar!/:3.4.1]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53) ~[mybatis-3.4.1.jar!/:3.4.1]
at com.sun.proxy.$Proxy117.insertBatch(Unknown Source) ~[na:na]
at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) ~[spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at com.sun.proxy.$Proxy119.insertBatch(Unknown Source) ~[na:na]
at com.sgcc.sws.servie.impl.DwdMatContractLedgerService.saveBatch(DwdMatContractLedgerService.java:24) ~[classes!/:na]
at com.sgcc.sws.servie.impl.DwdMatContractLedgerService$$FastClassBySpringCGLIB$$b05ea9ed.invoke(<generated>) ~[classes!/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) ~[spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at com.sgcc.sws.servie.impl.DwdMatContractLedgerService$$EnhancerBySpringCGLIB$$162aced9.saveBatch(<generated>) [classes!/:na]
at com.sgcc.sws.webservice.impl.DictService.save(DictService.java:54) [classes!/:na]
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.jaxws.JAXWSMethodInvoker.performInvocation(JAXWSMethodInvoker.java:66) [cxf-rt-frontend-jaxws-3.2.4.jar!/:3.2.4]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:232) [cxf-rt-frontend-jaxws-3.2.4.jar!/:3.2.4]
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:85) [cxf-rt-frontend-jaxws-3.2.4.jar!/:3.2.4]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:74) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [cxf-core-3.2.4.jar!/:3.2.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_161]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:220) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:276) [cxf-rt-transports-http-3.2.4.jar!/:3.2.4]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [sgmaps-embed-websocket-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55) [spring-boot-1.4.1.RELEASE.jar!/:1.4.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at com.sgcc.uap.jwt.SecurityFilter.doFilter(SecurityFilter.java:100) [uap-jwt.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:105) [spring-boot-actuator-1.4.1.RELEASE.jar!/:1.4.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.springframework.cloud.sleuth.instrument.web.TraceFilter.doFilter(TraceFilter.java:147) [spring-cloud-sleuth-core-1.0.9.RELEASE.jar!/:1.0.9.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) [spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:107) [spring-boot-actuator-1.4.1.RELEASE.jar!/:1.4.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_161]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [sgmaps-embed-core-8.5.5.jar!/:8.5.5]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:590) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:57) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:1983) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:3773) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161]
at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) ~[sgmaps-jdbc-8.5.5.jar!/:na]
at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108) ~[sgmaps-jdbc-8.5.5.jar!/:na]
at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:81) ~[sgmaps-jdbc-8.5.5.jar!/:na]
at com.sun.proxy.$Proxy175.setAutoCommit(Unknown Source) ~[na:na]
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:225) ~[spring-jdbc-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373) ~[spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:430) ~[spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276) ~[spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) [spring-aop-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
at com.sgcc.sws.servie.impl.DwdMatContractLedgerService$$EnhancerBySpringCGLIB$$162aced9.saveBatch(<generated>) [classes!/:na]
at com.sgcc.sws.webservice.impl.DictService.save(DictService.java:54) [classes!/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161]
... 68 common frames omitted
Caused by: com.mysql.cj.core.exceptions.CJCommunicationsException: The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_161]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_161]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_161]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_161]
at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:54) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:93) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:133) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.core.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:149) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.mysqla.io.MysqlaProtocol.send(MysqlaProtocol.java:561) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.mysqla.io.MysqlaProtocol.sendCommand(MysqlaProtocol.java:644) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.mysqla.io.MysqlaProtocol.sqlQueryDirect(MysqlaProtocol.java:950) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.mysqla.MysqlaSession.sqlQueryDirect(MysqlaSession.java:431) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:1974) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
... 88 common frames omitted
Caused by: java.net.SocketException: Broken pipe (Write failed)
at java.net.SocketOutputStream.socketWrite0(Native Method) ~[na:1.8.0_161]
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) ~[na:1.8.0_161]
at java.net.SocketOutputStream.write(SocketOutputStream.java:155) ~[na:1.8.0_161]
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) ~[na:1.8.0_161]
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) ~[na:1.8.0_161]
at com.mysql.cj.mysqla.io.SimplePacketSender.send(SimplePacketSender.java:50) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.mysqla.io.TimeTrackingPacketSender.send(TimeTrackingPacketSender.java:43) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
at com.mysql.cj.mysqla.io.MysqlaProtocol.send(MysqlaProtocol.java:552) ~[mysql-connector-java-6.0.5.jar!/:6.0.5]
... 92 common frames omitted
org.springframework.transaction.TransactionSystemException: Could not roll back JDBC transaction; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 543,152,317 milliseconds ago. The last packet sent successfully to the server was 543,152,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doRollback(DataSourceTransactionManager.java:290)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:853)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:830)
at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:505)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:285)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
at com.sgcc.sws.servie.impl.DwdMatContractLedgerService$$EnhancerBySpringCGLIB$$162aced9.saveBatch(<generated>)
at com.sgcc.sws.webservice.impl.DictService.save(DictService.java:54)
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.performInvocation(JAXWSMethodInvoker.java:66)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:232)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:85)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:74)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:220)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:276)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.sgcc.uap.jwt.SecurityFilter.doFilter(SecurityFilter.java:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:105)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.springframework.cloud.sleuth.instrument.web.TraceFilter.doFilter(TraceFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:107)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at
Springboot DataSource 配置:
datasource
spring.dao.exceptiontranslation.enabled是否开启PersistenceExceptionTranslationPostProcessor,默认为true
spring.datasource.abandon-when-percentage-full设定超时被废弃的连接占到多少比例时要被关闭或上报
spring.datasource.allow-pool-suspension使用Hikari pool时,是否允许连接池暂停,默认为: false
spring.datasource.alternate-username-allowed是否允许替代的用户名.
spring.datasource.auto-commit指定updates是否自动提交.
spring.datasource.catalog指定默认的catalog.
spring.datasource.commit-on-return设置当连接被归还时,是否要提交所有还未完成的事务
spring.datasource.connection-init-sql指定连接被创建,再被添加到连接池之前执行的sql.
spring.datasource.connection-init-sqls使用DBCP connection pool时,指定初始化时要执行的sql
spring.datasource.connection-properties.[key]在使用DBCP connection pool时指定要配置的属性
spring.datasource.connection-test-query指定校验连接合法性执行的sql语句
spring.datasource.connection-timeout指定连接的超时时间,毫秒单位.
spring.datasource.continue-on-error在初始化数据库时,遇到错误是否继续,默认false
spring.datasource.data指定Data (DML)脚本
spring.datasource.data-source-class-name指定数据源的全限定名.
spring.datasource.data-source-jndi指定jndi的地址
spring.datasource.data-source-properties.[key]使用Hikari connection pool时,指定要设置的属性
spring.datasource.db-properties使用Tomcat connection pool,指定要设置的属性
spring.datasource.default-auto-commit是否自动提交.
spring.datasource.default-catalog指定连接默认的catalog.
spring.datasource.default-read-only是否设置默认连接只读.
spring.datasource.default-transaction-isolation指定连接的事务的默认隔离级别.
spring.datasource.driver-class-name指定driver的类名,默认从jdbc url中自动探测.
spring.datasource.fair-queue是否采用FIFO返回连接.
spring.datasource.health-check-properties.[key]使用Hikari connection pool时,在心跳检查时传递的属性
spring.datasource.idle-timeout指定连接多久没被使用时,被设置为空闲,默认为10ms
spring.datasource.ignore-exception-on-pre-load当初始化连接池时,是否忽略异常.
spring.datasource.init-sql当连接创建时,执行的sql
spring.datasource.initial-size指定启动连接池时,初始建立的连接数量
spring.datasource.initialization-fail-fast当创建连接池时,没法创建指定最小连接数量是否抛异常
spring.datasource.initialize指定初始化数据源,是否用data.sql来初始化,默认: true
spring.datasource.isolate-internal-queries指定内部查询是否要被隔离,默认为false
spring.datasource.jdbc-interceptors使用Tomcat connection pool时,指定jdbc拦截器,分号分隔
spring.datasource.jdbc-url指定JDBC URL.
spring.datasource.jmx-enabled是否开启JMX,默认为: false
spring.datasource.jndi-name指定jndi的名称.
spring.datasource.leak-detection-threshold使用Hikari connection pool时,多少毫秒检测一次连接泄露.
spring.datasource.log-abandoned使用DBCP connection pool,是否追踪废弃statement或连接,默认为: false
spring.datasource.log-validation-errors当使用Tomcat connection pool是否打印校验错误.
spring.datasource.login-timeout指定连接数据库的超时时间.
spring.datasource.max-active指定连接池中最大的活跃连接数.
spring.datasource.max-age指定连接池中连接的最大年龄
spring.datasource.max-idle指定连接池最大的空闲连接数量.
spring.datasource.max-lifetime指定连接池中连接的最大生存时间,毫秒单位.
spring.datasource.max-open-prepared-statements指定最大的打开的prepared statements数量.
spring.datasource.max-wait指定连接池等待连接返回的最大等待时间,毫秒单位.
spring.datasource.maximum-pool-size指定连接池最大的连接数,包括使用中的和空闲的连接.
spring.datasource.min-evictable-idle-time-millis指定一个空闲连接最少空闲多久后可被清除.
spring.datasource.min-idle指定必须保持连接的最小值(For DBCP and Tomcat connection pools)
spring.datasource.minimum-idle指定连接维护的最小空闲连接数,当使用HikariCP时指定.
spring.datasource.name指定数据源名.
spring.datasource.num-tests-per-eviction-run指定运行每个idle object evictor线程时的对象数量
spring.datasource.password指定数据库密码.
spring.datasource.platform指定schema要使用的Platform(schema-${platform}.sql),默认为: all
spring.datasource.pool-name指定连接池名字.
spring.datasource.pool-prepared-statements指定是否池化statements.
spring.datasource.propagate-interrupt-state在等待连接时,如果线程被中断,是否传播中断状态.
spring.datasource.read-only当使用Hikari connection pool时,是否标记数据源只读
spring.datasource.register-mbeans指定Hikari connection pool是否注册JMX MBeans.
spring.datasource.remove-abandoned指定当连接超过废弃超时时间时,是否立刻删除该连接.
spring.datasource.remove-abandoned-timeout指定连接应该被废弃的时间.
spring.datasource.rollback-on-return在归还连接时,是否回滚等待中的事务.
spring.datasource.schema指定Schema (DDL)脚本.
spring.datasource.separator指定初始化脚本的语句分隔符,默认: ;
spring.datasource.sql-script-encoding指定SQL scripts编码.
spring.datasource.suspect-timeout指定打印废弃连接前的超时时间.
spring.datasource.test-on-borrow当从连接池借用连接时,是否测试该连接.
spring.datasource.test-on-connect创建时,是否测试连接
spring.datasource.test-on-return在连接归还到连接池时是否测试该连接.
spring.datasource.test-while-idle当连接空闲时,是否执行连接测试.
spring.datasource.time-between-eviction-runs-millis指定空闲连接检查、废弃连接清理、空闲连接池大小调整之间的操作时间间隔
spring.datasource.transaction-isolation指定事务隔离级别,使用Hikari connection pool时指定
spring.datasource.url指定JDBC URL.
spring.datasource.use-disposable-connection-facade是否对连接进行包装,防止连接关闭之后被使用.
spring.datasource.use-equals比较方法名时是否使用String.equals()替换==.
spring.datasource.use-lock是否对连接操作加锁
spring.datasource.username指定数据库名.
spring.datasource.validation-interval指定多少ms执行一次连接校验.
spring.datasource.validation-query指定获取连接时连接校验的sql查询语句.
spring.datasource.validation-query-timeout指定连接校验查询的超时时间.
spring.datasource.validation-timeout设定连接校验的超时时间,当使用Hikari connection pool时指定
spring.datasource.validator-class-name用来测试查询的validator全限定名.
spring.datasource.xa.data-source-class-name指定数据源的全限定名.
spring.datasource.xa.properties指定传递给XA data source的属性
JPA
spring.jpa.database指定目标数据库.
spring.jpa.database-platform指定目标数据库的类型.
spring.jpa.generate-ddl是否在启动时初始化schema,默认为false
spring.jpa.hibernate.ddl-auto指定DDL mode (none, validate, update, create, create-drop). 当使用内嵌数据库时,默认是create-drop,否则为none.
spring.jpa.hibernate.naming-strategy指定命名策略.
spring.jpa.open-in-view是否注册OpenEntityManagerInViewInterceptor,绑定JPA EntityManager到请求线程中,默认为: true
spring.jpa.properties添加额外的属性到JPA provider.
spring.jpa.show-sql是否开启sql的log,默认为: false
jooq
spring.jooq.sql-dialect指定JOOQ使用的SQLDialect,比如POSTGRES.
h2
spring.h2.console.enabled是否开启控制台,默认为false
spring.h2.console.path指定控制台路径,默认为: /h2-console
JTA
spring.jta.allow-multiple-lrc是否允许 multiple LRC,默认为: false
spring.jta.asynchronous2-pc指定两阶段提交是否可以异步,默认为: false
spring.jta.background-recovery-interval指定多少分钟跑一次recovery process,默认为: 1
spring.jta.background-recovery-interval-seconds指定多久跑一次recovery process,默认: 60
spring.jta.current-node-only-recovery是否过滤掉其他非本JVM的recovery,默认为: true
spring.jta.debug-zero-resource-transaction是否追踪没有使用指定资源的事务,默认为: false
spring.jta.default-transaction-timeout设定默认的事务超时时间,默认为60
spring.jta.disable-jmx是否禁用jmx,默认为false
spring.jta.enabled是否开启JTA support,默认为: true
spring.jta.exception-analyzer设置指定的异常分析类
spring.jta.filter-log-status使用Bitronix Transaction Manager时,是否写mandatory logs,开启的话,可以节省磁盘空间,但是调试会复杂写,默认为false
spring.jta.force-batching-enabled使用Bitronix Transaction Manager时,是否批量写磁盘,默认为true.
spring.jta.forced-write-enabled使用Bitronix Transaction Manager时,是否强制写日志到磁盘,默认为true
spring.jta.graceful-shutdown-interval当使用Bitronix Transaction Manager,指定shutdown时等待事务结束的时间,超过则中断,默认为60
spring.jta.jndi-transaction-synchronization-registry-name当使用Bitronix Transaction Manager时,在JNDI下得事务同步registry,默认为: java:comp/TransactionSynchronizationRegistry
spring.jta.jndi-user-transaction-name指定在JNDI使用Bitronix Transaction Manager的名称,默认:java:comp/UserTransaction
spring.jta.journal当使用Bitronix Transaction Manager,指定The journal是否disk还是null还是一个类的全限定名,默认disk
spring.jta.log-dirTransaction logs directory.
spring.jta.log-part1-filename指定The journal fragment文件1的名字,默认: btm1.tlog
spring.jta.log-part2-filename指定The journal fragment文件2的名字,默认: btm2.tlog
spring.jta.max-log-size-in-mb指定journal fragments大小的最大值. 默认: 2M
spring.jta.resource-configuration-filename指定Bitronix Transaction Manager配置文件名.
spring.jta.server-id指定Bitronix Transaction Manager实例的id.
spring.jta.skip-corrupted-logs是否忽略corrupted log files文件,默认为false.
spring.jta.transaction-manager-id指定Transaction manager的唯一标识.
spring.jta.warn-about-zero-resource-transaction当使用Bitronix Transaction Manager时,是否对没有使用指定资源的事务进行警告,默认为: true