JDK-8170049 : tests under java/rmi/activation/ fail with "java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:5281" "listen,resolve")" on windows
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2016-11-21
  • Updated: 2020-08-27
  • Resolved: 2016-11-22
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
8u251Fixed 9 b147Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
java/rmi/activation/Activatable/checkRegisterInLog/CheckRegisterInLog.java
java/rmi/activation/Activatable/forceLogSnapshot/ForceLogSnapshot.java
java/rmi/activation/Activatable/restartCrashedService/RestartCrashedService.java
java/rmi/activation/Activatable/restartService/RestartService.java
java/rmi/activation/ActivationSystem/modifyDescriptor/ModifyDescriptor.java

Activation.main: an exception occurred: java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:5281" "listen,resolve")
java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:5281" "listen,resolve")
	at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:471)
	at java.base/java.security.AccessController.checkPermission(AccessController.java:894)
	at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:548)
	at java.base/java.lang.SecurityManager.checkListen(SecurityManager.java:1130)
	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
	at java.base/java.nio.channels.ServerSocketChannel.bind(ServerSocketChannel.java:157)
	at RMIDSelectorProvider.inheritedChannel(RMIDSelectorProvider.java:113)
	at java.base/java.lang.System.inheritedChannel(System.java:276)
	at java.rmi/sun.rmi.server.Activation$2.run(Activation.java:1960)
	at java.rmi/sun.rmi.server.Activation$2.run(Activation.java:1958)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.rmi/sun.rmi.server.Activation.main(Activation.java:1957)
RMID: Started rmid on port 5281, at 02:27:01.476217100
TEST FAILED: Rmid process exited with status 1 after 100ms.

failure: unexpected exception TestFailedException: TEST FAILED: Rmid process exited with status 1 after 100ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 100ms.
	at TestLibrary.bomb(TestLibrary.java:121)
	at TestLibrary.bomb(TestLibrary.java:124)
	at RMID.start(RMID.java:342)
	at RMID.restart(RMID.java:385)
	at CheckRegisterInLog.main(CheckRegisterInLog.java:138)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:537)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.base/java.lang.Thread.run(Thread.java:844)
RMID: shutdown()
RMID: lookupSystem() returned null after 1002ms.
RMID: Destroying RMID process.
RMID: Destroy successful after 1003ms.
RMID: Removing rmid's old log file.
java.lang.RuntimeException: CheckRegisterInLog got exception TEST FAILED: Rmid process exited with status 1 after 100ms.
	at CheckRegisterInLog.main(CheckRegisterInLog.java:170)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:537)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.base/java.lang.Thread.run(Thread.java:844)