Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-2190697

InetAddress.getByName behaves differently on Windows

XMLWordPrintable

      Actually the issue still exists for JDK 142.

      See http://vice.russia.sun.com/results/1.4.2_26/b05_j4b/networking/win2008r2-x64-64/win2008r2-x64-64_1278FC3ACDD/ResultDir/AddressTypes/
      where the test case

      InetAddress/AddressTypes

      failed by the same reason as described in the main CR.

      Ok, it was fixed for JDK 5.0. But we should to keep the CR against JDK 1.4.2 in "will not fix" state if we are not going to fix it. It is the reason why I created MR against JDK 1.4.2.

      Testsuite name: Networking 142
      JDK/JRE tested: 1.4.2_26-rev-b05
      OS/architecture: Windows
      Reproducible: Always
      Reproducible on machine: stt-94.russia.sun.com
      Is it a Regression: Not
      Test result on FCS: Fail
      Steps to reproduce:
      1. VNC for stt-94
      2. cd K:/results/1.4.2_26/b05_j4b/networking/win2008r2-x64-64/win2008r2-x64-64_1278FC3ACDD/ResultDir/AddressTypes
      3. C:/jdk/j2sdk1.4.2_26/windows-amd64/jre/bin/java AddressTypes -f ./AnyPositiveAddressTypes.data

      ERROR: AddressTypes.isAnyLocalAddressPositive(): exception occurred:
      java.net.UnknownHostException: 0: 0
      java.net.UnknownHostException: 0: 0
              at java.net.InetAddress.getAllByName0(InetAddress.java:1030)
              at java.net.InetAddress.getAllByName(InetAddress.java:988)
              at java.net.InetAddress.getAllByName(InetAddress.java:938)
              at java.net.InetAddress.getByName(InetAddress.java:891)
              at AddressTypes.isAnyLocalAddressPositive(AddressTypes.java:209)
              at AddressTypes.performAddTests(AddressTypes.java:136)
              at AddressTypes.main(AddressTypes.java:81)
      ERROR: AddressTypes.main(): exception occurred:
      java.lang.NullPointerException
      java.lang.NullPointerException
              at AddressTypes.isAnyLocalAddressPositive(AddressTypes.java:217)
              at AddressTypes.performAddTests(AddressTypes.java:136)
              at AddressTypes.main(AddressTypes.java:81)
      FINALSTATUS:AddressTypes:EXIT_ERROR:2:Number of ERRORS:2:TEST INCOMPLETE

      be sure that JDK 142 is installed.

            asaha Abhijit Saha
            afomin Alexander Fomin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: