title: springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
body: <p>We have an issue while reading from or writing to Microsoft SQL DB using spring framework:</p>
  
  <p>Exception connecting to db
  org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete response. The connection has been closed.".</p>
  
  <p>We can't say that it's about 1% of all connections as stated in MS article:</p>
  
  <p><a href="https://blogs.msdn.microsoft.com/dataaccesstechnologies/2016/11/30/intermittent-jdbc-connectivity-issue-the-driver-could-not-establish-a-secure-connection-to-sql-server-by-using-secure-sockets-layer-ssl-encryption-error-sql-server-returned-an-incomplete-respons/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/dataaccesstechnologies/2016/11/30/intermittent-jdbc-connectivity-issue-the-driver-could-not-establish-a-secure-connection-to-sql-server-by-using-secure-sockets-layer-ssl-encryption-error-sql-server-returned-an-incomplete-respons/</a></p>
  
  <p>It's much more often.</p>
  
  <p>This issue causing data loss from the DB so it's very important for us to find the way to fix it.</p>
  
  <p>We have:</p>
  
  <p>MS SQL Server 2008 R2 (SP3) 10.50.6000.34 (X64)</p>
  
  <p>Java 6 Update 35</p>
  
  <p>ODBC Driver SQL Server 6.01.7601.17514</p>
  
  <p>spring-jdbc-2.5.6.jar</p>
  
  <p>sqljdbc4-2.0.1803.100.jar</p>
  
  <p>We can't disable cypher like stated in article above and can't move to JAVA 8.</p>
  
  <p>Has anybody faced the same issue already?</p>