Closed as program error.
Error Message: N/A . Stack Trace: java.net.UnknownHostException: localhost: localhost at java.net.InetAddress.getAllByName0(InetAddress.java:1249) at java.net.InetAddress.getAllByName(InetAddress.java:1176) at java.net.InetAddress.getAllByName(InetAddress.java:1099) at java.net.InetAddress.getByName(InetAddress.java:1049) at HostName.main(HostName.java:6) .
Use IPv4 instead of IPv6 as default. Pass -Djava.net.preferIPv4Stack=true as a command line parameter to the JVM to resolve the issue
getByName() and getLocalHost() returns an unexpected java.net.UnknownHostException when /etc/services file is empty/corrupted in Java 5
This defect will be fixed in: 5.0.0 SR12 . The unwanted services parameter "domain" in getaddrinfo() has been changed . To obtain the fix: Install build 20100625 or later
-Djava.net.preferIPv4Stack=true (Enable IPv4 by default and everything works fine)
Reported component name
JAVA 5 CLASS LI
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
JAVA 5 CLASS LI
Fixed component ID
Applicable component levels
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.