인지용

Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory 에러 해결 본문

카테고리 없음

Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory 에러 해결

인지용 2022. 3. 25. 15:01

이클립스에서 svn으로 프로젝트를 다운로드하고 서버 실행하는데

localhost:8080까지는 들어가지는데 데이터 전송할 때 에러가 발생한다.

 

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

java.sql.SQLException: Cannot create PoolableConnectionFactory

Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory

이러한 에러들.

 

원인

db와의 연결이 제대로 안 된 것이다.

 

 

해결방법

jdbc:mysql://localhost/dbname?characterEncoding=utf8&useSSL=false&autoReconnection=true

 

db url뒤에 

characterEncoding=utf8&useSSL=false&autoReconnection=true

이 부분 추가하니까 정상적으로 동작한다