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

NullPointerException in java.net.NetworkInterface.getInterfaceAddresses()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • core-libs
    • x86
    • windows_2003

      FULL PRODUCT VERSION :
      This is from a user bug report:

              java.runtime.name=Java(TM) SE Runtime Environment
              java.runtime.version=1.7.0_02-ea-b11
              java.specification.name=Java Platform API Specification
              java.specification.vendor=Oracle Corporation
              java.specification.version=1.7
              java.vendor=Oracle Corporation
              java.vendor.url=http://java.oracle.com/
              java.vendor.url.bug=http://bugreport.sun.com/bugreport/
              java.version=1.7.0_02-ea
              java.vm.info=mixed mode, sharing
              java.vm.name=Java HotSpot(TM) Client VM
              java.vm.specification.name=Java Virtual Machine Specification
              java.vm.specification.vendor=Oracle Corporation
              java.vm.specification.version=1.7
              java.vm.vendor=Oracle Corporation
              java.vm.version=22.0-b08

      ADDITIONAL OS VERSION INFORMATION :
      Windows 2003 SP2

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      User reports his network interfaces to be

      lo (MS TCP Loopback interface)
      lo[0] 127.0.0.1
      ppp0 (WAN (PPP/SLIP) Interface)
      ppp0[0] 79.142.58.41

      A DESCRIPTION OF THE PROBLEM :
      I have a user of Azureus/Vuze who is reporting a null-pointer exception in java.net.NetworkInterface.getInterfaceAddresses when trying to enumerate the addresses on his system.

      It must be something specific to windows 2003 SP2 and/or his interface setup as I can't reproduce it.

      He also reports something similar on 1.6 although I have no trace from that

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The user can reproduce it always but I can't

      See

      http://forum.vuze.com/thread.jspa?threadID=100341

      if interested (this thread is a mess of varying issues but it is fairly prominent)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      list of addresses

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.NullPointerException
      at java.net.NetworkInterface.getInterfaceAddresses(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Not useful
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: