[progress Communities] [progress Openedge Abl] Forum Post: Re: Appservers Startup Another...

  • Thread starter Thread starter Arun Kumar Mohapatra
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top