JDK-8046500 : GetIpAddrTable function failed on Pure Ipv6 environment
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-06-11
  • Updated: 2021-10-20
  • Resolved: 2018-11-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b22Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
This only happens on Pure Ipv6 environment. Reproduce with 8, 8u20 and 9.  Tested on a Windows 7 SP1 32 bit VM, which has uninstalled IPv4 by "netsh interface ipv4 uninstall".

It immediately failed when invoking:
NetworkInterface.getNetworkInterfaces();

This is the error message:
Exception in thread "main" java.lang.Error: IP Helper Library GetIpAddrTable function failed
        at java.net.NetworkInterface.getAll(Native Method)
        at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:343)
        at PureIpv6.main(PureIpv6.java:9)

We haven't started to cover this configuration, so set it to low priority as suggested. Actually, all SQE tests failed and regressions test can't be executed,  because of it.




Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/526b2490c616 User: vtewari Date: 2018-11-22 07:56:18 +0000
22-11-2018

NetworkInterface_winXP.c getAllInterfacesAndAddresses first calls enumAddresses_win ( which calls GetIpAddrTable ) to retrieve the IPv4 address information, this was added for JDK-6707289. If enumAddresses_win fails then there is a pending exception and getAllInterfacesAndAddresses returns and throws it. This may not be desirable, as it appears that in the an IPv6 only environment it may be an error to call GetIpAddrTable. It may make sense ignore the failure of enumAddresses_win, in this case, and proceed to determine if there are any IPv6 addresses associated with the interface.
11-06-2014