Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A196E835F for ; Sun, 11 Sep 2011 17:06:33 +0000 (UTC) Received: (qmail 92524 invoked by uid 500); 11 Sep 2011 17:06:33 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 92266 invoked by uid 500); 11 Sep 2011 17:06:32 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 92258 invoked by uid 99); 11 Sep 2011 17:06:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Sep 2011 17:06:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Sep 2011 17:06:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D67FC832FA for ; Sun, 11 Sep 2011 17:06:08 +0000 (UTC) Date: Sun, 11 Sep 2011 17:06:08 +0000 (UTC) From: "Gary D. Gregory (JIRA)" To: issues@commons.apache.org Message-ID: <2144979182.14898.1315760768875.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <331442065.705.1314009689520.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LANG-744) StringUtils throws java.security.AccessControlException on Google App Engine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-744?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D131023= 04#comment-13102304 ]=20 Gary D. Gregory commented on LANG-744: -------------------------------------- Yes, it's better. I'm not crazy about saving the exception but it's a good = pragmatic solution.=20 Q: Could a JAAS policy be changed dynamically such that the original code w= ork normally? > StringUtils throws java.security.AccessControlException on Google App Eng= ine > -------------------------------------------------------------------------= --- > > Key: LANG-744 > URL: https://issues.apache.org/jira/browse/LANG-744 > Project: Commons Lang > Issue Type: Bug > Components: lang.* > Affects Versions: 3.0.1 > Environment: Google App Engine > Reporter: Cl=C3=A9ment Denis > Fix For: 3.0.2 > > > In the static initializer of org.apache.commons.lang3.StringUtils, there = is an attempt to load the class sun.text.Normalizer. > Such a class is prohibited on Google App Engine, and the static intialize= r throws a java.security.AccessControlException. > {code} > Caused by: java.security.AccessControlException: access denied (java.lang= .RuntimePermission accessClassInPackage.sun.text) > =09at java.security.AccessControlContext.checkPermission(AccessControlCon= text.java:374) > =09at java.security.AccessController.checkPermission(AccessController.jav= a:546) > =09at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > =09at com.google.appengine.tools.development.DevAppServerFactory$CustomSe= curityManager.checkPermission(DevAppServerFactory.java:166) > =09at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1= 512) > =09at java.lang.Class.checkMemberAccess(Class.java:2164) > =09at java.lang.Class.getMethod(Class.java:1602) > =09at org.apache.commons.lang3.StringUtils.(StringUtils.java:739) > {code} > The exception should be caught in the catch clauses around loadClass("sun= .text.Normalizer"). > Commons lang 2 worked fine on GAE. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira