JDK-8068651 : sun/net/www/protocol/https/HttpsURLConnection/IPAddressIPIdentities.java failed with java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2015-01-08
  • Updated: 2018-03-27
  • Resolved: 2018-03-27
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.
Other
tbd_minorFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
This failure happened once in 9b44 same binaries testing. 

Please refer to following test output:
----------System.out:(0/0)----------
----------System.err:(20/1504)----------
java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
	at java.net.NetworkInterface.getMacAddr0(Native Method)
	at java.net.NetworkInterface.getHardwareAddress(NetworkInterface.java:460)
	at sun.security.provider.SeedGenerator.addNetworkAdapterInfo(SeedGenerator.java:234)
	at sun.security.provider.SeedGenerator.access$000(SeedGenerator.java:80)
	at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:179)
	at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:167)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.provider.SeedGenerator.getSystemEntropy(SeedGenerator.java:167)
	at sun.security.provider.SecureRandom$SeederHolder.<clinit>(SecureRandom.java:201)
	at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:221)
	at java.security.SecureRandom.nextBytes(SecureRandom.java:469)
	at sun.security.provider.KeyProtector.protect(KeyProtector.java:192)
	at sun.security.provider.JavaKeyStore.engineSetKeyEntry(JavaKeyStore.java:259)
	at sun.security.provider.JavaKeyStore$JKS.engineSetKeyEntry(JavaKeyStore.java:55)
	at java.security.KeyStore.setKeyEntry(KeyStore.java:1141)
	at IPAddressIPIdentities.getSSLContext(IPAddressIPIdentities.java:885)
	at IPAddressIPIdentities.doServerSide(IPAddressIPIdentities.java:653)
	at IPAddressIPIdentities$1.run(IPAddressIPIdentities.java:806)

This error message looks similar with JDK-8065078, so possible from the same or related native codes.
Comments
Not seen in a long time
27-03-2018

actually different call flow - NetworkInterface.getHardwareAddress(), but same root cause GetAdaptersAddress Windows API call. NetworkInterface.getHardwareAddress -> getMacAddr0 -> getMacAddr0_XP -> getAdapter -> GetAdaptersAddresses we should add the error code diagnostic here also.
08-01-2015

this is a duplicate of JDK-8065078 root cause is the same.
08-01-2015