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

Test fails with java.security.AccessControlException: access denied ("java.security.SecurityPermission" "getDomainCombiner")

    XMLWordPrintable

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b52
    • Verification:
      Verified

      Backports

        Description

        The following two tests

        javax/management/modelmbean/ModelMBeanInfoSupport/GetAllDescriptorsTest.java
        javax/management/modelmbean/SimpleModelMBean/SimpleModelMBeanCommand.java

        fails on all platforms with:

        Exception:
        javax.management.RuntimeMBeanException: java.security.AccessControlException: access denied ("java.security.SecurityPermission" "getDomainCombiner")
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at SimpleModelMBeanCommand.test(SimpleModelMBeanCommand.java:199)
        at SimpleModelMBeanCommand.main(SimpleModelMBeanCommand.java:74)
        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.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)
        Caused by: java.security.AccessControlException: access denied ("java.security.SecurityPermission" "getDomainCombiner")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.security.AccessController.checkPermission(AccessController.java:894)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:541)
        at java.security.AccessControlContext.getDomainCombiner(AccessControlContext.java:356)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.getCombinedACC(ProtectionDomain.java:91)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:78)
        at javax.management.modelmbean.RequiredModelMBean.resolveMethod(RequiredModelMBean.java:1116)
        at javax.management.modelmbean.RequiredModelMBean.findRMMBMethod(RequiredModelMBean.java:1225)
        at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1009)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        ... 9 more

        Suspect that the change for JDK-8064331 introduced this.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jbachorik Jaroslav BachorĂ­k
                  Reporter:
                  ctornqvi Christian Tornqvist
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: