Name: rmT116609 Date: 06/10/2004
FULL PRODUCT VERSION :
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
I want to test reachability of a host using the new ping mechanism.
However, instead of pings, TCP ECHOS are sent (I see it in firewall logs).
These are blocked by the destination host and therefore the program thinks it's dead.
It worked just fine in Beta1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
package test;
import java.net.*;
import java.net.Inet4Address;
import java.net.InetAddress;
public class Pinger {
public static void main(String[] args) throws UnknownHostException {
InetAddress addr = Inet4Address.getByName("www");
try {
addr.isReachable(100);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Details: 1.5.0-beta2. Host "www" resolves just fine. Instead of sending
an ICMP message, it sends TCP echo (port 7) which is blocked by the
firewall.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
ICMP PING being sent
ACTUAL -
TCP ECHO BEING SENT
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 275552)
======================================================================