Andwhen I make a POST request to the controller, which should create a new entry in the database I get the following Exception: org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement which in turn is caused by the following: Inmy application I use connection to Oracle, when connection lost and I try to re-connect I receive exception: java.sql.SQLException: Io exception: Broken pipe at oracle.jdbc.driver.DatabaseE Iam using spring framework 3.2 with hibernate 4 , I get the above exception when sending a request after a long idle time on the local server ( apache-tomcat v7.0 ) and the database is located on remote server. After hours of search I came to that the problem comes from the connection pool. java.sql.SQLException: Connection orghibernate.JDBCException. Best Java code snippets using org.hibernate. JDBCException.getErrorCode (Showing top 6 results out of 315) org.hibernate JDBCException getErrorCode. iam using hibernate to execute sql statements in spring but to handle exceptions i used hibernate exception and sql exception but i am not able to handle exceptions if my sql server is not on or Stack Overflow. Unreachable catch block for SQLException. This exception is never thrown from the try statement body. HJ6ykvl.

jdbc exception on hibernate data access sqlexception for sql