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

rmi/activation/Activatable/checkRegisterInLog/CheckRegisterInLog.java fail on windows OCI Clients

    Details

      Description

      java/rmi/activation/Activatable/checkRegisterInLog/CheckRegisterInLog.java fails constantly with

      failure: unexpected exception java.rmi.activation.ActivateFailedException: activation failed; nested exception is:
      java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:25733" "listen,resolve")
      java.rmi.activation.ActivateFailedException: activation failed; nested exception is:
      java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:25733" "listen,resolve")
      at sun.rmi.server.ActivatableRef.activate(ActivatableRef.java:304)
      at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:133)
      at CheckRegisterInLog_Stub.ping(CheckRegisterInLog_Stub.java:77)
      at CheckRegisterInLog.main(CheckRegisterInLog.java:150)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:25733" "listen,resolve")
      at sun.rmi.server.ActivationGroupImpl.newInstance(ActivationGroupImpl.java:310)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
      at sun.rmi.transport.Transport$1.run(Transport.java:200)
      at sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:303)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:279)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
      at java.rmi.activation.ActivationGroup_Stub.newInstance(Unknown Source)
      at sun.rmi.server.Activation$ObjectEntry.activate(Activation.java:1494)
      at sun.rmi.server.Activation$GroupEntry.activate(Activation.java:1180)
      at sun.rmi.server.Activation$ActivatorImpl.activate(Activation.java:409)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
      at sun.rmi.transport.Transport$1.run(Transport.java:200)
      at sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:303)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:279)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
      at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:235)
      at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:180)
      at com.sun.proxy.$Proxy2.activate(Unknown Source)
      at java.rmi.activation.ActivationID.activate(ActivationID.java:132)
      at sun.rmi.server.ActivatableRef.activate(ActivatableRef.java:277)
      ... 9 more
      Caused by: java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:25733" "listen,resolve")
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      at java.security.AccessController.checkPermission(AccessController.java:886)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      at java.lang.SecurityManager.checkListen(SecurityManager.java:1131)
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:355)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:254)
      at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:412)
      at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:237)
      at java.rmi.activation.Activatable.exportObject(Activatable.java:577)
      at java.rmi.activation.Activatable.exportObject(Activatable.java:503)
      at java.rmi.activation.Activatable.<init>(Activatable.java:191)
      at CheckRegisterInLog.<init>(CheckRegisterInLog.java:51)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at sun.rmi.server.ActivationGroupImpl$1.run(ActivationGroupImpl.java:269)
      at sun.rmi.server.ActivationGroupImpl$1.run(ActivationGroupImpl.java:252)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.server.ActivationGroupImpl.newInstance(ActivationGroupImpl.java:251)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
      at sun.rmi.transport.Transport$1.run(Transport.java:200)
      at sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      ... 1 more
      ACTIVATION_LIBRARY: Activation System available after 0 milliseconds
      RMID: getting a reference to the activation system
      RMID: obtained a reference to the activation system
      RMID: testlibrary finished shutting down rmid
      activation daemon shut down
      RMID: RMID's process still not terminated after more than 200 milliseconds
      RMID: rmid exited on shutdown request
      ACTIVATION_LIBRARY: finished destroying rmid
      RMID: removing rmid's old log file...
      java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is:
      java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:25733" "listen,resolve")
      at CheckRegisterInLog.main(CheckRegisterInLog.java:165)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:748)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is:
      java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:25733" "listen,resolve")
      JavaTest Message: shutting down test


      May be checkRegisterInLog/group.security.policy and security.policy should also contain the changes from JDK-8170049 ?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kravikumar Kiran Sidhartha Ravikumar
                Reporter:
                kravikumar Kiran Sidhartha Ravikumar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: