This is an error due to a bug in Java version 1.7. It can be solved by adding the following line in your Java application.
System.setProperty ("jsse.enableSNIExtension", "false");
This error occurs mainly in private or corporate networks where there are security protocols implemented.