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

javax/management/remote/mandatory/subjectDelegation/* fail with java.security.AccessControlException

    XMLWordPrintable

    Details

      Description

      Following tests
      javax/management/remote/mandatory/subjectDelegation/SubjectDelegation2Test.java
      javax/management/remote/mandatory/subjectDelegation/SubjectDelegation3Test.java
      failed with
      Create an RMI connector server
      Create an RMI connector client
      Got unexpected security exception = java.security.AccessControlException: access denied ("java.net.SocketPermission" "10.133.171.198:34692" "connect,resolve")
      Bye! Bye!
      ----------System.err:(55/4530)----------
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "10.133.171.198:34692" "connect,resolve")
      at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
      at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
      at java.base/java.lang.SecurityManager.checkConnect(SecurityManager.java:1060)
      at java.base/java.net.Socket.connect(Socket.java:586)
      at java.base/java.net.Socket.connect(Socket.java:540)
      at java.base/java.net.Socket.(Socket.java:436)
      at java.base/java.net.Socket.(Socket.java:213)
      at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:214)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
      at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
      at java.management.rmi/javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
      at java.management.rmi/javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2105)
      at java.management.rmi/javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:321)
      at java.management/javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
      at SubjectDelegation2Test.main(SubjectDelegation2Test.java:139)
      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:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)
      java.security.AccessControlException: access denied ("java.net.SocketPermission" "10.133.171.198:34692" "connect,resolve")
      at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
      at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
      at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
      at java.base/java.lang.SecurityManager.checkConnect(SecurityManager.java:1060)
      at java.base/java.net.Socket.connect(Socket.java:586)
      at java.base/java.net.Socket.connect(Socket.java:540)
      at java.base/java.net.Socket.(Socket.java:436)
      at java.base/java.net.Socket.(Socket.java:213)
      at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:214)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
      at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
      at java.management.rmi/javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
      at java.management.rmi/javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2105)
      at java.management.rmi/javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:321)
      at java.management/javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
      at SubjectDelegation2Test.main(SubjectDelegation2Test.java:139)
      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:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: Test threw exception: java.security.AccessControlException: access denied ("java.net.SocketPermission" "10.133.171.198:34692" "connect,resolve")
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.security.AccessControlException: access denied ("java.net.SocketPermission" "10.133.171.198:34692" "connect,resolve")

        Attachments

          Activity

            People

            Assignee:
            uvangapally Ujwal Vangapally (Inactive)
            Reporter:
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: