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

TEST_BUG: java/rmi/activation/Activatable/restartService/RestartService.java failed access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")

XMLWordPrintable

      java/rmi/activation/Activatable/restartService/RestartService.java failed access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")



      ----------System.out:(5/112)----------

      Regression test for bug 4095165

      RMIDSelectorProvider.inheritedChannel
      RmidSelectorProvider-listening-On:42086
      ----------System.err:(113/10079)----------
      RMID: Starting rmid on port 0, at 00:53:35.850572
      JAVAVM: command = [/scratch/aurora/sandbox_keepme/jdk/bin/java, -ea, -esa, -Xmx512m, -Djava.security.policy=/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/restartService/rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/restartService, -Dtest.classes=/scratch/aurora/sandbox_keepme/results/run_73/tier3/JTwork/jdk_test/classes/9/java/rmi/activation/Activatable/restartService, -Djava.rmi.server.logLevel=v, -Dsun.rmi.activation.execTimeout=60000, -Dsun.rmi.transport.tcp.handshakeTimeout=5000, -classpath, /scratch/aurora/sandbox_keepme/results/run_73/tier3/JTwork/jdk_test/classes/9/java/rmi/activation/Activatable/restartService:/scratch/aurora/sandbox_keepme/results/run_73/tier3/JTwork/jdk_test/classes/9/java/rmi/testlibrary, --add-exports=java.base/sun.nio.ch=ALL-UNNAMED, -Djava.nio.channels.spi.SelectorProvider=RMIDSelectorProvider, -Dtest.java.rmi.testlibrary.RMIDSelectorProvider.port=0, -Dtest.java.rmi.testlibrary.RMIDSelectorProvider.timeout=0, -Dsun.rmi.server.activation.disableErrRedirect=true, sun.rmi.server.Activation, -log, /scratch/aurora/sandbox_keepme/results/run_73/tier3/JTwork/jdk_test/scratch/5/./log, -C-Dtest.src=/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/restartService, -C-Dtest.classes=/scratch/aurora/sandbox_keepme/results/run_73/tier3/JTwork/jdk_test/classes/9/java/rmi/activation/Activatable/restartService, -C-ea, -C-esa, -C-Xmx512m, -C-Djava.rmi.server.useCodebaseOnly=false]
      RMID: Started rmid on port 42086, at 00:53:36.109701
      Sun Dec 04 00:53:36 PST 2016
      rmid startup with inherited channel: sun.nio.ch.ServerSocketChannelImpl[localhost/127.0.0.1:42086]
      RMID: looking up activation system, at 00:53:36.210490
      RMID: Started successfully after 223ms, at 00:53:36.333047
      Creating descriptors
      TEST FAILED:
      Test failed with: access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")
      java.security.AccessControlException: access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")
      at java.rmi/sun.rmi.server.Activation$DefaultExecPolicy.checkPermission(Activation.java:1930)
      at java.rmi/sun.rmi.server.Activation$DefaultExecPolicy.checkExecCommand(Activation.java:1823)
      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:538)
      at java.rmi/sun.rmi.server.Activation.checkArgs(Activation.java:1441)
      at java.rmi/sun.rmi.server.Activation.access$400(Activation.java:135)
      at java.rmi/sun.rmi.server.Activation$ActivationSystemImpl.registerGroup(Activation.java:538)
      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:538)
      at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:344)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:800)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:682)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:844)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
      at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
      at java.rmi/sun.rmi.server.Activation$ActivationSystemImpl_Stub.registerGroup(Unknown Source)
      at RestartService.main(RestartService.java:165)
      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:538)
      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: ActivationSystem.shutdown()
      RMID: Shutdown timed out after 480067ms:
      java.util.concurrent.TimeoutException
      at JavaVM.waitFor(JavaVM.java:268)
      at RMID.shutdown(RMID.java:414)
      at RMID.destroy(RMID.java:440)
      at RMID.cleanup(RMID.java:469)
      at RestartService.main(RestartService.java:230)
      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:538)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)
      RMID: Destroying RMID process.
      RMID: Destroy successful after 480480ms.
      RMID: Removing rmid's old log file.
      TEST_LIBRARY: unexporting object...
      TestFailedException: TEST FAILED: ; nested exception is:
      java.security.AccessControlException: access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")
      java.security.AccessControlException: access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")
      at java.rmi/sun.rmi.server.Activation$DefaultExecPolicy.checkPermission(Activation.java:1930)
      at java.rmi/sun.rmi.server.Activation$DefaultExecPolicy.checkExecCommand(Activation.java:1823)
      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:538)
      at java.rmi/sun.rmi.server.Activation.checkArgs(Activation.java:1441)
      at java.rmi/sun.rmi.server.Activation.access$400(Activation.java:135)
      at java.rmi/sun.rmi.server.Activation$ActivationSystemImpl.registerGroup(Activation.java:538)
      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:538)
      at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:344)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:800)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:682)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:844)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
      at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
      at java.rmi/sun.rmi.server.Activation$ActivationSystemImpl_Stub.registerGroup(Unknown Source)
      at RestartService.main(RestartService.java:165)
      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:538)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: Test threw exception: TestFailedException: TEST FAILED: ; nested exception is:
      java.security.AccessControlException: access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: java.security.AccessControlException: access denied ("com.sun.rmi.rmid.ExecOptionPermission" "-Djava.security.manager")

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

              Created:
              Updated:
              Resolved: