AnnotationUtils.findAnnotation() has thrown an AccessControlException

java.security.AccessControlException
at java.security.AccessControlContext.checkPermission
AccessControlException if the specified permission is not permitted, based on the current security policy and the context encapsulated by this object.
at java.security.AccessController.checkPermission
at java.lang.SecurityManager.checkPermission
SecurityException if access is not permitted based on the current security policy.
at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission
at java.lang.SecurityManager.checkPackageAccess
SecurityException if the calling thread does not have permission to access the specified package.
at sun.reflect.misc.ReflectUtil.checkPackageAccess
at sun.reflect.misc.ReflectUtil.checkPackageAccess
at java.lang.reflect.Proxy.getInvocationHandler
SecurityException if a security manager, s, is present and the caller's class loader is not the same as or an ancestor of the class loader for the invocation handler and invocation of @link SecurityManager#checkPackageAccess s.checkPackageAccess() denies access to the invocation handler's class.
at org.springframework.core.annotation.AnnotationUtils.synthesizeAnnotation
at org.springframework.core.annotation.AnnotationUtils.findAnnotation
at org.springframework.core.annotation.AnnotationUtils.findAnnotation
11 lines hidden

Matching stack traces (4)

  1. mar14 via StackOverflowvia Google Groups6 months ago
    access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.annotation")
  2. Marek Wiącekvia Spring JIRA1 year ago
    Cannot load configuration class: org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
  3. Marek Wiącekvia Spring JIRA1 year ago
    Cannot load configuration class: org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration

See Also

Parent

48 web pages  - SecurityManager.checkPackageAccess() has thrown an AccessControlException
java.security.AccessControlException
    at java.security.AccessControlContext.checkPermission()
    at java.security.AccessController.checkPermission()
    at java.lang.SecurityManager.checkPermission()
    at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission()
    at java.lang.SecurityManager.checkPackageAccess()

Siblings

  • 18 web pages  - ClassLoader$1.run() has thrown an AccessControlException
    java.security.AccessControlException
        at java.security.AccessControlContext.checkPermission()
        at java.security.AccessController.checkPermission()
        at java.lang.SecurityManager.checkPermission()
        at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission()
        at java.lang.SecurityManager.checkPackageAccess()
        at java.lang.ClassLoader$1.run()
  • 11 web pages  - JasperLoader.loadClass() has thrown an AccessControlException
    java.security.AccessControlException
        at java.security.AccessControlContext.checkPermission()
        at java.security.AccessController.checkPermission()
        at java.lang.SecurityManager.checkPermission()
        at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission()
        at java.lang.SecurityManager.checkPackageAccess()
        at org.apache.jasper.servlet.JasperLoader.loadClass()
        at org.apache.jasper.servlet.JasperLoader.loadClass()
  • 7 web pages  - Class.checkMemberAccess() has thrown an AccessControlException
    java.security.AccessControlException
        at java.security.AccessControlContext.checkPermission()
        at java.security.AccessController.checkPermission()
        at java.lang.SecurityManager.checkPermission()
        at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission()
        at java.lang.SecurityManager.checkPackageAccess()
        at java.lang.Class.checkPackageAccess()
        at java.lang.Class.checkMemberAccess()
  • 3 web pages  - Class.checkMemberAccess() has thrown an AccessControlException
    java.security.AccessControlException
        at java.security.AccessControlContext.checkPermission()
        at java.security.AccessController.checkPermission()
        at java.lang.SecurityManager.checkPermission()
        at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission()
        at java.lang.SecurityManager.checkPackageAccess()
        at java.lang.Class.checkMemberAccess()

Typical exception messages

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