[appengine-java]

2012-01-11 Thread Aviv Keren
Ok tnx!

-- 
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.



[appengine-java] FileHandler is a restricted class

2012-01-07 Thread Aviv Keren
Hi,
trying to use FileHandler class response with an error:
 HTTP ERROR 500

Problem accessing /sign. Reason:

java.util.logging.FileHandler is a restricted class. Please see
the Google  App Engine developer's guide for more details.


is it possible to write logs into files using this class or other way?

-- 
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.



[appengine-java] Re: How to efficiently implement Quotas

2011-11-26 Thread Aviv Keren
I asked about something else:

Hi,
'appcfg.cmd update' response with:  java.io.FileNotFoundException: C:
\aviv\Guestbook\WEB-INF\appengine-web.xml
although the file is located under WEB-INF.

see:
c:\Program Files\Java\appengine-java-sdk-1.6.0\appengine-java-
sdk-1.6.0\binappcfg.cmd update C:\aviv\Guestbook
Reading application configuration data...
Nov 26, 2011 11:46:10 AM
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
SEVERE: Received exception processing C:/aviv/Guestbook\WEB-INF/
appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: Could not
locate C:\aviv\Guestbook\WEB-INF\appengine-web.xml
   at
com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:
108)
   at
com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:
66)
   at
com.google.appengine.tools.admin.Application.init(Application.java:
135)
   at
com.google.appengine.tools.admin.Application.readApplication(Application.java:
218)
   at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:
136)
   at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:
67)
   at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:
63)
Caused by: java.io.FileNotFoundException: C:\aviv\Guestbook\WEB-INF
\appengine-web.xml (The system cannot find the path specified)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(Unknown Source)
   at java.io.FileInputStream.init(Unknown Source)
   at
com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:
105)
   ... 6 more
Bad configuration: Could not locate C:\aviv\Guestbook\WEB-INF
\appengine-web.xml
 Caused by: C:\aviv\Guestbook\WEB-INF\appengine-web.xml (The system
cannot find the path specified)
Please see the logs [C:\Users\DELLV1~1\AppData\Local\Temp
\appcfg2749241691786847795.log] for further information.



Please your advise,
Thanks,
Aviv.


On Saturday, November 26, 2011, Max thebb...@gmail.com wrote:
 We use memcache + datastore counter and it works quite well.  Let's say
datastore counter will be updated every time count % 1000 == 0. then
even the memcache crashed then you lose 1000 uncharged API call at most.

 --
 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/-/czgaitacwn0J.
 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.



Re: [appengine-java] Unreliable Email Service

2011-11-26 Thread Aviv Keren
Hi Jeff,
I don't know why did you send me this email, it has nothing to do with my
problem.
I'll be glad to get some help with what I've described.

my problem issue:
*'appcfg.cmd update' response with:  java.io.FileNotFoundException: C:
\aviv\Guestbook\WEB-INF\appengine-web.xml
although the file is located under WEB-INF.*


Thanks,
Aviv.

On Sat, Nov 26, 2011 at 5:45 PM, Jeff Gager jeffga...@gmail.com wrote:

 Please see this post in the General GAE Group


 https://groups.google.com/group/google-appengine/browse_thread/thread/c9b98fb136eb7d02/fb53b9e4f5965875?hl=en#fb53b9e4f5965875

 And this issue

 http://code.google.com/p/googleappengine/issues/detail?id=5776#c1

 I have been having problems with the Email Service in Java and would
 really appreciate any advice anyone can give me.

 There are more details in the issue but in summary I have an app that
 sends email notifications when users make changes. The emails seemed to
 work only intermittently even though I wasn't changing anything. I get
 errors like the following;

 MessagingException: MailService IO failed (java.io.IOException:
 Internal error)
 javax.mail.SendFailedException: MailService IO failed
 (java.io.IOException: Internal error)
 at
 com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.j
 **ava:
 253)
 at javax.mail.Transport.send(Transport.java:95)
 at javax.mail.Transport.send(Transport.java:48)
 at com.hotf.server.EmailService$1.run(EmailService.java:119)

 I wrapped the code to send the emails in a deferred task queue that keeps
 trying every 15 minutes until it works without raising an exception and
 after a random amount of time (anything up to 8 hours) the emails are
 delivered successfully.


 --
 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/-/WxJsiU2GMcIJ.
 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.