JDK-8057900 : TEST_BUG: java/rmi/server/RemoteObject/verifyRemoteEquals/VerifyRemoteEquals.java failed in nightly
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-09-09
  • Updated: 2021-10-15
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
tbdUnresolved
Related Reports
Relates :  
Description
TESTFAIL:java/rmi/server/RemoteObject/verifyRemoteEquals/VerifyRemoteEquals.java

The test java/rmi/server/RemoteObject/verifyRemoteEquals/VerifyRemoteEquals.java failed in nightly. see log:

#section:main
----------messages:(3/145)----------
command: main VerifyRemoteEquals
reason: User specified action: run main/othervm/timeout=40 VerifyRemoteEquals 
elapsed time (seconds): 0.509
----------System.out:(5/38)----------


Regression test for, 4251010


----------System.err:(33/2183)----------
java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
	at java.net.NetworkInterface.getAll(Native Method)
	at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:343)
	at sun.security.provider.SeedGenerator.addNetworkAdapterInfo(SeedGenerator.java:229)
	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:458)
	at java.security.SecureRandom.next(SecureRandom.java:481)
	at java.util.Random.nextInt(Random.java:329)
	at java.rmi.server.UID.<init>(UID.java:112)
	at java.rmi.server.ObjID.<clinit>(ObjID.java:88)
	at sun.rmi.transport.LiveRef.<init>(LiveRef.java:85)
	at sun.rmi.server.UnicastServerRef2.<init>(UnicastServerRef2.java:69)
	at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:346)
	at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:225)
	at VerifyRemoteEquals$TestImpl.<init>(VerifyRemoteEquals.java:70)
	at VerifyRemoteEquals.main(VerifyRemoteEquals.java:187)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:484)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
----------rerun:(22/2617)*----------
'PATH=C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\Program Files\\Oracle\\VirtualBox;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\TortoiseHg' \\
SystemDrive=C: \\
'SystemRoot=C:\\Windows' \\
'TEMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
'TMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
'windir=C:\\Windows' \\
'CLASSPATH=C:\\Users\\aurora\\CommonData\\jtreg\\lib\\javatest.jar;C:\\Users\\aurora\\CommonData\\jtreg\\lib\\jtreg.jar;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\testlibrary;C:\\users\\aurora\\CommonData\\jdk\\lib\\tools.jar' \\
    'C:\\users\\aurora\\CommonData\\jdk\\bin\\java' \\
        -Dtest.vm.opts='-ea -esa -Xmx512m' \\
        -Dcompile.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
        -Dtest.src.path='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\rmi\\testlibrary' \\
        -Dtest.src='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals' \\
        -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
        -Dtest.class.path='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\testlibrary' \\
        -Dtest.timeout.factor=4.0 \\
        -Dtest.classes='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals' \\
        -Dtest.class.path.prefix='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals;C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\testlibrary' \\
        -Dtest.jdk='C:\\users\\aurora\\CommonData\\jdk' \\
        -Dtest.java.opts= \\
        -Dtest.compiler.opts= \\
        -ea -esa -Xmx512m \\
        com.sun.javatest.regtest.MainWrapper 'C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_rmi\\JTwork\\classes\\java\\rmi\\server\\RemoteObject\\verifyRemoteEquals\\VerifyRemoteEquals.jta'
result: Failed. Execution failed: `main' threw exception: java.lang.Error: IP Helper Library GetAdaptersAddresses function failed


test result: Failed. Execution failed: `main' threw exception: java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
Comments
I've run the test multiple times (200) in a loop, and it didn't produce the failure. This was done repeatedly over the course of a day. The GetAdaptersAddresses is invoked from within getAdapters (NetworkInterface_winXP). I was anticipating that the failure could be reproduced, within the loop, as the test machine has a Teredo interface, which is enabled/disabled and configured with an IPv6 address intermittently. But, to no avail yet!! We could augment the Exception thrown to detail a more precise cause of failure i.e. the error code from GetAdaptersAddresses. Will keep probing
09-09-2014

I re-run on that specific machine and the same build, but not reproduced. It looks like an intermittent failure.
09-09-2014

RULE java/rmi/server/RemoteObject/verifyRemoteEquals/VerifyRemoteEquals.java Exception java.lang.Error: IP Helper Library GetAdaptersAddresses function failed
09-09-2014