This error is related to my previous question where I had an error with InetAddress.getLocalHost(). I found a suggestion to add an entry in /etc/hosts
InetAddress.getLocalHost()
/etc/hosts
Your host name is Sachin. The exception in thread "main" java.net.UnknownHostException: Sachin: Sachin: unknown error show that.
exception in thread "main" java.net.UnknownHostException: Sachin: Sachin: unknown error
Add Sachin to /etc/hosts
myip localhost 127.0.0.1 localhost 127.0.1.1 test5 127.0.0.1 Sachin