[appengine-java] Email body text length limit?
Hi, I am trying to send a simple text message email via JavaMail api on GAE. It seems to work fine when the message body text length is under 2999 characters. However, when the message text length is longer than 2999 (sometimes even less), The message is never delivered to the recipient(s). The Transport.send(msg) returns just fine, and no exception was thrown and no logged error message on the server log. Is this a known problem? Any body know how to workaround it? The code is written according to the documentation http://code.google.com/appengine/docs/java/mail/usingjavamail.html. Thank you, Shirley try { MimeMessage msg = new MimeMessage(session); // Set the from field to the admin account. msg.setFrom(new InternetAddress(ADMIN_EMAIL, ADMIN_NAME)); // Add the recipients. msg.addRecipient(Message.RecipientType.TO, new InternetAddress(emailAddress, )); // Set the subject. msg.setSubject(subject); // Set the message text. msg.setText(message); // msg.setText(message); _logger.info(send 5); // Send the message. Transport.send(msg); } catch (Exception ex) { _logger.info(Send email failed due to exception: +ex.getMessage()); } -- 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] GAE domains not resolving
We have our domain name http://dev.footygame.com/ with CNAME pointing to ghs.google.com It was working fine until 29th August when the CNAME stopped resolving If you visit that URL now we get 404 What's going on? and how do you resolve 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 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] Loading requests timeout with DeadlineExceededException while reading classes
I've changed the topic name from this thread but the issue is the same: https://groups.google.com/d/topic/google-appengine-java/nU1c9tHbG60/discussion I want to know if this is a recognised problem with threads-safe=true apps and if work is being done to improve the situation. Can I expect a solution soon or should I revert to thread-safe=false in the mean time. Currently it is causing havoc with one of my sites and traffic has dropped very significantly over the last week. Using thread-safe=false raises the latency on average (but without the long loads) so that is not really ideal. To reiterate the problem, loading requests frequently time-out with DeadlineExceededException or HardDeadlineExceededError while loading classes. As my app uses Guice, this usually happens while creating the Injector from a ContextListener. Usually loading requests take 4 - 8 seconds. Recently (last week or more) they take either the normal time or an excessive amount of time (not in between), often causing a time-out. When they do time-out the exception is thrown while waiting for file system access which makes me think that this is the cause of the long delays and exceptions. This problem *only *occurs during loading requests - never during normal requests. This reinforces the theory that it is due to class loading or other initialisation work. The exception is never thrown while trying to read from memcache or the datastore so I don't think the recent memcache problems can be blamed. Below are some example stack traces from loading requests that time-out Caused by: com.google.apphosting.api.DeadlineExceededException: This request (87a9b70d2e6454ce) started at 2011/08/30 21:35:23.631 UTC and was still executing at 2011/08/30 21:36:07.688 UTC. at com.google.appengine.runtime.Request.process-87a9b70d2e6454ce(Request.java) at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:231) at sun.misc.Resource.getBytes(Resource.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:273) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Caused by: com.google.apphosting.runtime.HardDeadlineExceededError: This request (5d47b3fba3dc9418) started at 2011/08/30 21:35:53.131 UTC and was still executing at 2011/08/30 21:36:28.003 UTC. at com.google.appengine.runtime.Request.process-5d47b3fba3dc9418(Request.java) at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:231) at sun.misc.Resource.getBytes(Resource.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:273) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) Caused by: com.google.apphosting.runtime.HardDeadlineExceededError: This request (969d70b821181c7d) started at 2011/08/30 04:05:53.874 UTC and was still executing at 2011/08/30 04:06:34.552 UTC. at com.google.appengine.runtime.Request.process-969d70b821181c7d(Request.java) at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1200(ZipFile.java:57) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:476) at sun.misc.Resource.getBytes(Resource.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:273) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) When the loading request take so long, many instances are started to handle the pending requests. This results in a lot of instances created that are not needed and they just sit there once the app eventually gets back on its feet again: https://lh5.googleusercontent.com/-9ehwmZDo0ys/Tl3Aevbh45I/ADg/VJfOXow4Rk8/Capture.PNG I've seen related issues in the tracker but one discussion suggested that the problem was fixed in 1.5.2: https://groups.google.com/d/topic/google-appengine-java/6tnyfJLBIXM/discussion One issue in the tracker is Started but no update and it is now a couple of months old: http://code.google.com/p/googleappengine/issues/detail?id=5214 I hope someone can shed some light on this problem. Thanks, John -- 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/-/eKUvh_zhZScJ. To post to this group, send
[appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes
I should add that some loading requests take an excessive amount of time (20+ seconds) but do not time out. Those are the ones that result in the unneeded front-end instances shown above. -- 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/-/CIx4uK_t1zkJ. 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: GAE domains not resolving
I've noticed the same thing with our domain. However, it seems like a localised issue as I cannot reach my app from home but can at work. Also using a proxy server located in the US loads the site fine (I'm in the UK). Any news on why this may be would be great. On Aug 31, 10:20 am, footy anuj.hoo...@gmail.com wrote: We have our domain namehttp://dev.footygame.com/ with CNAME pointing to ghs.google.com It was working fine until 29th August when the CNAME stopped resolving If you visit that URL now we get 404 What's going on? and how do you resolve 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 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: GAE domains not resolving
Oh also, just to mention we are in UK as well. With a proxy like hidemyass.com we still get 404 Also, I noticed something new that appeared in the GAE admin panel under AdministrationApplication Settings you have a few new options; to do with 'Performance'. So could it be that this was a breaking change? On Aug 31, 10:57 am, mscwd01 mscw...@gmail.com wrote: I've noticed the same thing with our domain. However, it seems like a localised issue as I cannot reach my app from home but can at work. Also using a proxy server located in the US loads the site fine (I'm in the UK). Any news on why this may be would be great. On Aug 31, 10:20 am, footy anuj.hoo...@gmail.com wrote: We have our domain namehttp://dev.footygame.com/ with CNAME pointing to ghs.google.com It was working fine until 29th August when the CNAME stopped resolving If you visit that URL now we get 404 What's going on? and how do you resolve 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 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: GAE domains not resolving
Another thing that's worth mentioning is that the application works fine with it's Application Default Version URL On Aug 31, 10:57 am, mscwd01 mscw...@gmail.com wrote: I've noticed the same thing with our domain. However, it seems like a localised issue as I cannot reach my app from home but can at work. Also using a proxy server located in the US loads the site fine (I'm in the UK). Any news on why this may be would be great. On Aug 31, 10:20 am, footy anuj.hoo...@gmail.com wrote: We have our domain namehttp://dev.footygame.com/ with CNAME pointing to ghs.google.com It was working fine until 29th August when the CNAME stopped resolving If you visit that URL now we get 404 What's going on? and how do you resolve 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 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: GAE domains not resolving
I'd also add that we don't get a 404, instead a host resolving error. It may be an issue with my ISP, I'll check again later. On Aug 31, 11:35 am, footy anuj.hoo...@gmail.com wrote: Another thing that's worth mentioning is that the application works fine with it's Application Default Version URL On Aug 31, 10:57 am, mscwd01 mscw...@gmail.com wrote: I've noticed the same thing with our domain. However, it seems like a localised issue as I cannot reach my app from home but can at work. Also using a proxy server located in the US loads the site fine (I'm in the UK). Any news on why this may be would be great. On Aug 31, 10:20 am, footy anuj.hoo...@gmail.com wrote: We have our domain namehttp://dev.footygame.com/ with CNAME pointing to ghs.google.com It was working fine until 29th August when the CNAME stopped resolving If you visit that URL now we get 404 What's going on? and how do you resolve 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 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: GAE domains not resolving
When I try your link from Thailand it resolves to Google but gives this error https://lh3.googleusercontent.com/-sO3H5YHOxdY/Tl4UFX-zLHI/ADk/ukA7hBPg_TY/Capture.PNG So it looks like your domain issues are local but you have not added the domain to your app correctly. BTW, I also experienced such a local DNS problem that resolved itself within a day. -- 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/-/o7xlizvSHHMJ. 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: GAE domains not resolving
That is the 404 error page from Google which is what led me to believe that there is a probelm with ghs.google.com and CNAME resolution. As mentioned in one of above replies, we did try a proxy in US and we get the same 404 page. and as expected for you in Thailand you get the same. Also, we haven't made any change to our code or application or application setting over the last 2 weeks ( during the application was working fine ) until 29th August. On Aug 31, 12:01 pm, John Patterson jdpatter...@gmail.com wrote: When I try your link from Thailand it resolves to Google but gives this error https://lh3.googleusercontent.com/-sO3H5YHOxdY/Tl4UFX-zLHI/AD... So it looks like your domain issues are local but you have not added the domain to your app correctly. BTW, I also experienced such a local DNS problem that resolved itself within a day. -- 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] Re: GAE domains not resolving
On 31/08/2011 18:36, footy wrote: That is the 404 error page from Google which is what led me to believe that there is a probelm with ghs.google.com and CNAME resolution. The fact that your browser shows this google page indicates that the name resolution is working but that perhaps you have not added the subdomain to your app. -- 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: Loading requests timeout with DeadlineExceededException while reading classes
How are you deploying your classes? Under WEB-INF/classes, or as a custom JAR file? Another developer posted that they had a massive performance improvement deploying their classes in a JAR file - see https://groups.google.com/d/msg/google-appengine/Gl7OaMOHJD8/i_ti0KceockJ for the relevant thread. -- 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/-/B_zOufNrw-gJ. 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] Re: Loading requests timeout with DeadlineExceededException while reading classes
On 31/08/2011 19:48, Simon Knott wrote: Another developer posted that they had a massive performance improvement deploying their classes in a JAR file - see https://groups.google.com/d/msg/google-appengine/Gl7OaMOHJD8/i_ti0KceockJ for the relevant thread. A ha!!! I have not tested as a jar yet but this sounds like exactly the problem causing some loading requests to stall. Thanks for the link :) More questions: Why is the time for file system access so erratic? As this is a major performance/stability variable then perhaps it should be covered in the system status pages. Is this file system access problem somehow linked to the recent memcache issues? Will this problem be addressed? Is it even considered a bug? Or is the advice from Googlers to always put local resources (incl classes) into a jar now and in the future? If so then it should be plastered all over the docs and every developer called up on the telephone and told to jar their apps up tight. Now! -- 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: GAE domains not resolving
Okay, consider what you mentione being the case where I haven't added the subdomain to my app properly. So hence my question is why was it working until 29th August when we have not made any changes to app settings, code or anything else related to the app. Is there anything new that GAE team has done causing this to break? Is there a new requirement or a required setting? Is there something wrong with ghs.google.com? On Aug 31, 1:04 pm, John Patterson jdpatter...@gmail.com wrote: On 31/08/2011 18:36, footy wrote: That is the 404 error page from Google which is what led me to believe that there is a probelm with ghs.google.com and CNAME resolution. The fact that your browser shows this google page indicates that the name resolution is working but that perhaps you have not added the subdomain to your app. -- 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] the method GetSchemaRequest() and class Schema seem to be missing in 1.52
The method com.google.apphosting.api.DatastorePb.GetSchemaRequest(), and the returned class com.google.apphosting.api.DatastorePb.Schema seem to be missing in 1.5.2. They were in prior releases. I can't find any documentation on why they were removed, or what alternatives exist. Any feedback would be appreciated. JB -- 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: Issues using JDO query in RemoteAPI
Anyone has idea on what's wrong with the code? The same code runs on appengine but not on my laptop via remote API. -- 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/-/7PnqHki_PLUJ. 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.