Details
-
Bug
-
Resolution: Fixed
-
P3
-
15
-
b25
-
x86_64
-
linux
Description
java/net/SocketOption/AfterClose.java fails several times, all with similar exceptions:
test AfterClose.closedBoundDatagramSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
java.lang.AssertionError: Expected IOException to be thrown, but IllegalArgumentException was thrown
at org.testng.Assert.expectThrows(Assert.java:1013)
at AfterClose.closedBoundDatagramSocket(AfterClose.java:254)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.IllegalArgumentException: Invalid value 'READ_ONLY'
at java.base/sun.nio.ch.DatagramChannelImpl.setOption(DatagramChannelImpl.java:341)
at java.base/sun.nio.ch.DatagramSocketAdaptor.setOption(DatagramSocketAdaptor.java:418)
at java.base/java.net.DatagramSocket.setOption(DatagramSocket.java:983)
at AfterClose.lambda$closedUnboundDatagramSocket$18(AfterClose.java:241)
at org.testng.Assert.expectThrows(Assert.java:1005)
... 29 more
Results for all the SO_INCOMING_NAPI_ID tests:
test AfterClose.closedBoundDatagramSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedBoundMulticastSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedDatagramAdapter(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedServerSocketAdapter(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedServerSocketImplCreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedServerSocketImplUncreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedSocketAdapter(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedSocketImplCreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedSocketImplUncreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedUnboundDatagramSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedUnboundMulticastSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedBoundDatagramSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
java.lang.AssertionError: Expected IOException to be thrown, but IllegalArgumentException was thrown
at org.testng.Assert.expectThrows(Assert.java:1013)
at AfterClose.closedBoundDatagramSocket(AfterClose.java:254)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.IllegalArgumentException: Invalid value 'READ_ONLY'
at java.base/sun.nio.ch.DatagramChannelImpl.setOption(DatagramChannelImpl.java:341)
at java.base/sun.nio.ch.DatagramSocketAdaptor.setOption(DatagramSocketAdaptor.java:418)
at java.base/java.net.DatagramSocket.setOption(DatagramSocket.java:983)
at AfterClose.lambda$closedUnboundDatagramSocket$18(AfterClose.java:241)
at org.testng.Assert.expectThrows(Assert.java:1005)
... 29 more
Results for all the SO_INCOMING_NAPI_ID tests:
test AfterClose.closedBoundDatagramSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedBoundMulticastSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedDatagramAdapter(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedServerSocketAdapter(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedServerSocketImplCreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedServerSocketImplUncreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedSocketAdapter(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedSocketImplCreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedSocketImplUncreated(SO_INCOMING_NAPI_ID, [READ_ONLY]): success
test AfterClose.closedUnboundDatagramSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
test AfterClose.closedUnboundMulticastSocket(SO_INCOMING_NAPI_ID, [READ_ONLY]): failure
Attachments
Issue Links
- relates to
-
JDK-8243099 SO_INCOMING_NAPI_ID support
-
- Resolved
-