Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5784

Bad error message when InetAddress.getByName is called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0M6
    • Classlib
    • None

    Description

      Good Message (Sun JDK 1.5)

      Exception in thread "main" java.net.UnknownHostException: this.is.a.bad.endpoint.terrible.in.fact: this.is.a.bad.endpoint.terrible.in.fact
      at java.net.InetAddress.getAllByName0(InetAddress.java:1145)
      at java.net.InetAddress.getAllByName(InetAddress.java:1072)
      at java.net.InetAddress.getAllByName(InetAddress.java:1008)
      at java.net.InetAddress.getByName(InetAddress.java:958)
      at Main.main(Main.java:5)

      Bad Message (Harmony - 650843)

      [dims@dims-desktop test]$java Main
      Uncaught exception in main:
      java.net.UnknownHostException: this.is.a.bad.endpoint.terrible.in.fact - No such file or directory
      at java.net.InetAddress.lookupHostByName(InetAddress.java:418)
      at java.net.InetAddress.getByName(InetAddress.java:253)
      at Main.main(Main.java:5)

      Sample code

      import java.net.InetAddress;

      public class Main {
      public static void main(String[] args) throws Exception

      { InetAddress.getByName("this.is.a.bad.endpoint.terrible.in.fact"); }

      }

      thanks,
      dims

      Attachments

        Activity

          People

            nbeyer Nathan Beyer
            dims Davanum Srinivas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: