Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8170049

tests under java/rmi/activation/ fail with "java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:5281" "listen,resolve")" on windows

XMLWordPrintable

    • b147
    • windows

        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)

              mli Hamlin Li
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: