aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

jdk_net and jdk_nio fails on linux with java8

Open sophia-guo opened this issue 6 years ago • 14 comments

No issues in JBS: java/net/InetAddress/BadDottedIPAddress.java failed with 'UnknownHostException was not thrown for: 999.999.999.999'

Stacktrace

Execution failed: `main' threw exception: java.lang.Exception: UnknownHostException was not thrown for: 999.999.999.999    

Standard Output

    

Standard Error

java.lang.Exception: UnknownHostException was not thrown for: 999.999.999.999
	at BadDottedIPAddress.main(BadDottedIPAddress.java:49)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_net_InetAddress_BadDottedIPAddress/java/BadDottedIPAddress/

With issue opened in JBS: java/net/InetAddress/CachedUnknownHostName.java failed with 'java.lang.Exception: Missing java.net.UnknownHostException '

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_net_InetAddress_CachedUnknownHostName/java/CachedUnknownHostName/

Standard Error

Missing java.net.UnknownHostException for host bogusHostName
java.lang.Exception: Missing java.net.UnknownHostException
	at CachedUnknownHostName.main(CachedUnknownHostName.java:41)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

https://bugs.openjdk.java.net/browse/JDK-8056988 opened for window, should update with linux too.

sophia-guo avatar Jan 23 '19 20:01 sophia-guo

Without issue opened in JBS: java/net/Socks/SocksV4Test.java failed with ' Test cannot run. resolvable address:doesnot.exist.invalid/104.17.16.123' https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_net_Socks_SocksV4Test/java/SocksV4Test/

java.lang.RuntimeException: Test cannot run. resolvable address:doesnot.exist.invalid/104.17.16.123
	at SocksV4Test.assertUnresolvableHost(SocksV4Test.java:70)
	at SocksV4Test.main(SocksV4Test.java:41)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

sophia-guo avatar Jan 23 '19 21:01 sophia-guo

With issue opened in JBS: java/net/InetAddress/IPv4Formats.java.IPv4Formats failed with 'invalidhost.invalid should throw UnknownHostException!'

java.lang.RuntimeException: invalidhost.invalid should throw UnknownHostException!
	at IPv4Formats.main(IPv4Formats.java:58)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_net_InetAddress_IPv4Formats/java/IPv4Formats/

https://bugs.openjdk.java.net/browse/JDK-8058932

sophia-guo avatar Jan 23 '19 21:01 sophia-guo

With issue opened in JBS: java/net/SocketPermission/Wildcard.java failed with '"*.blabla.bla" "connect,listen,accept,resolve") does not imply ("java.net.SocketPermission" "bla.blabla.bla" '

java.lang.RuntimeException: Failed: ("java.net.SocketPermission" "*.blabla.bla" "connect,listen,accept,resolve") does not imply ("java.net.SocketPermission" "bla.blabla.bla" "connect,listen,accept,resolve")
	at Wildcard.main(Wildcard.java:41)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_net_SocketPermission_Wildcard/java/Wildcard/

https://bugs.openjdk.java.net/browse/JDK-7021280

sophia-guo avatar Jan 23 '19 21:01 sophia-guo

No issue opened in JBS: java/nio/channels/SocketChannel/ExceptionTranslation.java failed with 'java.net.SocketTimeoutException'

java.net.SocketTimeoutException
	at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:118)
	at ExceptionTranslation.main(ExceptionTranslation.java:40)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_nio_channels_SocketChannel_ExceptionTranslation/java/ExceptionTranslation/

sophia-guo avatar Jan 23 '19 21:01 sophia-guo

No issue opened in JBS: java/nio/channels/DatagramChannel/SendToUnresolved.java failed with 'java.lang.RuntimeException: Expected exception not thrown '

java.lang.RuntimeException: Expected exception not thrown
	at SendToUnresolved.main(SendToUnresolved.java:44)
	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:498)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/306/testReport/junit/java_nio_channels_DatagramChannel_SendToUnresolved/java/SendToUnresolved/

sophia-guo avatar Jan 23 '19 21:01 sophia-guo

java/net/ipv6tests/B6521014.java on linux got 'Cannot assign requested address 'Test failed: cannot create socket'

Standard Error

java.lang.RuntimeException: Test failed: cannot create socket.
	at B6521014.main(B6521014.java:123)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:813)
Caused by: java.net.BindException: Cannot assign requested address (Bind failed)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
	at java.net.Socket.bind(Socket.java:644)
	at B6521014.test2(B6521014.java:103)
	at B6521014.main(B6521014.java:121)
	... 6 more

JBS: https://bugs.openjdk.java.net/browse/JDK-8006560

java/net/Inet6Address/B6206527.java 'Cannot assign requested address (Bind failed) '

java.net.BindException: Cannot assign requested address (Bind failed)
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
	at java.net.ServerSocket.bind(ServerSocket.java:375)
	at java.net.ServerSocket.bind(ServerSocket.java:329)
	at B6206527.main(B6206527.java:53)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:813)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_linux/433/testReport/junit/java_net_Inet6Address_B6206527/java/B6206527/ JBS: https://bugs.openjdk.java.net/browse/JDK-6670327

java/net/MulticastSocket/SetOutgoingIf.java on linux MulticastSocket.receive(datagramPacket) got 'Expected message not received, Receive timed out '

_java.lang.RuntimeException: Expected message not received, Receive timed out
	at Promiscuous.receive(Promiscuous.java:62)
	at Promiscuous.test(Promiscuous.java:94)
	at Promiscuous.main(Promiscuous.java:135)
	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:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:813)

java/net/ipv6tests/UdpTest.java 'timeout'

14:52:17 ACTION: main -- Error. Agent error: java.lang.Exception: Agent 1 timed out with a timeout of 960 seconds; check console log for any additional details
14:52:17 REASON: Assumed action based on file name: run main UdpTest 
14:52:17 TIME:   960.016 seconds
14:52:17 messages:
14:52:17 command: main UdpTest
14:52:17 reason: Assumed action based on file name: run main UdpTest 
14:52:17 Mode: agentvm
14:52:17 Agent id: 1
14:52:17 Timeout refired 960 times

JBS: https://bugs.openjdk.java.net/browse/JDK-8054118 https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/313/#showFailuresLink

sophia-guo avatar Feb 08 '19 16:02 sophia-guo

com/sun/net/httpserver/Test1.java get timeout error Program /home/jenkins/workspace/openjdk8_hs_openjdktest_ppc64le_linux/openjdkbinary/j2sdk-image/jre/bin/../../bin/java' timed out (timeout set to 960000ms, elapsed time including timeout handling was 960563ms)' could be a net work issue? https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_ppc64le_linux/265/console

sophia-guo avatar Feb 14 '19 16:02 sophia-guo

Intermittent failure on Macosx as timeout java/net/Inet6Address/B6558853.java same behavior as java/net/ipv6tests/UdpTest.java

sophia-guo avatar Aug 08 '19 19:08 sophia-guo

This issue is pretty stale. Are there more current or specific issues that cover the failures? What actions need to be taken to address and close this one?

smlambert avatar Feb 17 '21 04:02 smlambert

Those tests failed with hotspot. Some of them are recorded in JBS with issue opened or resolved ( resolved, but still failed in AdoptOpenJDK).

Most of them are still excluded by ProblemList. I can reenable to see if issues still exist.

sophia-guo avatar Feb 17 '21 12:02 sophia-guo

Test fail java/net/Socket/asyncClose/Race.java.Race

Jenkins URL: https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_ppc64_aix_testList_0/6/#showFailuresLink TRSS Link: https://trss.adoptium.net/allTestsInfo?buildId=616d7be7c6182d02177fff72&limit=5&hasChildren=true

SehrishHussain avatar Oct 22 '21 08:10 SehrishHussain

Doing a review of old issues, @sophia-guo is this an issue that needs to remain? It is somewhat general and does not include some of information that we would hope to capture and there are also no PRs linked to this issue, though I have not looked in ProblemLists if there is mention of it. There are 3 other issues that have referenced it.

smlambert avatar Sep 28 '22 15:09 smlambert

All tests mentioned here are referenced by ProblemLists. The exclusion may be done combined with others so no PR is linked.

sophia-guo avatar Oct 13 '22 18:10 sophia-guo

All tests excluded by https://github.com/adoptium/aqa-tests/issues/593.

sophia-guo avatar Apr 03 '24 20:04 sophia-guo