This issue happens because of the communication error between Java and SOCKS proxy server.
A proxy server has been configured in the machine, This might be some configuration issue in SOCKS proxy server.
In order to fix this issue, we need to bypass the SOCKS proxy configuration in the machine.
For which, we need to uncheck
Internet
Explorer- > Tools -> Internet Options-> Connections->
Settings-> Advanced-> DISABLE the option "Use the same proxy
server for all protocols" and Internet Explorer- > Tools ->
Internet Options-> Connections-> LAN Settings-> Advanced->
DISABLE the option "Use the same proxy server for all protocols".
This
has to be done as the system administrator who has the privilege to
change the system settings. If you have any issues with bypassing the
SOCKS proxy settings, please make sure you have the correct SOCKS proxy
configuration in the proxy server.