Doing some research we found that the problem can be solved by following the steps mentioned in (http://stackoverflow.com/questions/11497530/jdbc-jtds-sql-server-connection-closed-after-ssl-authentication).

All the steps works fine, as long as we are working on JRE7, the moment we change the JRE version from 7 to 8 the following error gets reported in the JDBC log