### Cause: java.sql.SQLException: Borrow prepareStatement from pool failed ; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; Borrow prepareStatement from pool failed; nested exception is java.sql.SQLException: Borrow prepareStatement from pool failed default ...

어제 패치 후 오류 발생.. 

 

검색해 보니 'dbcp connection pool에서 connection을 가져오지 못하는 상황'이라는 글을 봄.

 

tomcat 로그를 봤더니..

분명히 추가한 table인데 doesn't exist라니..

 

jdbc.properties 확인 후 어제 table 추가한 db가 아닌 다른 db를 보고 있는 것을 확인하고 다시 추가함.

 

쿼리 수행을 위해 prepareStatement 객체를 생성 도중 에러가 생겨서 DBCP에서 connection을 가져오지 못한 상황

 

참고: https://www.cubrid.com/qna/3800823

https://aljjabaegi.tistory.com/402

+ Recent posts