title: Java to DB connection exceptions
body: <p>We are developing web application our tomcat server and mysql server runs on two different servers and we are getting the errors</p>
  
  <pre><code>org.hibernate.TransactionException: JDBC begin transaction failed: 
  
  com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 86,402,200 milliseconds ago.
  
  java.net.SocketException: Broken pipe
  
  org.hibernate.exception.JDBCConnectionException: 
  </code></pre>
  
  <p>need help to solve the issue</p>
  
  <p>have tried the solutions from these links</p>
  
  <p><a href="https://stackoverflow.com/questions/24053684/hibernate-session-could-not-open-for-transaction">Hibernate Session Could not open for transaction</a></p>
  
  <p><a href="https://stackoverflow.com/questions/19776095/first-login-http-status-500-request-processing-failed-nested-exception-is-or">First Login: HTTP Status 500 - Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-communications-link-fai">com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-communications-link-fai">com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure</a></p>
  
  <p><a href="https://stackoverflow.com/questions/20065653/com-mysql-jdbc-exceptions-jdbc4-communicationsexception">com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:</a></p>