we have just started getting UnknownHostException being thrown fairly regulary when using the following code, when updating from Java 1.4.1 to Java 1.4.2
Background: The above piece of code is called from a Servlet, that gets fairly high traffic (possible problem?).
Details: OS - Solaris 9 java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Server VM (build 1.4.2_04-b05, mixed mode)
Also, I have added the IP address & hostname into the machines /etc/hosts file.
This did not happen when we were using an older version of Java: java version "1.4.1_02a" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02a-b01) Java HotSpot(TM) Server VM (build 1.4.1_02a-b01, mixed mode)
Anyone experienced similar issues, or have some suggestions?