JDK-8072932 : Test fails with java.security.AccessControlException: access denied ("java.security.SecurityPermission" "getDomainCombiner")
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-02-11
  • Updated: 2017-07-26
  • Resolved: 2015-02-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9 Other
7-poolResolved 8u60Fixed 9 b52Fixed openjdk7uFixed
Related Reports
Relates :  
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.