AnnotationUtils.findAnnotation() has thrown an AccessControlException

java.security.AccessControlException
at java.security.AccessControlContext.checkPermission
(source)
at java.security.AccessController.checkPermission
(source)
at java.lang.SecurityManager.checkPermission
(source)
at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission
at java.lang.SecurityManager.checkPackageAccess
(source)
at sun.reflect.misc.ReflectUtil.checkPackageAccess
(source)
at sun.reflect.misc.ReflectUtil.checkPackageAccess
(source)
at java.lang.reflect.Proxy.getInvocationHandler
(source)
at org.springframework.core.annotation.AnnotationUtils.synthesizeAnnotation
(source)
at org.springframework.core.annotation.AnnotationUtils.findAnnotation
(source)
at org.springframework.core.annotation.AnnotationUtils.findAnnotation
(source)
10 frames hidden

Typical Exception Messages

  1. access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
  2. access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")

Origin

SecurityManager.checkPackageAccess() has thrown an AccessControlException

java.security.AccessControlException
4 frames hidden
java.lang.SecurityManager.checkPackageAccess
4Web pages

External results for this pattern (4)

  1. Johann Burkardvia Spring JIRA3 weeks ago
    access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
    Show stack trace
  2. access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
    Show stack trace
  3. Marek Raszewski via StackOverflowvia Google Groups8 months ago
    access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
    Show stack trace
  4. Johann Burkardvia Spring JIRA2 years ago
    access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
    Show stack trace