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

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

    XMLWordPrintable

Details

    Description

      This bug is related to JDK-8170049, highly suspect JDK-8170049 is caused by infra or product issue rather than a test issue.
      As JDK-8170049 has been resolved by modifying tests' policy files ( because it continues to fails on mach5, and it's not easy to find root cause in infra or product ), so create this bug to track the possible infra or product issue exposed by JDK-8170049.


      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)

      Attachments

        Issue Links

          Activity

            People

              msheppar Mark Sheppard
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: