If the local host isn't known to the name service then getLocalHost() can
NPE on second and subsequent calls whilst the host is still in the
negative cache -- ie: for 10 seconds after getLocalHost() throws UHE any
subsequent call to getLocalHost() will result in an NPE.
This issue should be fixed in conjunction with the re-structring of the
InetAddress cache required for 4692867.
- duplicates
-
JDK-4692867 UnKnowHostException still occurs after network connection recovers
-
- Resolved
-