Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 리액트
- vue.js
- java
- JavaScript
- MongoDB
- MySQL
- jenkins maven
- grafana
- grpc
- REACT
- Linux
- Spring Boot
- spring
- nginx
- error
- Jenkins
- 리눅스
- jenkins jdk
- jenkins 설치
- jpa
- IntelliJ
- Jenkins Pipeline
- gradle
- jenkins github
- subnetmask
- jenkins install
- Docker
- jenkins github 연동
- CI/CD
- docker network
Archives
- Today
- Total
뭐든 즐기면서 ;)
Error org.springframework.dao.RecoverableDataAccessException 본문
728x90
Error
Request processing failed; nested exception is org.springframework.dao.RecoverableDataAccessException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
The last packet successfully received from the server was933 seconds ago.The last packet sent
successfully to the server was 933 seconds ago, which 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. ### The error may exist in class path resource [query/mysql/common/C1.seq.sql.xml]
### The error may involve ai.mindslab.gather.common.comm.dao.SeqDao.callNextSeq-Inline
### The error occurred while setting parameters ### SQL: SELECT selectNextSeq(?) ### Cause:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received
from the server was933 seconds ago.The last packet sent successfully to the server was 933 seconds
ago, which 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 was933 seconds ago.The last packet sent successfully to the server
was 933 seconds ago, which 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.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully
received from the server was933 seconds ago.The last packet sent successfully to the server
was 933 seconds ago, which 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.
주의해서 볼 에러 내용
which 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.
오류 해결 방법
1. jdbc.url 에 autoReconnect=true로 변경
2. db 설정파일에서 wait_timeout 값을 늘려주면 됩니다.. wait_timeout의 단위는 초단위입니다.
* 설정파일의 경로는 세팅에 따라 달라지기 때문에 생략 합니다.
728x90
'Error' 카테고리의 다른 글
Comments