JDK-8217298 : java.lang.Error: IP Helper Library GetIpAddrTable function failed
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8,12
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2019-01-14
  • Updated: 2021-10-15
  • Resolved: 2019-01-29
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
last java 8(202), windows 10 

A DESCRIPTION OF THE PROBLEM :
2019-01-12 15:44:55,355 Thread-3 > java.lang.Error: IP Helper Library GetIpAddrTable function failed
2019-01-12 15:44:55,357 Thread-3 > at java.net.NetworkInterface.getAll(Native Method)
2019-01-12 15:44:55,357 Thread-3 > at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source)

this method doesn't work 
public static void main(String[] args) {
        try {
            NetworkInterface.getNetworkInterfaces();
        } catch (Throwable t) {
            t.printStackTrace();
        }
    }


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
call method 
java.net.NetworkInterface.getNetworkInterfaces

ACTUAL -
got error 

---------- BEGIN SOURCE ----------
public class Main {
    public static void main(String[] args) {
        try {
            NetworkInterface.getNetworkInterfaces();
        } catch (Throwable t) {
            t.printStackTrace();
        }
    }
}
---------- END SOURCE ----------

FREQUENCY : always



Comments
Closing as incomplete until hear back further from submitter.
29-01-2019

From submitter: so i got info when i call "ipconfig /all" on a user's machine i haven't got any adapters but when user has created new user account(for windows 7 or 10). This command (ipconfig /all ) have shown one ethernet adapter and java work's CORRECT. 1) But i don't know how i can repeat this problem on new machines 2) Some of the users have some vpn adapters in Network(i added some images with this message) and i think that a program does changes in system environment , but today i don't know exactly about this program(or app) 3) so i try find program(app)that creates this changes(for this i need some time(1-3 months)
29-01-2019

Additional Information from submitter: C:\Downloads\openjdk-12-ea+27_windows-x64_bin\jdk-12\bin>java.exe -jar C:\Downloads\test-1.0-20190117.190554-5.jar java.lang.Error: IP Helper Library GetAdaptersAddresses function failed with error == 5 at java.base/java.net.NetworkInterface.getAll(Native Method) at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:359) at Main.main(Main.java:6) additional info when i call ipconfig /all i don't see any network adapter i can give teamview for test on problem machine.
29-01-2019

It's too dangerous to look at dropmefiles so I'd like to see the bug include a summary of the network configuration. Are there any network adapters configured with IP addresses, is there any virtualization going that that may impact a virtual machine's view of the system.
25-01-2019

From submitter: i have tested 8.01(the first version of the java 8) , 8.25 , 8.45, 8.191, 8.202 last; All versions don't work!
25-01-2019

Would it be possible to also a recent JDK 12 EA build to get some sense as to whether the issue exists in newer releases/builds of the JDK? Also can you confirm that the system has no network addresses configured?
25-01-2019

To submitter: Did you encounter this issue only after upgrading to JDK 8u202 , or was this present in earlier JDK 8 versions as well ? What is the last JDK 8 update version did it work correctly for you ?
25-01-2019

The stack trace provided by submitter in email: C:\Users\Admin\Desktop\openjdk-12-ea+28_windows-x64_bin\jdk-12\bin>java -jar tes t.jar java.lang.Error: IP Helper Library GetAdaptersAddresses function failed with err or == 5 at java.base/java.net.NetworkInterface.getAll(Native Method) at java.base/java.net.NetworkInterface.getNetworkInterfaces(NetworkInter face.java:359) at java.base/sun.security.provider.SeedGenerator.addNetworkAdapterInfo(S eedGenerator.java:229) at java.base/sun.security.provider.SeedGenerator$1.run(SeedGenerator.jav a:179) at java.base/sun.security.provider.SeedGenerator$1.run(SeedGenerator.jav a:167) at java.base/java.security.AccessController.doPrivileged(AccessControlle r.java:310) at java.base/sun.security.provider.SeedGenerator.getSystemEntropy(SeedGe nerator.java:167) at java.base/sun.security.provider.AbstractDrbg$SeederHolder.<clinit>(Ab stractDrbg.java:551) at java.base/sun.security.provider.AbstractDrbg.getEntropyInput(Abstract Drbg.java:505) at java.base/sun.security.provider.AbstractDrbg.getEntropyInput(Abstract Drbg.java:494) at java.base/sun.security.provider.AbstractDrbg.instantiateIfNecessary(A bstractDrbg.java:696) at java.base/sun.security.provider.AbstractDrbg.engineNextBytes(Abstract Drbg.java:378) at java.base/sun.security.provider.AbstractDrbg.engineNextBytes(Abstract Drbg.java:334) at java.base/sun.security.provider.DRBG.engineNextBytes(DRBG.java:233) at java.base/java.security.SecureRandom.nextBytes(SecureRandom.java:741) at java.base/java.security.SecureRandom.next(SecureRandom.java:798) at java.base/java.util.Random.nextLong(Random.java:424) at java.base/java.io.File$TempDirectory.generateFile(File.java:1928) at java.base/java.io.File.createTempFile(File.java:2076) at java.base/java.io.File.createTempFile(File.java:2136) at Main.main(Main.java:13)
25-01-2019

To submitter: I am not able to reproduce the issue at my end. I tried on Windows 7 and Windows 10 with both JDK8u202 and JDK 11.0.2 , but every time the test case ran fine. Can you please let me know if there are any inputs from you that may help reproduce the issue at my end. Also, can you please verify whether you get the same issue with the latest JDK 12-ea version as well ? You can download the same from : http://jdk.java.net/12/
17-01-2019