Can you send your app-id? (privately if you wish)
On Wed, Oct 21, 2009 at 1:46 AM, Thomas Wiradikusuma <[email protected]
> wrote:
>
> Hi,
>
> The following Groovy snippet throws exception:
>
> byte[] responseData = byteOut.toByteArray()
> response.setContentLength(responseData.length)
> response.setContentType("application/octet-stream")
> response.outputStream.write(responseData, 0,
> responseData.length)
> <-- this one
>
> The exception is:
>
> java.security.AccessControlException: access denied
> (java.lang.RuntimePermission getClassLoader)
>
> at com.google.appengine.runtime.Request.process-e40a07dff3b6f2fc
> (Request.java)
> at
> org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.<init>
> (ClassLoaderForClassArtifacts.java:22)
> at org.codehaus.groovy.runtime.callsite.CallSiteClassLoader.<init>
> (CallSiteClassLoader.java:40)
> at org.codehaus.groovy.reflection.CachedClass$5$1.run
> (CachedClass.java:144)
> at org.codehaus.groovy.reflection.CachedClass$5$1.run
> (CachedClass.java:143)
> at
> java.security.AccessController.doPrivileged(AccessController.java:
> 34)
> at org.codehaus.groovy.reflection.CachedClass$5.initValue
> (CachedClass.java:141)
> at org.codehaus.groovy.reflection.CachedClass$5.initValue
> (CachedClass.java:140)
> at org.codehaus.groovy.util.LazyReference.getLocked
> (LazyReference.java:33)
> at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:20)
> at org.codehaus.groovy.reflection.CachedClass.getCallSiteLoader
> (CachedClass.java:472)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePojoMethod
> (CallSiteGenerator.java:222)
> at
> org.codehaus.groovy.reflection.CachedMethod.createPojoMetaMethodSite
> (CachedMethod.java:240)
> at
>
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.createCachedMethodSite
> (PojoMetaMethodSite.java:158)
> at
>
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.createPojoMetaMethodSite
> (PojoMetaMethodSite.java:147)
> at groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:
> 2978)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite
> (CallSiteArray.java:114)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite
> (CallSiteArray.java:148)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
> (CallSiteArray.java:40)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:117)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:133)
>
> Any idea why it happened and how to fix it?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---