A
Arun Kumar Mohapatra
Guest
Hi, I think it seems to be the problem with /etc/hosts file setting as a result of that it is unable to get localhost ip address and localhost name and resulting "error getting current hostname" error. if possible you could run below java tester program to confirm this. import java.net.InetAddress; import java.net.UnknownHostException; public class InetAddressTest { public static void main(String[] args) { String localHostName = "no name"; String localHostAddress = "no address"; try { localHostName = InetAddress.getLocalHost().getHostName(); System.out.println("localHostName: " + localHostName); } catch (UnknownHostException e) { e.printStackTrace(); System.out.println("No name: " + e.getMessage()); } try { localHostAddress = InetAddress.getLocalHost().getHostAddress(); System.out.println("localHostAddress: " + localHostAddress); } catch (UnknownHostException e) { e.printStackTrace(); System.out.println("No address: " + e.getMessage()); } } } Thanks, Arun
Continue reading...
Continue reading...