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

IPv6 regression tests failing on machines with multiple network interfaces

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic

      Description

      I believe this is a problem in the networking code, which is causing
      all the regression tests to fail on my machine. Any machine with a similar
      setup will probably fail in the same manner.

      The problem code looks like:

      NetworkInterface.getNetworkInterfaces().getInetAddresses();

      I have XP Pro with both a wired and wireless network card.

      Before testing, the wireless adapter appears in the getNetworkInterfaces()
      list (and ipconfig /all) *FIRST* before the wired one. When tests
      like java/net/ipv6tests/TcpTest.java run, they look for the first IP
      address, regardless of whether the adapter is actually on and enabled/disabled.
      In my case, the wireless card was initially turned off,
      and in the second case, it was completely
      disabled. For some reason, an IP address is still somehow being obtained from
      this adapter, and the connection is then attempted, which of course times out.
      Even when I completely disabled my wireless adapter, it is still showing this as
      a valid interface via getInterfaces().

      In the disabled case, ipconfig /all doesn't even
      mention the wireless interface. In the active case, it doesn't report any
      active IPs when the wireless card is turned off.

      See attachments for more info. output is the result of java/net/ipv6tests/TcpTest.java when run on this machine.`

      ###@###.### 2004-09-17

        Attachments

          Activity

            People

            • Assignee:
              yuwangsunw Yujiang Wang (Inactive)
              Reporter:
              wetmore Bradford Wetmore
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: