JDK-8169363 : TEST_BUG: java/rmi/activation/Activatable tests fail due to "java.net.SocketException: Operation not supported on transport endpoint"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 9,11,14,15
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris
  • CPU: x86_64
  • Submitted: 2016-11-08
  • Updated: 2023-01-05
  • Resolved: 2023-01-05
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
java/rmi/activation/Activatable/restartLatecomer/RestartLatecomer.java
java/rmi/activation/Activatable/checkImplClassLoader/CheckImplClassLoader.java




----------System.out:(4/72)----------

Regression test for bug 4526514

RMIDSelectorProvider.inheritedChannel
----------System.err:(55/5065)----------
RMID: Starting rmid on port 0.
JAVAVM: command = [/scratch/export/home/aurora/sandbox_keepme/jdk/bin/java, -ea, -esa, -Xmx512m, -Djava.security.policy=/scratch/export/home/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/restartLatecomer/rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=/scratch/export/home/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/restartLatecomer, -Dtest.classes=/scratch/export/home/aurora/sandbox_keepme/results/run_30/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/restartLatecomer, -Djava.rmi.server.logLevel=v, -Dsun.rmi.activation.execTimeout=60000, -classpath, /scratch/export/home/aurora/sandbox_keepme/results/run_30/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/restartLatecomer:/scratch/export/home/aurora/sandbox_keepme/results/run_30/tier3/JTwork/jdk_test/classes/5/java/rmi/testlibrary, --add-exports=java.base/sun.nio.ch=ALL-UNNAMED, -Djava.nio.channels.spi.SelectorProvider=RMIDSelectorProvider, -Dsun.rmi.server.activation.disableErrRedirect=true, sun.rmi.server.Activation, -log, /scratch/export/home/aurora/sandbox_keepme/results/run_30/tier3/JTwork/jdk_test/scratch/8/./log, -C-Dtest.src=/scratch/export/home/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/restartLatecomer, -C-Dtest.classes=/scratch/export/home/aurora/sandbox_keepme/results/run_30/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/restartLatecomer, -C-ea, -C-esa, -C-Xmx512m, -C-Djava.rmi.server.useCodebaseOnly=false]
Activation.main: an exception occurred: java.security.PrivilegedActionException: java.net.SocketException: Operation not supported on transport endpoint
java.security.PrivilegedActionException: java.net.SocketException: Operation not supported on transport endpoint
	at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
	at sun.rmi.server.Activation.main(java.rmi@9-ea/Activation.java:1957)
Caused by: java.net.SocketException: Operation not supported on transport endpoint
	at sun.nio.ch.Net.listen(java.base@9-ea/Native Method)
	at sun.nio.ch.ServerSocketChannelImpl.bind(java.base@9-ea/ServerSocketChannelImpl.java:226)
	at java.nio.channels.ServerSocketChannel.bind(java.base@9-ea/ServerSocketChannel.java:157)
	at RMIDSelectorProvider.inheritedChannel(RMIDSelectorProvider.java:101)
	at java.lang.System.inheritedChannel(java.base@9-ea/System.java:276)
	at sun.rmi.server.Activation$2.run(java.rmi@9-ea/Activation.java:1960)
	at sun.rmi.server.Activation$2.run(java.rmi@9-ea/Activation.java:1958)
	... 2 more
RMID: Started rmid on port 0.
TEST FAILED: Rmid process exited with status 1 after 102ms.
TEST FAILED: 
Test failed with: TEST FAILED: Rmid process exited with status 1 after 102ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 102ms.
	at TestLibrary.bomb(TestLibrary.java:121)
	at TestLibrary.bomb(TestLibrary.java:124)
	at RMID.start(RMID.java:312)
	at RMID.start(RMID.java:271)
	at RestartLatecomer.main(RestartLatecomer.java:171)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:537)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:844)
RMID: shutdown()
RMID: lookupSystem() returned null after 158ms.
RMID: Destroying RMID process.
RMID: Destroy successful after 162ms.
TestFailedException: TEST FAILED: ; nested exception is: 
	TestFailedException: TEST FAILED: Rmid process exited with status 1 after 102ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 102ms.
	at TestLibrary.bomb(TestLibrary.java:121)
	at TestLibrary.bomb(TestLibrary.java:124)
	at RMID.start(RMID.java:312)
	at RMID.start(RMID.java:271)
	at RestartLatecomer.main(RestartLatecomer.java:171)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:537)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:844)

JavaTest Message: Test threw exception: TestFailedException: TEST FAILED: ; nested exception is: 
	TestFailedException: TEST FAILED: Rmid process exited with status 1 after 102ms.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: TestFailedException: TEST FAILED: Rmid process exited with status 1 after 102ms.
Comments
RMI Activation has been removed; it probably isn't worth investigating these old intermittent test failures.
05-01-2023

Latest investigation result shows that the root cause of this test" issue should be a production issue or system issue on Solaris. please check JDK-8173926 for details.
04-02-2017

The latest official word on JDK 9 policies from Jan. 19, 2017 concerning tests is "Enhancements to tests or documentation do not require advance approval." http://mail.openjdk.java.net/pipermail/jdk9-dev/2017-January/005505.html I would consider fixing flaky tests a test enhancement and thus not requiring advance approval and still appropriate to fix in JDK 9.
04-02-2017

Also affected java/rmi/activation/CommandEnvironment/SetChildEnv.java
24-01-2017

Is this issue related to JDK-8170156? both failed at RMIDSelectorProvider.inheritedChannel -> java.nio.channels.ServerSocketChannel::bind(SocketAddress). But this issue fails only on solaris, JDK-8170156 fails only on windows.
22-11-2016