[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: [appengine-java] Request was aborted after waiting too long to attempt to service your request.

2011-06-07 Thread Holger Weissböck
Hello Ikai,

thanks a lot for clearing that up! I will test my app with concurrent
threads and try it. This was on my todo list anyway. ;-)

However, the funny thing is that its latency averages at about 150ms. If i
am not able to figure it out, i'll be back here.

Thanks again,
Holger

On Wed, Jun 8, 2011 at 3:41 AM, Ikai Lan (Google) ika...@google.com wrote:

 You get this error when your request waits in a pending queue.

 App Engine apps are autoscaled IF they can average under 1000ms. If they
 cannot, we do not give you additional instances, and requests line up in a
 pending queue. If your request waits in the pending queue for more than N
 seconds (I think N is 9 at the moment but I don't know for sure off the top
 of my head), this message is returned.

 You'll need to look at the average latency and figure out how to drop it to
 under 1000ms. Alternatively, if you enable concurrent Java requests, it'll
 be a higher ceiling before this error appears if you have Always On since
 you can serve a total of 3 (always on instances) * M (concurrency factor, I
 think this is 40 at the moment) requests at one time without requiring
 autoscaling.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine



 On Wed, Jun 8, 2011 at 1:06 AM, holger holger.weissbo...@gmail.comwrote:

 Hello everyone,


 i am running a java REST service in the appengine and get this:

 Request was aborted after waiting too long to attempt to service your 
 request. This may happen sporadically when the App Engine serving cluster is 
 under unexpectedly high or uneven load. If you see this message frequently, 
 please contact the App Engine team.


 I see this message frequently and customer requests fail because of it. Can 
 anyone help me please! Thanks a lot.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/X3E4cnhhblA3Z3dK.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


  --
 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
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Holger Weissböck
hol...@gamua.com
http://gamua.com
http://www.sparrow-framework.org

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.