java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Johann Burkard, 1 year ago
access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
via Spring JIRA by Johann Burkard, 1 year ago
access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
via river-user by helcio silva, 1 year ago
access denied > (java.lang.RuntimePermission createSecurityManager)
via Oracle Community by 3004, 1 year ago
access denied ( java.lang.RuntimePermission createSecurityManager )
via Oracle Community by 3004, 1 year ago
access denied ( java.lang.RuntimePermission createSecurityManager )
via Oracle Community by 3004, 1 year ago
access denied ( java.lang.RuntimePermission createSecurityManager)
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:382)
at java.security.AccessController.checkPermission(AccessController.java:572)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:55)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1525)
at sun.reflect.misc.ReflectUtil.checkPackageAccess(ReflectUtil.java:188)
at sun.reflect.misc.ReflectUtil.checkPackageAccess(ReflectUtil.java:164)
at org.springframework.core.annotation.AnnotationUtils.synthesizeAnnotation(AnnotationUtils.java:1364)
at org.springframework.core.annotation.AnnotationUtils.findAnnotation(AnnotationUtils.java:685)
at org.springframework.core.annotation.AnnotationUtils.findAnnotation(AnnotationUtils.java:660)
at org.springframework.core.annotation.OrderUtils.getOrder(OrderUtils.java:67)
at org.springframework.core.annotation.OrderUtils.getOrder(OrderUtils.java:56)
at org.springframework.core.annotation.AnnotationAwareOrderComparator.findOrder(AnnotationAwareOrderComparator.java:84)
at org.springframework.core.OrderComparator.getOrder(OrderComparator.java:127)
at org.springframework.core.OrderComparator.getOrder(OrderComparator.java:116)
at org.springframework.core.OrderComparator.doCompare(OrderComparator.java:87)
at java.util.Arrays.mergeSort(Arrays.java:758)
at java.util.Arrays.mergeSort(Arrays.java:769)
at java.util.Arrays.legacyMergeSort(Arrays.java:668)
at java.util.Arrays.sort(Arrays.java:657)
at java.util.Collections.sort(Collections.java:217)
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:396)
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:385)
at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:263)
at org.springframework.boot.SpringApplication.(SpringApplication.java:237)
at org.springframework.boot.builder.SpringApplicationBuilder.createSpringApplication(SpringApplicationBuilder.java:99)
at org.springframework.boot.legacy.context.web.SpringBootContextLoaderListener.initWebApplicationContext(SpringBootContextLoaderListener.java:48)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
5 times, 3 weeks ago
Once, 4 months ago
Once, 4 months ago
79 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.