ava.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

Spring JIRA | Scott Murphy | 6 years ago
  1. 0

    Provide a new way of setting a custom ConsumerManager Currently, the only constructor that allows you to set a custom ConsumerManager is @Deprecated @Deprecated public OpenID4JavaConsumer(ConsumerManager consumerManager, final List<OpenIDAttribute> attributes) throws ConsumerException { this.consumerManager = consumerManager; this.attributesToFetchFactory = new AxFetchListFactory() { private final List<OpenIDAttribute> fetchAttrs = Collections.unmodifiableList(attributes); public List<OpenIDAttribute> createAttributeList(String identifier) { return fetchAttrs; } }; } In order to run on AppEngine with OpenID4Java, you need to instantiate a ConsumerManager with a custom HttpFetcher. http://code.google.com/p/openid4java/issues/detail?id=111 http://code.google.com/p/openid4java/source/browse/trunk/src/org/openid4java/consumer/ConsumerManager.java Otherwise you will get the following exception: ava.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:191) at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:299) at java.lang.Thread.init(Thread.java:332) at java.lang.Thread.<init>(Thread.java:379) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.<init>(MultiThreadedHttpConnectionManager.java:1080) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.storeReferenceToConnection(MultiThreadedHttpConnectionManager.java:173) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.access$900(MultiThreadedHttpConnectionManager.java:65) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool.createConnection(MultiThreadedHttpConnectionManager.java:771) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:476) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.openid4java.util.HttpCache.head(HttpCache.java:296) at org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:360) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:229) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:221) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:179) at org.openid4java.discovery.Discovery.discover(Discovery.java:134) at org.openid4java.discovery.Discovery.discover(Discovery.java:114) at org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:527) at org.springframework.security.openid.OpenID4JavaConsumer.beginConsumption(OpenID4JavaConsumer.java:98) at org.springframework.security.openid.OpenIDAuthenticationFilter.attemptAuthentication(OpenIDAuthenticationFilter.java:132) ...

    Spring JIRA | 6 years ago | Scott Murphy
    ava.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
  2. 0

    Provide a new way of setting a custom ConsumerManager Currently, the only constructor that allows you to set a custom ConsumerManager is @Deprecated @Deprecated public OpenID4JavaConsumer(ConsumerManager consumerManager, final List<OpenIDAttribute> attributes) throws ConsumerException { this.consumerManager = consumerManager; this.attributesToFetchFactory = new AxFetchListFactory() { private final List<OpenIDAttribute> fetchAttrs = Collections.unmodifiableList(attributes); public List<OpenIDAttribute> createAttributeList(String identifier) { return fetchAttrs; } }; } In order to run on AppEngine with OpenID4Java, you need to instantiate a ConsumerManager with a custom HttpFetcher. http://code.google.com/p/openid4java/issues/detail?id=111 http://code.google.com/p/openid4java/source/browse/trunk/src/org/openid4java/consumer/ConsumerManager.java Otherwise you will get the following exception: ava.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:191) at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:299) at java.lang.Thread.init(Thread.java:332) at java.lang.Thread.<init>(Thread.java:379) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.<init>(MultiThreadedHttpConnectionManager.java:1080) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.storeReferenceToConnection(MultiThreadedHttpConnectionManager.java:173) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.access$900(MultiThreadedHttpConnectionManager.java:65) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool.createConnection(MultiThreadedHttpConnectionManager.java:771) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:476) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.openid4java.util.HttpCache.head(HttpCache.java:296) at org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:360) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:229) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:221) at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:179) at org.openid4java.discovery.Discovery.discover(Discovery.java:134) at org.openid4java.discovery.Discovery.discover(Discovery.java:114) at org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:527) at org.springframework.security.openid.OpenID4JavaConsumer.beginConsumption(OpenID4JavaConsumer.java:98) at org.springframework.security.openid.OpenIDAuthenticationFilter.attemptAuthentication(OpenIDAuthenticationFilter.java:132) ...

    Spring JIRA | 6 years ago | Scott Murphy
    ava.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
  3. 0

    GData Java API known to (not) work on GAE?

    Google Groups | 7 years ago | Guillaume Laforge
    ava.security.AccessControlException: access denied (java.net.NetPermission getCookieHandler)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    jboss &amp; signed applet

    Oracle Community | 1 decade ago | 843811
    ava.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)
  6. 0

    access Denied (FilePermission)

    Coderanch | 1 decade ago | Sven Habermann
    ava.security.AccessControlException: access denied (java.io.FilePermission load.gif read)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. ava.security.AccessControlException

      access denied (java.lang.RuntimePermission modifyThreadGroup)

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      SecurityManager.checkPermission
      1. java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
      2. java.security.AccessController.checkPermission(AccessController.java:546)
      3. java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      3 frames
    3. AppEngine Testing
      DevAppServerFactory$CustomSecurityManager.checkAccess
      1. com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
      2. com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:191)
      2 frames
    4. Java RT
      Thread.<init>
      1. java.lang.ThreadGroup.checkAccess(ThreadGroup.java:299)
      2. java.lang.Thread.init(Thread.java:332)
      3. java.lang.Thread.<init>(Thread.java:379)
      3 frames
    5. HttpClient
      HttpClient.executeMethod
      1. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.<init>(MultiThreadedHttpConnectionManager.java:1080)
      2. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.storeReferenceToConnection(MultiThreadedHttpConnectionManager.java:173)
      3. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.access$900(MultiThreadedHttpConnectionManager.java:65)
      4. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool.createConnection(MultiThreadedHttpConnectionManager.java:771)
      5. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:476)
      6. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416)
      7. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
      8. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
      9. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
      9 frames
    6. OpenID4Java no dependencies
      ConsumerManager.discover
      1. org.openid4java.util.HttpCache.head(HttpCache.java:296)
      2. org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:360)
      3. org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:229)
      4. org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:221)
      5. org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:179)
      6. org.openid4java.discovery.Discovery.discover(Discovery.java:134)
      7. org.openid4java.discovery.Discovery.discover(Discovery.java:114)
      8. org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:527)
      8 frames
    7. spring-security-openid
      OpenIDAuthenticationFilter.attemptAuthentication
      1. org.springframework.security.openid.OpenID4JavaConsumer.beginConsumption(OpenID4JavaConsumer.java:98)
      2. org.springframework.security.openid.OpenIDAuthenticationFilter.attemptAuthentication(OpenIDAuthenticationFilter.java:132)
      2 frames