-
Bug
-
Resolution: Duplicate
-
P2
-
10
Tests:
com/sun/management/MemoryMXBeanTest.java
jdk/management/cmm/SystemResourcePressureMXBeanTest.java
sun/management/HSDiagHeapDump.java
javax/management/MBeanServer/PlatformMBeanTest.java
javax/management/security/CR16243976.java
javax/management/security/DeserializationSecurity/DeserializationSecurityTest.java
com/oracle/jfr/jmx/security/TestEnoughPermission.java
com/oracle/jfr/jmx/security/TestNoControlPermission.java
com/oracle/jfr/jmx/security/TestNoMonitorPermission.java
com/oracle/jfr/jmx/security/TestNotificationListenerPermission.java
java.lang.ExceptionInInitializerError
at java.management/java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:684)
at java.management/java.lang.management.ManagementFactory.getMemoryMXBean(ManagementFactory.java:343)
at MemoryMXBeanTest.main(MemoryMXBeanTest.java:41)
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)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.management.spi")
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.checkPackageAccess(SecurityManager.java:1534)
at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:680)
at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:678)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:678)
at java.base/java.lang.ClassLoader.defineClass2(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1098)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:206)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.lambda$findClassInModuleOrNull$2(BuiltinClassLoader.java:683)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:684)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClass(BuiltinClassLoader.java:562)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:607)
at java.base/java.lang.Class.forName(Class.java:451)
at java.base/java.util.ServiceLoader.lambda$loadProvider$1(ServiceLoader.java:852)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:854)
at java.base/java.util.ServiceLoader.access$600(ServiceLoader.java:390)
at java.base/java.util.ServiceLoader$ModuleServicesLookupIterator.hasNext(ServiceLoader.java:1071)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1294)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1379)
at java.base/java.lang.Iterable.forEach(Iterable.java:74)
at java.management/java.lang.management.ManagementFactory$PlatformMBeanFinder.lambda$static$0(ManagementFactory.java:925)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:429)
at java.management/java.lang.management.ManagementFactory$PlatformMBeanFinder.(ManagementFactory.java:921)
... 9 more
com/sun/management/MemoryMXBeanTest.java
jdk/management/cmm/SystemResourcePressureMXBeanTest.java
sun/management/HSDiagHeapDump.java
javax/management/MBeanServer/PlatformMBeanTest.java
javax/management/security/CR16243976.java
javax/management/security/DeserializationSecurity/DeserializationSecurityTest.java
com/oracle/jfr/jmx/security/TestEnoughPermission.java
com/oracle/jfr/jmx/security/TestNoControlPermission.java
com/oracle/jfr/jmx/security/TestNoMonitorPermission.java
com/oracle/jfr/jmx/security/TestNotificationListenerPermission.java
java.lang.ExceptionInInitializerError
at java.management/java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:684)
at java.management/java.lang.management.ManagementFactory.getMemoryMXBean(ManagementFactory.java:343)
at MemoryMXBeanTest.main(MemoryMXBeanTest.java:41)
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)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.management.spi")
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.checkPackageAccess(SecurityManager.java:1534)
at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:680)
at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:678)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:678)
at java.base/java.lang.ClassLoader.defineClass2(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1098)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:206)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.lambda$findClassInModuleOrNull$2(BuiltinClassLoader.java:683)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:684)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClass(BuiltinClassLoader.java:562)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:607)
at java.base/java.lang.Class.forName(Class.java:451)
at java.base/java.util.ServiceLoader.lambda$loadProvider$1(ServiceLoader.java:852)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.ServiceLoader.loadProvider(ServiceLoader.java:854)
at java.base/java.util.ServiceLoader.access$600(ServiceLoader.java:390)
at java.base/java.util.ServiceLoader$ModuleServicesLookupIterator.hasNext(ServiceLoader.java:1071)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1294)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1379)
at java.base/java.lang.Iterable.forEach(Iterable.java:74)
at java.management/java.lang.management.ManagementFactory$PlatformMBeanFinder.lambda$static$0(ManagementFactory.java:925)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:429)
at java.management/java.lang.management.ManagementFactory$PlatformMBeanFinder.(ManagementFactory.java:921)
... 9 more
- duplicates
-
JDK-8189193 FindClass should only see classes from the boot loader called from its associated native library
- Closed
- relates to
-
JDK-8188775 Module jdk.internal.vm.compiler.management has not been granted accessClassInPackage.org.graalvm.compiler.hotspot
- Resolved
-
JDK-8189212 Exception: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.nio.fs")
- Closed