JDK-8038276 : java/net/NetworkInterface/Test.java fails on Windows intermittently for Teredo Interface
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-03-24
  • Updated: 2023-09-25
  • Resolved: 2014-03-28
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 8 JDK 9
8u401Fixed 9 b08Fixed
Related Reports
Relates :  
Description
TESTFAIL: java/net/NetworkInterface/Test.java

net6
/2001:0:9d38:6ab8:181c:20ee:f57a:721a
----------System.err:(12/602)----------
java.lang.Exception: getByInetAddress returned null
	at Test.main(Test.java:52)
	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.MainAction$SameVMRunnable.run(MainAction.java:754)
	at java.lang.Thread.run(Thread.java:744)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test
http://aurora-ds3.us.oracle.com:9502/runs%2F443127.CORELIBS-JDK-NIGHTLY-JTREG-8/results/workDir/java/net/NetworkInterface/Test.jtr

Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/87c8218d9ff6 User: lana Date: 2014-04-09 18:28:21 +0000
09-04-2014

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/87c8218d9ff6 User: chegar Date: 2014-03-28 16:55:48 +0000
28-03-2014

Suggested fixes sent to alias for review: http://mail.openjdk.java.net/pipermail/net-dev/2014-March/008364.html
28-03-2014

Root Cause: The test failed because virtual interface "Teredo Tunneling Pseudo-Interface" on windows returned random addresses Suggested Fixes: We should not test on windows&&Teredo Interfaces, which should be removed from our tests
27-03-2014

The Toredo interface or interfaces are generally assumed to be non testable. an isUP and a test for a InetAddress binding will prove useful or as done with other tests an explicit test for the Toredo interface getmac will produce output Physical Address Transport Name =================== ========================================================== Disabled Disconnected Disabled Disconnected 00-16-3E-3E-33-C4 \Device\Tcpip_{CE17463C-E0CF-4767-9D12-29430B5B3110} N/A Hardware not present tells us there is only one interface UP route print informs us that =========================================================================== Interface List 17...00 16 3e 3e 33 c4 ......Oracle VM Virtual Ethernet Adapter 1...........................Software Loopback Interface 1 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter 16...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface =========================================================================== of the configured interfaces and ipconfig /all Ethernet adapter Ethernet 3: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Oracle VM Virtual Ethernet Adapter Physical Address. . . . . . . . . : 00-16-3E-3E-33-C4 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv6 Address. . . . . . . . . . . : 2606:b400:418:1e71:d59:1519:d9a4:15d4(Preferred) Temporary IPv6 Address. . . . . . : 2606:b400:418:1e71:3854:a953:fd3:ee6c(Preferred) Link-local IPv6 Address . . . . . : fe80::d59:1519:d9a4:15d4%17(Preferred) IPv4 Address. . . . . . . . . . . : 10.133.141.229(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.248.0 Default Gateway . . . . . . . . . : fe80::5:73ff:fea0:12e%17 10.133.136.1 DNS Servers . . . . . . . . . . . : 130.35.249.41 192.135.82.132 144.20.190.70 Primary WINS Server . . . . . . . : 130.35.62.34 Secondary WINS Server . . . . . . : 10.204.53.18 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{CE17463C-E0CF-4767-9D12-29430B5B3110}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes has no IP address bound to the Toredo if.
25-03-2014