Re: [google-appengine] Why is my Google App Engine application throwing AccessControlExceptions?

2015-03-12 Thread 'Roberto Chinnici' via Google App Engine
Could you post the code you use to initialize FreeMarker?

On Tue, Mar 10, 2015 at 10:44 AM, Holger Weissböck 
holger.weissbo...@gmail.com wrote:

 Hello everyone,

 I am in panic mode today and would very much appreciate your precious help:

 Since three hours now our Java-based Google App Engine application is
 throwing AccessControlExceptions when it tries to load a FreeMarker
 template. The code of this application did not change for 11 days. Since
 approximately 3h however each template loading request throws something
 like this:

 java.security.AccessControlException: access denied (java.io.FilePermission 
 /WEB-INF/freemarker/panel/root.ftl read)
 at com.google.appengine.runtime.Request.process-e5a6df6e4f6e9c58(Request.java)
 at 
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:382)
 at java.security.AccessController.checkPermission(AccessController.java:572)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
 at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
 at java.io.File.isFile(File.java:961)
 at freemarker.cache.FileTemplateLoader$2.run(FileTemplateLoader.java:165)
 at java.security.AccessController.doPrivileged(AccessController.java:63)
 at 
 freemarker.cache.FileTemplateLoader.findTemplateSource(FileTemplateLoader.java:161)
 at 
 freemarker.cache.TemplateCache.acquireTemplateSource(TemplateCache.java:628)
 at freemarker.cache.TemplateCache.findTemplateSource(TemplateCache.java:618)
 at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:316)
 at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:205)
 at freemarker.template.Configuration.getTemplate(Configuration.java:740)
 at freemarker.template.Configuration.getTemplate(Configuration.java:665)...

 As you can see the problem seems to be that the application is not allowed
 to load this file any more, although it was allowed to load it in the past.

 *Did the behaviour of App Engine change when it comes to file reading
 permissions? Am I missing something?*

 Thanksalot for your input!



  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/4088eb7a-0848-4490-b404-1f8851cf9b7f%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/4088eb7a-0848-4490-b404-1f8851cf9b7f%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAKQgnXV8%2BjkbrieRJsnDaBPObEKVUd%3Da2uqnmLDu%3DPgMbrraTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Why is my Google App Engine application throwing AccessControlExceptions?

2015-03-10 Thread Holger Weissböck


Hello everyone,

I am in panic mode today and would very much appreciate your precious help:

Since three hours now our Java-based Google App Engine application is 
throwing AccessControlExceptions when it tries to load a FreeMarker 
template. The code of this application did not change for 11 days. Since 
approximately 3h however each template loading request throws something 
like this:

java.security.AccessControlException: access denied (java.io.FilePermission 
/WEB-INF/freemarker/panel/root.ftl read)
at com.google.appengine.runtime.Request.process-e5a6df6e4f6e9c58(Request.java)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:382)
at java.security.AccessController.checkPermission(AccessController.java:572)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.io.File.isFile(File.java:961)
at freemarker.cache.FileTemplateLoader$2.run(FileTemplateLoader.java:165)
at java.security.AccessController.doPrivileged(AccessController.java:63)
at 
freemarker.cache.FileTemplateLoader.findTemplateSource(FileTemplateLoader.java:161)
at freemarker.cache.TemplateCache.acquireTemplateSource(TemplateCache.java:628)
at freemarker.cache.TemplateCache.findTemplateSource(TemplateCache.java:618)
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:316)
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:205)
at freemarker.template.Configuration.getTemplate(Configuration.java:740)
at freemarker.template.Configuration.getTemplate(Configuration.java:665)...

As you can see the problem seems to be that the application is not allowed 
to load this file any more, although it was allowed to load it in the past.

*Did the behaviour of App Engine change when it comes to file reading 
permissions? Am I missing something?*

Thanksalot for your input!



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4088eb7a-0848-4490-b404-1f8851cf9b7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Why is my Google App Engine application throwing AccessControlExceptions?

2015-03-10 Thread 'Roberto Chinnici' via Google App Engine
Could you post the code you use to initialize FreeMarker?

On Tue, Mar 10, 2015 at 10:44 AM, Holger Weissböck 
holger.weissbo...@gmail.com wrote:

 Hello everyone,

 I am in panic mode today and would very much appreciate your precious help:

 Since three hours now our Java-based Google App Engine application is
 throwing AccessControlExceptions when it tries to load a FreeMarker
 template. The code of this application did not change for 11 days. Since
 approximately 3h however each template loading request throws something
 like this:

 java.security.AccessControlException: access denied (java.io.FilePermission 
 /WEB-INF/freemarker/panel/root.ftl read)
 at com.google.appengine.runtime.Request.process-e5a6df6e4f6e9c58(Request.java)
 at 
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:382)
 at java.security.AccessController.checkPermission(AccessController.java:572)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
 at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
 at java.io.File.isFile(File.java:961)
 at freemarker.cache.FileTemplateLoader$2.run(FileTemplateLoader.java:165)
 at java.security.AccessController.doPrivileged(AccessController.java:63)
 at 
 freemarker.cache.FileTemplateLoader.findTemplateSource(FileTemplateLoader.java:161)
 at 
 freemarker.cache.TemplateCache.acquireTemplateSource(TemplateCache.java:628)
 at freemarker.cache.TemplateCache.findTemplateSource(TemplateCache.java:618)
 at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:316)
 at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:205)
 at freemarker.template.Configuration.getTemplate(Configuration.java:740)
 at freemarker.template.Configuration.getTemplate(Configuration.java:665)...

 As you can see the problem seems to be that the application is not allowed
 to load this file any more, although it was allowed to load it in the past.

 *Did the behaviour of App Engine change when it comes to file reading
 permissions? Am I missing something?*

 Thanksalot for your input!



  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/4088eb7a-0848-4490-b404-1f8851cf9b7f%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/4088eb7a-0848-4490-b404-1f8851cf9b7f%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAKQgnXW62xbCPdAnKN2vanZa4S1jX-b69MJpT9LZs-nhZUWZ0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.