[appengine-java] Re: GAE/J with Flex Session
when I writing this,I try to re-set the attribute, it works, at the end of second set the client again. FlexContext.getFlexSession().setAttribute(client, _session); 2009/11/18 magic.yang zju...@gmail.com first request: login by username and pwd, and create the session _session = new FbdanciSession(); _session.setUser(user); FlexContext.getFlexSession().setAttribute(client, _session); second request: update the _session _session = FlexContext.getFlexSession().getAttribute(client); _session.setName(I am not null); FlexContext.getFlexSession().setAttribute(client, _session); third request: print the name _session = FlexContext.getFlexSession().getAttribute(client); System.out.println(_session.getUser());// the reuslt is not null; System.out.println(_session.getName());// the reuslt is null; I don't know what happened , could anyone help me out; advance thanks -- best regards, -- 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-j...@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=.
[appengine-java] web.xml version=2.5 is not supported
Hi all, I have been trying to use the following web.xml elements in GAE: jsp-config jsp-property-group url-pattern*.jsp/url-pattern el-ignoredfalse/el-ignored include-prelude/WEB-INF/taglibs.jspf/include-prelude deferred-syntax-allowed-as-literaltrue/deferred-syntax-allowed- as-literal trim-directive-whitespacestrue/trim-directive-whitespaces /jsp-property-group /jsp-config This instructs the JSP compiler to add some directives at the beginning of all JSP pages: * el-ignored: to be able to use ${...} at every page. * include-prelude: to include a jsp fragment with tag libraries etc at the beginning. * deferred-syntax-allowed-as-literal: to ignore the use of #{...} literals * trim-directive-whitespaces: to trim the line feeds at the beginning of each page The thing is, this is only supported for web.xml 2.5 which I know is supported by jetty but not by AppEngine. Anyway, I would expect it to throw an exception instead of ignoring my XML start: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; metadata-complete=true version=2.5 The thing is, I don't know if: * It is planned to be supported by AppEngine at some point. * I am missing the correct way of configuring this in GAE. * Just nobody looked at it before. Comments would be welcome. Best regards, Nacho. -- 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-j...@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=.
[appengine-java] Re: Concurrency In Transaction
On Nov 17, 10:27 pm, Rusty Wright rwright.li...@gmail.com wrote: Ah, thanks. So if I knew how many servers my cloud is made of then I should use that number for my MAX_RETRIES. ;-) I'm curious about how others are handling the exceptions. The JDOCanRetryException is subclassed by other exceptions that don't seem like things I'd want to retry, but perhaps I don't understand the subtleties. You are correct, you don't want to retry on any error, only the 'retry' errors. I would write the retry method something like this... public Object retry(final ProceedingJoinPoint pjp) throws Throwable { this.log.debug(called); int retryCount = 0; while (true) { JDOException exception = null; try { return (pjp.proceed()); } catch (final JDOCanRetryException ex) { exception = ex; // retry } catch (final JDOException ex) { /** * to quote Google's documentation: If any action * fails due to the requested entity group being in * use by another process, JDO throws a * JDODataStoreException or a JDOException, caused by a * java.util.ConcurrentModificationException. */ if (!(ex.getCause() instanceof ConcurrentModificationException)) throw ex; // fail exception = ex; // retry } this.log.debug(retryCount: {}, exception: {}, Integer.valueOf(++retryCount), ExceptionUtils.getFullStackTrace(exception)); } } -- 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-j...@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=.
Re: [appengine-java] web.xml version=2.5 is not supported
One of the issues that you are going to encounter is the mismatch between the JSP API defined in GAE and the implementation of that API provided. As documented in bug 1506http://code.google.com/p/googleappengine/issues/detail?id=1506, GAE includes the JSP 2.1 specification (found in the geronimo-jsp_2.1_spec-1.0.1.jar); however, they provide the Apache Tomcat Jasper classes from 5.0.28 which implements the 2.0 JSP specification. If you want to use the 2.1 Unified Expression language, then you're going to need to download the Unified Expression Language https://uel.dev.java.net/ 1.1 API (el-api-1.1.jarhttp://download.java.net/maven/glassfish/javax/el/el-api/1.1/el-api-1.1.jar) and Implementation (el-impl-1.1jarhttp://download.java.net/maven/glassfish/org/glassfish/web/el-impl/1.1/el-impl-1.1.jar) files and place them in the WEB-INF/lib directory of your web application. Once that is done, modify your web.xml with the following snippet of code: !-- GAE Bug 1506 JSP 2.1 API but 2.0 Implementation -- context-param param-namecom.sun.faces.expressionFactory/param-name param-valuecom.sun.el.ExpressionFactoryImpl/param-value /context-param This should make the Unified EL available to your web application. Derek Berube Wildstar Technologies, LLC. 1453 Riverview Run Lane Suwanee, Georgia 30024-3890 M: (404) 444-5283 http://www.wildstartech.com/ On Wed, Nov 18, 2009 at 5:24 AM, Nacho Coloma icol...@gmail.com wrote: Hi all, I have been trying to use the following web.xml elements in GAE: jsp-config jsp-property-group url-pattern*.jsp/url-pattern el-ignoredfalse/el-ignored include-prelude/WEB-INF/taglibs.jspf/include-prelude deferred-syntax-allowed-as-literaltrue/deferred-syntax-allowed- as-literal trim-directive-whitespacestrue/trim-directive-whitespaces /jsp-property-group /jsp-config This instructs the JSP compiler to add some directives at the beginning of all JSP pages: * el-ignored: to be able to use ${...} at every page. * include-prelude: to include a jsp fragment with tag libraries etc at the beginning. * deferred-syntax-allowed-as-literal: to ignore the use of #{...} literals * trim-directive-whitespaces: to trim the line feeds at the beginning of each page The thing is, this is only supported for web.xml 2.5 which I know is supported by jetty but not by AppEngine. Anyway, I would expect it to throw an exception instead of ignoring my XML start: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; metadata-complete=true version=2.5 The thing is, I don't know if: * It is planned to be supported by AppEngine at some point. * I am missing the correct way of configuring this in GAE. * Just nobody looked at it before. Comments would be welcome. Best regards, Nacho. -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- 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-j...@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=.
Re: [appengine-java] Configuring JSF 2.0 to run on Google App Engine
Denden, What does your web.xml look like? What libraries to you have in the WEB-INF/lib directory of your web application? Are you trying to use a component library such as ADF, RichFaces, or ICEFaces? I have a working version of the JSF2 framework running on GAE posted at jsf2template.appspot.com. The source code for this project is available from Google code at: http://code.google.com/p/jsf2gae/. Derek Berube Wildstar Technologies, LLC. 1453 Riverview Run Lane Suwanee, Georgia 30024-3890 M: (404) 444-5283 . http://www.wildstartech.com/ On Tue, Nov 17, 2009 at 2:24 AM, Denden Gajudo dgaj...@gmail.com wrote: I'm attempting to configure JSF 2.0 to run on Google App Engine using the following setup: Apache Xalan-J 2.9.0 Google AppEngine for Java SDK v1.2.5 Sun Java ServerFaces 2.0 FCS Unified Expression Language 1.1 API (el-api-1.1.jar) and Implementation (el-impl-1.1jar) I followed the procedure indicated in http://java.wildstartech.com/Java-Platform-Enterpr...to-run-on-the-google-appengine However, I am getting the following errors on startup. I was wondering if anyone has experienced this problem. WARNING: Failed startup of context com.google.apphosting.utils.jetty.devappenginewebappcont...@14b081b {/,C:\workspace\JSFTemplate\war} com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java: 354) at com.sun.faces.config.ConfigureListener.contextInitialized (ConfigureListener.java:219) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) Caused by: java.lang.NullPointerException at com.sun.faces.util.Util.loadClass(Util.java:200) at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass (AbstractConfigProcessor.java:312) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass (FaceletTaglibConfigProcessor.java:416) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags (FaceletTaglibConfigProcessor.java:370) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary (FaceletTaglibConfigProcessor.java:313) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process (FaceletTaglibConfigProcessor.java:262) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java: 337) ... 19 more Any assistance is much appreciated. Thanks. -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- 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-j...@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=.
Re: [appengine-java] JDO : setting filter ! MyList.contains(\tag) OR MyList.doesnotcontains(\tag)
Thanks a lot... -- 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-j...@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=.
[appengine-java] Re: Spring Web Flow
Indeed, I have created a similar thread over there: http://forum.springsource.org/showthread.php?t=80572 If anyone has any clue what could have been wrong, or wants to help me and wants to see some of the code, let me know! On Nov 13, 10:08 pm, Rusty Wright rwright.li...@gmail.com wrote: Have you tried the Spring forums? Perhaps your problem is specific to Spring Web Flow and not App Engine. http://forum.springsource.org/ DieterHubauwrote: I hope some people who know stuff about Spring Web Flow are reading this :-) On Nov 12, 3:48 pm,DieterHubaudhu...@gmail.com wrote: Anyone? If you need extra information, I'm willing to paste more of the code here.. On Nov 12, 10:29 am,DieterHubaudhu...@gmail.com wrote: Hi everyone, I m having an error using Spring + Spring Web Flow in my java web application. I have already fixed lots of small problems to get it working, but this one I can t figure out. The app is:http://toverexpressforever.appspot.com When you click on the register button, a new Spring Web Flow is started and it takes you to the first view-state of the float, /WEB- INF/jsp/subscription/details.jsp Then you can continue in the flow, by clicking on one of the two links. One leads you to another jsp (WEB-INF/jsp/subscription/ summary.jsp), the second will lead you back to the homepage /home.do The first time when I try this, it always works... But whenever I try to go to /subscription.do a second time (or 3rd ,4rd, ...) it fails... What am I doing wrong here? He always gives me the error message: Error: Not Found The requested URL /subscription was not found on this server. And in the logs, I see this error message for the /subscription.do URL: # 1. 11-12 01:27AM 36.070 /subscription 404 1ms 0cpu_ms 0kb Mozilla/ 5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729),gzip(gfe) See details ***.***.***.*** - - [12/Nov/2009:01:27:36 -0800] GET / subscription HTTP/1.1 404 0 http://toverexpressforever.appspot.com/; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/ 20091016 Firefox/3.5.4 (.NET CLR 3.5.30729),gzip(gfe) toverexpressforever.appspot.com 2. W 11-12 01:27AM 36.070 No handlers matched this URL. Anyone know what I'm doing wrong here? On a local Tomcat server (in Eclipse) it works, as well as with the Eclipse plugin server (by doing Run As - Web Application)... Any help is greatly appreciated!! Kind regards, DieterH -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=. -- 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-j...@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=.
[appengine-java] Re: Exception When Uploading Application To AppEngine
I'm seeing the same thing here. All of a sudden I can't deploy to the cloud. I'm using gae 1.2.2, and I'm getting the exact same error. The only thing that may have an effect is that I had someone else on my team deploy to the same account (different app id), since then I haven't been able to deploy. I can't believe that you can't have more than one person ever deploy to an account. Any guidance would be appreciated. Thanks. G -- 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-j...@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=.
[appengine-java] Reading from the database
Hi How do i read items in the database in order to display that data to the user per say? -- 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-j...@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=.
[appengine-java] Re: Session handleing example
Ikai Even this basic page scope isn't working for me. public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { req.setAttribute(helloWorld, Testing); RequestDispatcher dispatcher = req.getRequestDispatcher(/helloworld.jsp); dispatcher.forward(req, resp); } %@ page isELIgnored=false % body Hello world % String str = (String) session.getAttribute(helloWorld); % h1${helloWorld}/h1 /body The value for ${helloWorld} is null. I am testing this through eclipse. Google App Engine Java SDK 1.2.6 Google Web Toolkit SDK 1.7.1 Google Plugin for Eclipse 3.5 I am running this on mac (snow leopard). java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) On Nov 10, 10:36 am, Ikai L (Google) ika...@google.com wrote: Ilya, Are you looking to persist objects for a lifetime of a session, or are you looking to minimize the logic you are using in your JSPs? As a general design principle, we recommend that you minimize usage of session scope. Variables bound to session scope are serialized and stored to distributed memory, and as a result, it will work best if you use it to pass around small, simple, immutable objects. If you're looking to pass a variable to a view, Java Servlets have a concept of page scope as well as session scope. You don't need to store a variable in session scope if you just want to dispatch the request to a JSP. For instance, you can define a Servlet that looks like this: public class MyServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String myVar = this is a string that will be passed to the JSP; request.setAttribute(myVar, myVar); RequestDispatcher dispatcher = request.getRequestDispatcher(/WEB-INF/my.jsp); dispatcher.forward(request, response); } } In my.jsp, you can now refer to this variable: %@ page isELIgnored=false % body h1${myVar}/h1 /body Ikai Lan Developer Programs Engineer, Google App Engine On Tue, Nov 10, 2009 at 2:39 PM, IlyaE ilyaelk...@gmail.com wrote: Well as i found out, session attributes don't always guarantee that they are sent back to the same JVM thus i keep getting null objects in my view. While i saw a similar discussion before the only examples i found were for Python. I'm looking for a simple java example that saves an object in the servlet and retrieves it in the jsp. On Nov 9, 5:44 pm, victor victoraco...@gmail.com wrote: What issue are you encountering? When you make changes to a session object state, make sure to explicitly call the session.setAttribute(you session ID, you modified session state object) again. i think there is an issue discussed about this before. On Nov 9, 10:58 am, IlyaE ilyaelk...@gmail.com wrote: Does anyone have a java session handleing example? It seems that saving objects in the session only works locally. -- 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-j...@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=.
[appengine-java] Re: Configuring JSF 2.0 to run on Google App Engine
Denden, I have same problem. the root cause is the version of Mojarra2.0.0 if you open jsf-impl.jar, there is a file: META/taglib/ui.taglib.xml notice the tag remove tag-nameremove/tag-name handler-class/handler-class handler-class is NOT defined. this would cause a problem and throw NPE. change the jsf2 libraries from mojarra 2.0.1 everything is OK. Andy On Nov 17, 2:24 am, Denden Gajudo dgaj...@gmail.com wrote: I'm attempting to configure JSF 2.0 to run on Google App Engine using the following setup: Apache Xalan-J 2.9.0 Google AppEngine for Java SDK v1.2.5 Sun Java ServerFaces 2.0 FCS Unified Expression Language 1.1 API (el-api-1.1.jar) and Implementation (el-impl-1.1jar) I followed the procedure indicated inhttp://java.wildstartech.com/Java-Platform-Enterpr...to-run-on-the-go... However, I am getting the following errors on startup. I was wondering if anyone has experienced this problem. WARNING: Failed startup of context com.google.apphosting.utils.jetty.devappenginewebappcont...@14b081b {/,C:\workspace\JSFTemplate\war} com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java: 354) at com.sun.faces.config.ConfigureListener.contextInitialized (ConfigureListener.java:219) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) Caused by: java.lang.NullPointerException at com.sun.faces.util.Util.loadClass(Util.java:200) at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass (AbstractConfigProcessor.java:312) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass (FaceletTaglibConfigProcessor.java:416) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags (FaceletTaglibConfigProcessor.java:370) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary (FaceletTaglibConfigProcessor.java:313) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process (FaceletTaglibConfigProcessor.java:262) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java: 337) ... 19 more Any assistance is much appreciated. Thanks. -- 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-j...@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: Configuring JSF 2.0 to run on Google App Engine
Denden, I have the same problem as you. I found the root cause. The library jsf-impl.jar you(and I ) is in downloaded zip file: mojarra-2.0.0-FCS-binary.zip. if you open jsf-impl.jar, there is a file: META-INF/taglib/ ui.taglib.xml. at the end of this file: tag-nameremove/tag-name handler-class/handler-class handler-class is NOT defined,this causes a problem and throw NPE Once I replaced with mojarra-2.0.1, then It's OK. Andy On Nov 17, 2:24 am, Denden Gajudo dgaj...@gmail.com wrote: I'm attempting to configure JSF 2.0 to run on Google App Engine using the following setup: Apache Xalan-J 2.9.0 Google AppEngine for Java SDK v1.2.5 Sun Java ServerFaces 2.0 FCS Unified Expression Language 1.1 API (el-api-1.1.jar) and Implementation (el-impl-1.1jar) I followed the procedure indicated inhttp://java.wildstartech.com/Java-Platform-Enterpr...to-run-on-the-go... However, I am getting the following errors on startup. I was wondering if anyone has experienced this problem. WARNING: Failed startup of context com.google.apphosting.utils.jetty.devappenginewebappcont...@14b081b {/,C:\workspace\JSFTemplate\war} com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java: 354) at com.sun.faces.config.ConfigureListener.contextInitialized (ConfigureListener.java:219) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) Caused by: java.lang.NullPointerException at com.sun.faces.util.Util.loadClass(Util.java:200) at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass (AbstractConfigProcessor.java:312) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass (FaceletTaglibConfigProcessor.java:416) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags (FaceletTaglibConfigProcessor.java:370) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary (FaceletTaglibConfigProcessor.java:313) at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process (FaceletTaglibConfigProcessor.java:262) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java: 337) ... 19 more Any assistance is much appreciated. Thanks. -- 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-j...@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: NullPointer on key
Running into another issue. So i'm detaching my object and passing it along in a session. I'm now getting this error WARNING: javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field contactInfo yet this field was not detached when you detached the object. Either dont access this field, or detach it when detaching the object. my contactInfo is an embedded persistent object in the object i am detaching. @Embedded @Persistent private ContactInfo contactInfo; If i make contactInfo @Persistent(defaultFetchGroup=true) then i get this error. WARNING: The datastore does not support joins and therefore cannot honor requests to place child objects in the default fetch group. The field will be fetched lazily on first access. You can modify this warning by setting the datanucleus.appengine.ignorableMetaDataBehavior property in your config. A value of NONE will silence the warning. A value of ERROR will turn the warning into an exception. What is the correct way of making sure this embedded object is also detached when i save it to the session? On Nov 14, 6:37 am, datanucleus andy_jeffer...@yahoo.com wrote: What state is the object in when you access its field ? (Call JDOHelper.getObjectState(obj)). Since no transaction boundaries or PM lifecycle is presented, it's hard to guess. If you leave the object to become transient then it will likely have its field values nulled when leaving the transaction/ PM (unless you bothered setting javax.jdo.option.RetainValues) -- 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-j...@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: Time zones implementation is broken in Java AppEngine
Issue 2330 - still nothing is done about this. On Tue, Oct 27, 2009 at 6:55 PM, Jason (Google) apija...@google.com wrote: At the very least, the local and production environments should have identical behavior, and I agree that App Engine should not be returning GMT for well-established time zones. Please file a new issue in the tracker: http://code.google.com/p/googleappengine/issues/list - Jason On Sat, Oct 24, 2009 at 10:14 AM, Alexander Kolesnikov otry.it...@gmail.com wrote: I have just found that, while everything works fine locally, the real AppEngine returns GMT for most time zones. I wonder if this is going to be fixed. Below see the local output and then the one I am having after uploading the app. Thanks, Alex LOCAL: Asia/Aden3false0Arabia Standard Time Asia/Almaty6false0Alma-Ata Time Asia/Amman3true1Eastern European Time Asia/Anadyr12false1Anadyr Time Asia/Aqtau5false0Aqtau Time Asia/Aqtobe5false0Aqtobe Time Asia/Ashgabat5false0Turkmenistan Time Asia/Ashkhabad5false0Turkmenistan Time Asia/Baghdad3false0Arabia Standard Time Asia/Bahrain3false0Arabia Standard Time Asia/Baku5true1Azerbaijan Time Asia/Bangkok7false0Indochina Time ONLINE: Asia/Aden3false0Arabia Standard Time Asia/Almaty0false0Greenwich Mean Time Asia/Amman0false0Greenwich Mean Time Asia/Anadyr0false0Greenwich Mean Time Asia/Aqtau0false0Greenwich Mean Time Asia/Aqtobe0false0Greenwich Mean Time Asia/Ashgabat0false0Greenwich Mean Time Asia/Ashkhabad0false0Greenwich Mean Time Asia/Baghdad0false0Greenwich Mean Time Asia/Bahrain0false0Greenwich Mean Time Asia/Baku5true1Azerbaijan Time Asia/Bangkok0false0Greenwich Mean Time --~--~-~--~~~---~--~~ 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.comgoogle-appengine-java%2bunsubscr...@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-j...@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: Cannot retrieve value of the newly created attribute in a JDO
Would you share the solution with us? please On Nov 7, 3:59 am, delightwjk delight@gmail.com wrote: I have fixed this problem. Thanks. On Nov 6, 11:05 am, delightwjk delight@gmail.com wrote: Thank you Jorge, I checked the document you mentioned, but i'm still not sure what is the reason of my issue. I added a field in JDO (Boolean successFlag), and stored several entities in datastore, I was able to see the entities with successFlag property from admin console Datastore - Data Viewer, and the values of successFlag properties were correct. The entities have the property successFlag with correct value, and the JDO class has the corresponding field, but why I could not retrieve the values of successFlag via JDO? Jiakuan On Nov 5, 9:57 pm, Jorge athenas...@gmail.com wrote: You may want to check the rules that apply in this case as documented at the bottom of this page:: http://code.google.com/appengine/docs/java/datastore/dataclasses.html Jorge Gonzalez On Nov 4, 8:06 am, delightwjk delight@gmail.com wrote: Hi All, I created a JDO class, which had some attributes, and I created some CRUD operations, all of them worked correctly. Then I added a new attribute in the JDO class, and then set value to it and persisted it as usual when I executed CRUD operations. The problem is that I cannot retrieve the value of the new attribute in program, the value is always null. But when I check the value in Datastore - Data Viewer, the value is correct. So i'm wondering why it cannot be retrieved in application. Is there some cache mechanism? Thanks in advance! Jiakuan -- 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-j...@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: Xalan
Hi, I have the same problem when using the xml tags of jstl with appengine 1.2.6. I also tried to put the missing class into the WEB-INF/classes/... folder but still no success. Note that http://code.google.com/p/googleappengine/issues/detail?id=2180 has not a fix but only verifies that the class org.apache.xpath.VariableStack is available at compile time but not at run time. Regards, Stephan On Oct 5, 7:18 pm, Jason (Google) apija...@google.com wrote: Can you confirm that the tip inhttp://code.google.com/p/googleappengine/issues/detail?id=2180(see the second comment) works for you? - Jason On Wed, Sep 30, 2009 at 9:17 AM, Maniacs sony.trico...@gmail.com wrote: I tried to use JSTL xml tags and I got the following exception :java.lang.NoClassDefFoundError: org/apache/xpath/ VariableStack However, I put in WEB-INF/lib the file xalan.jar. Is xalan incompatible with app-engine ? Regards -- 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-j...@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] 500 Internal Server Error, when update appl
What is your app ID? Can you also provide the following details: - application ID - SDK version. Also include whether it is Python or Java - Operating System - Whether this is the first push or not - Are you behind a proxy? As much information as you can give me would be helpful. On Mon, Nov 16, 2009 at 10:25 PM, Jackob jrozn...@gmail.com wrote: The problem is not fixed , i can't upload update. The happened only with my account? On Mon, Nov 16, 2009 at 11:59 PM, Ikai L (Google) ika...@google.comwrote: Have you been able to update this application? On Wed, Nov 11, 2009 at 11:53 PM, Jackroz jrozn...@gmail.com wrote: Hi Team, Last two day i can't update appl, what is wrong? Please see detail log: Unable to update: java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/cloneblobs?app_id=aapcoreversion=2; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:143) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:427) at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles (AppVersionUpload.java:293) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:255) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute (AppCfg.java:521) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54) com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: http://appengine.google.com/api/appversion/cloneblobs?app_id=aapcoreversion=2; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:62) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute (AppCfg.java:521) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54) Caused by: java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/cloneblobs?app_id=aapcoreversion=2; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:143) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:427) at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles (AppVersionUpload.java:293) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:255) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) ... 4 more -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- Best regards, Yakov Liskoff Mobile: 972-54-4512963 Email: jrozn...@gmail.com Web: http://www.vcomm.co.nr IM: jackobl (Skype) - The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. - -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send
Re: [appengine-java] Re: Session handleing example
Doyou see these issues locally or when deployed? On Tue, Nov 17, 2009 at 9:03 PM, Obelix anand.sanka...@gmail.com wrote: Ikai Even this basic page scope isn't working for me. public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { req.setAttribute(helloWorld, Testing); RequestDispatcher dispatcher = req.getRequestDispatcher(/helloworld.jsp); dispatcher.forward(req, resp); } %@ page isELIgnored=false % body Hello world % String str = (String) session.getAttribute(helloWorld); % h1${helloWorld}/h1 /body The value for ${helloWorld} is null. I am testing this through eclipse. Google App Engine Java SDK 1.2.6 Google Web Toolkit SDK 1.7.1 Google Plugin for Eclipse 3.5 I am running this on mac (snow leopard). java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) On Nov 10, 10:36 am, Ikai L (Google) ika...@google.com wrote: Ilya, Are you looking to persist objects for a lifetime of a session, or are you looking to minimize the logic you are using in your JSPs? As a general design principle, we recommend that you minimize usage of session scope. Variables bound to session scope are serialized and stored to distributed memory, and as a result, it will work best if you use it to pass around small, simple, immutable objects. If you're looking to pass a variable to a view, Java Servlets have a concept of page scope as well as session scope. You don't need to store a variable in session scope if you just want to dispatch the request to a JSP. For instance, you can define a Servlet that looks like this: public class MyServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String myVar = this is a string that will be passed to the JSP; request.setAttribute(myVar, myVar); RequestDispatcher dispatcher = request.getRequestDispatcher(/WEB-INF/my.jsp); dispatcher.forward(request, response); } } In my.jsp, you can now refer to this variable: %@ page isELIgnored=false % body h1${myVar}/h1 /body Ikai Lan Developer Programs Engineer, Google App Engine On Tue, Nov 10, 2009 at 2:39 PM, IlyaE ilyaelk...@gmail.com wrote: Well as i found out, session attributes don't always guarantee that they are sent back to the same JVM thus i keep getting null objects in my view. While i saw a similar discussion before the only examples i found were for Python. I'm looking for a simple java example that saves an object in the servlet and retrieves it in the jsp. On Nov 9, 5:44 pm, victor victoraco...@gmail.com wrote: What issue are you encountering? When you make changes to a session object state, make sure to explicitly call the session.setAttribute(you session ID, you modified session state object) again. i think there is an issue discussed about this before. On Nov 9, 10:58 am, IlyaE ilyaelk...@gmail.com wrote: Does anyone have a java session handleing example? It seems that saving objects in the session only works locally. -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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-j...@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: Can't send mail with attachment using JavaMail API
I'm just sending a simple mail from my Gmail account with an embedded gif image. I can perfectly read it from my mail servlet handler but when I try to relay it (cf. code from first message) I get this annoying Converting attachment data failed error which seems to be specific to GAE. Here is the mail sent data : MIME-Version: 1.0 Sender: x...@gmail.com Received: by 10.142.204.15 with HTTP; Wed, 18 Nov 2009 13:57:20 -0800 (PST) Date: Wed, 18 Nov 2009 22:57:20 +0100 Delivered-To: x...@gmail.com X-Google-Sender-Auth: c9f34852bdb4f249 Message-ID: 75c1488c0911181357w4e8efdc2r7e82d8e1c3e03...@mail.gmail.com Subject: Test From: Francois MASUREL x...@mably.com To: contact-test contact-t...@webwinewatch.appspotmail.com Content-Type: multipart/related; boundary=001636e90e61aa516e0478ac5398 --001636e90e61aa516e0478ac5398 Content-Type: multipart/alternative; boundary=001636e90e61aa516b0478ac5397 --001636e90e61aa516b0478ac5397 Content-Type: text/plain; charset=UTF-8 [image: ? ui=2view=attth=125094c9bff3199battid=0.1disp=attdrealattid=ii_125094c9bff3199bzw] --001636e90e61aa516b0478ac5397 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable img title=3D? ui=3D2amp;view=3Dattamp;th=3D125094c9bff3199bamp;attid=3D= 0.1amp;disp=3Dattdamp;realattid=3Dii_125094c9bff3199bamp;zw alt=3D?ui= =3D2amp;view=3Dattamp;th=3D125094c9bff3199bamp;attid=3D0.1amp;disp=3Dat= tdamp;realattid=3Dii_125094c9bff3199bamp;zw src=3Dcid:ii_125094c9bff319= 9bbr br --001636e90e61aa516b0478ac5397-- --001636e90e61aa516e0478ac5398 Content-Type: image/gif; name=enveloppe.gif Content-Transfer-Encoding: base64 Content-ID: ii_125094c9bff3199b X-Attachment-Id: ii_125094c9bff3199b R0lGODlhEAAQAPeYAP39/tHR5MrK4fLy99PT6NfX6Nvb6/ f3+ff3+uDg7sPD3fHx9ra206qqyrKy 0eLi8Onp8bCwz +jo8cvL4WVlm7y81cLC2fPz96ysyrCwzcXF3c7O487O4tDQ5Le30+fn8cvL4ufn 8PDw9/Ly+fDw9PLy+N7e66Skx8/ P46mpymBglNLS5KKixoWFsYaGs56ewNXV5pqawKyszuTk7pyc wdra6Pr6/ Ht7qnt7qXl5qry82LGx0MbG3pCQsrOz0qyszZubucjI3eLi7eDg6eDg7X5+rJSUu9zc 54uLtvz8/b+/2KenyPX1+K6uzpmZwOvr9a6uz8XF3Ovr9tLS5uPj8Hx8qvv7/ ZiYwLm50NPT5tjY 6K+v0M7O5IGBqtzc68/ P3mpqnoeHsLCwynJypNjY60ZGgJ2dw1hYjc7O4bi40nh4qWlpnNjY5fn5 +5SUvcTE2oCAqbOz0Le31tzc7L292vj4+sPD2by81unp8s/P5s3N3fPz +VxckqOjyHZ2psLC23p6 pt3d7d7e7PDw+L292JOTu/z8/Kury7Ozyra20ubm8MTE1/b2/Pn5/ Hd3qJCQvOnp876+2tHR5tHR 4oaGrbW10pmZv/7+/v/// wAA ACH5BAEAAJgALAAQABAA AAjlADEJHCiwzSQjamYQXIjAAo0fAq5gWChwgB03PiBdkhDkxgKCITywiLLn0qUkU2A4ESPQRKIm K5iYNIlHCREefg5gMjNBBICZAKx4SUGlQA4smOJw +BAAjaJLABh1aBCITJ8uNmrIuDRAS4Uldwyk OZQFhQIKXxCcEGLSkCBLOKowoKNDARJKmN5AMQmghIBIEfKAICTnURlMFwotuNQogYYHcwJsYDDm DCKBGXZcGiQpgIECf1zwAUJiIIQWI6RwSUAghooeQyi +cPCEwBYwcI5QFMimSCVHgPTsHlgnzJpF OncHBAA7 --001636e90e61aa516e0478ac5398-- On Nov 18, 10:34 pm, Ikai L (Google) ika...@google.com wrote: François, I'm not familiar with any standards with regard to inline images. Do you have this working outside of App Engine? Do you have working code from that? If there are discrepancies in our implementation of javax.mail.* and standard implementations we should be aware. On Mon, Nov 16, 2009 at 10:30 PM, mably fm2...@mably.com wrote: In fact standards attachments works. But it's not what I'm trying do do. I'm need to relay HTML messages with inline images and this is still not working. Is it a kind of limitation of GAE or is it supposed to work ? Thanx for your help. François On 16 nov, 23:09, mably fm2...@mably.com wrote: Hi Ikai, thanx for you help. I've copy pasted your code on my webapp (webwinewatch), I've no error but the mail isn't correctly relayed, all attachements are removed. I've just modified the sender, from and recipient lines : message.setSender(new InternetAddress(myaddress@gmail.com, Relay account)); message.setFrom(message.getSender()); message.setRecipient(Message.RecipientType.TO, message.getSender()); Do you have any clue ? You can test it, sending an email to : contact- t...@webwinewatch.appspotmail.com Thanx again for your help. On 16 nov, 21:35, Ikai L (Google) ika...@google.com wrote: I couldn't reproduce your exact error, but I was able to put together a working example of an inbound email handler to relay messages. I'm going to expand the documentation about processing inbound emails. Here's some working code:http://pastie.org/701517 Does this example help any? Code is also pasted below, but it'll be easier for you to look at the Pastie. import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest;
Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API
What I mean is, is this code working on a different mail server? On Wed, Nov 18, 2009 at 2:00 PM, mably fm2...@mably.com wrote: I'm just sending a simple mail from my Gmail account with an embedded gif image. I can perfectly read it from my mail servlet handler but when I try to relay it (cf. code from first message) I get this annoying Converting attachment data failed error which seems to be specific to GAE. Here is the mail sent data : MIME-Version: 1.0 Sender: x...@gmail.com Received: by 10.142.204.15 with HTTP; Wed, 18 Nov 2009 13:57:20 -0800 (PST) Date: Wed, 18 Nov 2009 22:57:20 +0100 Delivered-To: x...@gmail.com X-Google-Sender-Auth: c9f34852bdb4f249 Message-ID: 75c1488c0911181357w4e8efdc2r7e82d8e1c3e03...@mail.gmail.com Subject: Test From: Francois MASUREL x...@mably.com To: contact-test contact-t...@webwinewatch.appspotmail.com Content-Type: multipart/related; boundary=001636e90e61aa516e0478ac5398 --001636e90e61aa516e0478ac5398 Content-Type: multipart/alternative; boundary=001636e90e61aa516b0478ac5397 --001636e90e61aa516b0478ac5397 Content-Type: text/plain; charset=UTF-8 [image: ? ui=2view=attth=125094c9bff3199battid=0.1disp=attdrealattid=ii_125094c9bff3199bzw] --001636e90e61aa516b0478ac5397 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable img title=3D? ui=3D2amp;view=3Dattamp;th=3D125094c9bff3199bamp;attid=3D= 0.1amp;disp=3Dattdamp;realattid=3Dii_125094c9bff3199bamp;zw alt=3D?ui= =3D2amp;view=3Dattamp;th=3D125094c9bff3199bamp;attid=3D0.1amp;disp=3Dat= tdamp;realattid=3Dii_125094c9bff3199bamp;zw src=3Dcid:ii_125094c9bff319= 9bbr br --001636e90e61aa516b0478ac5397-- --001636e90e61aa516e0478ac5398 Content-Type: image/gif; name=enveloppe.gif Content-Transfer-Encoding: base64 Content-ID: ii_125094c9bff3199b X-Attachment-Id: ii_125094c9bff3199b R0lGODlhEAAQAPeYAP39/tHR5MrK4fLy99PT6NfX6Nvb6/ f3+ff3+uDg7sPD3fHx9ra206qqyrKy 0eLi8Onp8bCwz +jo8cvL4WVlm7y81cLC2fPz96ysyrCwzcXF3c7O487O4tDQ5Le30+fn8cvL4ufn 8PDw9/Ly+fDw9PLy+N7e66Skx8/ P46mpymBglNLS5KKixoWFsYaGs56ewNXV5pqawKyszuTk7pyc wdra6Pr6/ Ht7qnt7qXl5qry82LGx0MbG3pCQsrOz0qyszZubucjI3eLi7eDg6eDg7X5+rJSUu9zc 54uLtvz8/b+/2KenyPX1+K6uzpmZwOvr9a6uz8XF3Ovr9tLS5uPj8Hx8qvv7/ ZiYwLm50NPT5tjY 6K+v0M7O5IGBqtzc68/ P3mpqnoeHsLCwynJypNjY60ZGgJ2dw1hYjc7O4bi40nh4qWlpnNjY5fn5 +5SUvcTE2oCAqbOz0Le31tzc7L292vj4+sPD2by81unp8s/P5s3N3fPz +VxckqOjyHZ2psLC23p6 pt3d7d7e7PDw+L292JOTu/z8/Kury7Ozyra20ubm8MTE1/b2/Pn5/ Hd3qJCQvOnp876+2tHR5tHR 4oaGrbW10pmZv/7+/v/// wAA ACH5BAEAAJgALAAQABAA AAjlADEJHCiwzSQjamYQXIjAAo0fAq5gWChwgB03PiBdkhDkxgKCITywiLLn0qUkU2A4ESPQRKIm K5iYNIlHCREefg5gMjNBBICZAKx4SUGlQA4smOJw +BAAjaJLABh1aBCITJ8uNmrIuDRAS4Uldwyk OZQFhQIKXxCcEGLSkCBLOKowoKNDARJKmN5AMQmghIBIEfKAICTnURlMFwotuNQogYYHcwJsYDDm DCKBGXZcGiQpgIECf1zwAUJiIIQWI6RwSUAghooeQyi +cPCEwBYwcI5QFMimSCVHgPTsHlgnzJpF OncHBAA7 --001636e90e61aa516e0478ac5398-- On Nov 18, 10:34 pm, Ikai L (Google) ika...@google.com wrote: François, I'm not familiar with any standards with regard to inline images. Do you have this working outside of App Engine? Do you have working code from that? If there are discrepancies in our implementation of javax.mail.* and standard implementations we should be aware. On Mon, Nov 16, 2009 at 10:30 PM, mably fm2...@mably.com wrote: In fact standards attachments works. But it's not what I'm trying do do. I'm need to relay HTML messages with inline images and this is still not working. Is it a kind of limitation of GAE or is it supposed to work ? Thanx for your help. François On 16 nov, 23:09, mably fm2...@mably.com wrote: Hi Ikai, thanx for you help. I've copy pasted your code on my webapp (webwinewatch), I've no error but the mail isn't correctly relayed, all attachements are removed. I've just modified the sender, from and recipient lines : message.setSender(new InternetAddress(myaddress@gmail.com, Relay account)); message.setFrom(message.getSender()); message.setRecipient(Message.RecipientType.TO, message.getSender()); Do you have any clue ? You can test it, sending an email to : contact- t...@webwinewatch.appspotmail.com Thanx again for your help. On 16 nov, 21:35, Ikai L (Google) ika...@google.com wrote: I couldn't reproduce your exact error, but I was able to put together a working example of an inbound email handler to relay messages. I'm going to expand the documentation about processing inbound emails. Here's
[appengine-java] Re: Looking for Bulk Loader beta testers
Hi everyone, Thanks for the response so far--we'll be getting back to you over the next few days. I'd like to point out an existing feature which will be helpful to many of you: --dump and --restore. This will download or upload all of the entities for a particular Kind and save them in a local sqlite database. It's useful for general backup (e.g. a weekly backup), and also useful for moving data across applications, such as between your app running on the dev_appserver and on App Engine, or to load a staging instance with a known set of test data. You can find more information here: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data Also, for Java developers, there is a remote API handler available; adding following to your web xml file should work (disclaimer: I have not yet personally tested this.) servlet servlet-nameremoteapi/servlet-name servlet-classcom.google.apphosting.utils.remoteapi.RemoteApiServlet/servlet-class /servlet servlet-mapping servlet-nameremoteapi/servlet-name url-pattern/remote_api/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameremoteapi/web-resource-name url-pattern/remote_api/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint --Matthew On Tue, Nov 17, 2009 at 12:53 PM, Matthew Blain matthew.bl...@google.comwrote: Hi App Engine developers, We're working on some improvements and additions to the bulk loader to make it easier to move data between the App Engine Datastore and other data files you may have. If you're doing this right now, we're looking for some beta testers. Two specific issues we're addressing at this time are: * More language-neutral: Java developers, this will help you! * More format-neutral: If you use some format other than CSV, this will help you! If you're interested, fill out the form at https://spreadsheets.google.com/viewform?formkey=dC15V2hwczhpZ1VVWFhPZGhXR1dydUE6MQ to get started. --Matthew -- 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-j...@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=.
[appengine-java] Re: Can't send mail with attachment using JavaMail API
Of course, the code above doesn't need to be run in mail handler servlet :-) On Nov 19, 12:01 am, mably fm2...@mably.com wrote: I've written a simple class sending an HTML email with an embedded image (cf. below) via GMail SMTP. It works perfectly fine when run locally from Eclipse. The same code in a GAE mail servlet handler produce the infamous Converting attachment data failed error. So it really seems to be a problem in GAE javamail implementation. /* * Copyright (C) 2009 Francois Masurel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import javax.mail.Message; import javax.mail.Multipart; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; /** * @author Francois * */ public class GMailSMTP { private static final String SMTP_HOST_NAME = smtp.gmail.com; private static final int SMTP_HOST_PORT = 465; private static final String SMTP_AUTH_USER = x...@gmail.com; private static final String SMTP_AUTH_PWD = yyy; public static void main(String[] args) throws Exception{ new GMailSMTP().test(); } public void test() throws Exception{ Properties props = new Properties(); props.put(mail.transport.protocol, smtps); props.put(mail.smtps.host, SMTP_HOST_NAME); props.put(mail.smtps.auth, true); // props.put(mail.smtps.quitwait, false); String from = SMTP_AUTH_USER; String to = SMTP_AUTH_USER; String subject = Testing SMTP-SSL; String htmlText = h1Hello/h1img src=\cid:image\; byte[] imgData = this.obtainByteData(enveloppe.gif); Session mailSession = Session.getDefaultInstance(props); mailSession.setDebug(true); Message msg = new MimeMessage(mailSession); msg.setFrom(new InternetAddress(from)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress (to)); msg.setSubject(subject); Multipart mp = new MimeMultipart(related); MimeBodyPart htmlPart = new MimeBodyPart(); htmlPart.setContent(htmlText, text/html); mp.addBodyPart(htmlPart); MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName(test.gif); attachment.setContent(imgData, image/gif); attachment.setHeader(Content-ID,image); mp.addBodyPart(attachment); msg.setContent(mp); Transport transport = mailSession.getTransport(); transport.connect (SMTP_HOST_NAME, SMTP_HOST_PORT, SMTP_AUTH_USER, SMTP_AUTH_PWD); transport.sendMessage(msg, msg.getRecipients(Message.RecipientType.TO)); transport.close(); } /** * Constructs a byte array and fills it with data that is read from the * specified resource. * @param filename the path to the resource * @return the specified resource as a byte array * @throws java.io.IOException if the resource cannot be read, or the * bytes cannot be written, or the streams cannot be closed */ private byte[] obtainByteData(String filename) throws IOException { InputStream inputStream = getClass().getResourceAsStream (filename); ByteArrayOutputStream outputStream = new ByteArrayOutputStream (1024); byte[] bytes = new byte[512]; // Read bytes from the input stream in bytes.length-sized chunks and write // them into the output stream int readBytes; while ((readBytes = inputStream.read(bytes)) 0) { outputStream.write(bytes, 0, readBytes); } // Convert the contents of the output stream into a byte array byte[] byteData = outputStream.toByteArray(); // Close the streams inputStream.close(); outputStream.close(); return byteData; } } On Nov 18, 11:11 pm, Ikai L (Google) ika...@google.com wrote: What I mean is, is this code working on a different mail server? On Wed, Nov 18, 2009 at 2:00 PM, mably fm2...@mably.com wrote: I'm just sending a simple
Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API
That's good information to know. We are not using Sun's JavaMail implementation, so it's possible there are points of incompatibility. There's one last thing you may want to try: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/mail/package-summary.html The above page documents the Low-Level API. Try creating an email object via that API, setting the Content-ID of the attachment and the HTML tag to point to the cid. You're already doing that in the example you sent using javax.mail, but I'm wondering if the low-level API is capable of doing this. If not, I'll open an issue. On Wed, Nov 18, 2009 at 3:06 PM, mably fm2...@mably.com wrote: Of course, the code above doesn't need to be run in mail handler servlet :-) On Nov 19, 12:01 am, mably fm2...@mably.com wrote: I've written a simple class sending an HTML email with an embedded image (cf. below) via GMail SMTP. It works perfectly fine when run locally from Eclipse. The same code in a GAE mail servlet handler produce the infamous Converting attachment data failed error. So it really seems to be a problem in GAE javamail implementation. /* * Copyright (C) 2009 Francois Masurel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import javax.mail.Message; import javax.mail.Multipart; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; /** * @author Francois * */ public class GMailSMTP { private static final String SMTP_HOST_NAME = smtp.gmail.com; private static final int SMTP_HOST_PORT = 465; private static final String SMTP_AUTH_USER = x...@gmail.com; private static final String SMTP_AUTH_PWD = yyy; public static void main(String[] args) throws Exception{ new GMailSMTP().test(); } public void test() throws Exception{ Properties props = new Properties(); props.put(mail.transport.protocol, smtps); props.put(mail.smtps.host, SMTP_HOST_NAME); props.put(mail.smtps.auth, true); // props.put(mail.smtps.quitwait, false); String from = SMTP_AUTH_USER; String to = SMTP_AUTH_USER; String subject = Testing SMTP-SSL; String htmlText = h1Hello/h1img src=\cid:image\; byte[] imgData = this.obtainByteData(enveloppe.gif); Session mailSession = Session.getDefaultInstance(props); mailSession.setDebug(true); Message msg = new MimeMessage(mailSession); msg.setFrom(new InternetAddress(from)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress (to)); msg.setSubject(subject); Multipart mp = new MimeMultipart(related); MimeBodyPart htmlPart = new MimeBodyPart(); htmlPart.setContent(htmlText, text/html); mp.addBodyPart(htmlPart); MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName(test.gif); attachment.setContent(imgData, image/gif); attachment.setHeader(Content-ID,image); mp.addBodyPart(attachment); msg.setContent(mp); Transport transport = mailSession.getTransport(); transport.connect (SMTP_HOST_NAME, SMTP_HOST_PORT, SMTP_AUTH_USER, SMTP_AUTH_PWD); transport.sendMessage(msg, msg.getRecipients(Message.RecipientType.TO)); transport.close(); } /** * Constructs a byte array and fills it with data that is read from the * specified resource. * @param filename the path to the resource * @return the specified resource as a byte array * @throws java.io.IOException if the resource cannot be read, or the * bytes cannot be written, or the streams cannot be closed */ private byte[] obtainByteData(String filename) throws IOException { InputStream inputStream = getClass().getResourceAsStream (filename); ByteArrayOutputStream outputStream = new ByteArrayOutputStream (1024);
[appengine-java] Re: Can't send mail with attachment using JavaMail API
I haven't found a way to set a Content-ID header on a mimebodypart/ attachment using the low-level API. The MailService.Attachment class is quite rudimentary (only filename and data). May be some part of the low level API are still undocumented ? Thanx for all. On Nov 19, 12:25 am, Ikai L (Google) ika...@google.com wrote: That's good information to know. We are not using Sun's JavaMail implementation, so it's possible there are points of incompatibility. There's one last thing you may want to try: http://code.google.com/appengine/docs/java/javadoc/com/google/appengi... The above page documents the Low-Level API. Try creating an email object via that API, setting the Content-ID of the attachment and the HTML tag to point to the cid. You're already doing that in the example you sent using javax.mail, but I'm wondering if the low-level API is capable of doing this. If not, I'll open an issue. On Wed, Nov 18, 2009 at 3:06 PM, mably fm2...@mably.com wrote: Of course, the code above doesn't need to be run in mail handler servlet :-) On Nov 19, 12:01 am, mably fm2...@mably.com wrote: I've written a simple class sending an HTML email with an embedded image (cf. below) via GMail SMTP. It works perfectly fine when run locally from Eclipse. The same code in a GAE mail servlet handler produce the infamous Converting attachment data failed error. So it really seems to be a problem in GAE javamail implementation. /* * Copyright (C) 2009 Francois Masurel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import javax.mail.Message; import javax.mail.Multipart; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; /** * @author Francois * */ public class GMailSMTP { private static final String SMTP_HOST_NAME = smtp.gmail.com; private static final int SMTP_HOST_PORT = 465; private static final String SMTP_AUTH_USER = x...@gmail.com; private static final String SMTP_AUTH_PWD = yyy; public static void main(String[] args) throws Exception{ new GMailSMTP().test(); } public void test() throws Exception{ Properties props = new Properties(); props.put(mail.transport.protocol, smtps); props.put(mail.smtps.host, SMTP_HOST_NAME); props.put(mail.smtps.auth, true); // props.put(mail.smtps.quitwait, false); String from = SMTP_AUTH_USER; String to = SMTP_AUTH_USER; String subject = Testing SMTP-SSL; String htmlText = h1Hello/h1img src=\cid:image\; byte[] imgData = this.obtainByteData(enveloppe.gif); Session mailSession = Session.getDefaultInstance(props); mailSession.setDebug(true); Message msg = new MimeMessage(mailSession); msg.setFrom(new InternetAddress(from)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress (to)); msg.setSubject(subject); Multipart mp = new MimeMultipart(related); MimeBodyPart htmlPart = new MimeBodyPart(); htmlPart.setContent(htmlText, text/html); mp.addBodyPart(htmlPart); MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName(test.gif); attachment.setContent(imgData, image/gif); attachment.setHeader(Content-ID,image); mp.addBodyPart(attachment); msg.setContent(mp); Transport transport = mailSession.getTransport(); transport.connect (SMTP_HOST_NAME, SMTP_HOST_PORT, SMTP_AUTH_USER, SMTP_AUTH_PWD); transport.sendMessage(msg, msg.getRecipients(Message.RecipientType.TO)); transport.close(); } /** * Constructs a byte array and fills it with data that is read from the * specified resource. * @param filename the path to the resource * @return the specified resource as a byte array * @throws
Re: [appengine-java] Problems with large request/response headers
Matt, There probably isn't anything you'll be able to do in the meantime. You may not see this when deployed since we are not using a different servlet engine in production. Can you go ahead and open an issue here for us to upgrade our SDK's version of Jetty? http://code.google.com/p/googleappengine/issues/list?can=2q=jetty It's something we'd eventually want to do anyway, and getting it into the issue tracker will mean it's on our radar. On Wed, Nov 18, 2009 at 8:32 AM, Matthew McGinty mcgin...@gmail.com wrote: Ikai, Reading all of the Jetty bug report you found, I see that it is possible to configure the size of the header buffer used by Jetty. This is done in the jetty.xml file. I don't see that file within my GAE project. I see appengine-web.xml. Does GAE expose/use jetty.xml or some equivalent? If so, where would I find it? If I can configure the Jetty that is bundled with GAE Dev server, then that would solve my problem. Thanks. Matt On Wed, Nov 18, 2009 at 11:23 AM, Matthew McGinty mcgin...@gmail.com wrote: Thanks Ikai for responding and for finding that Jetty bug report. It is marked as fixed in Jetty 6.1.11. Do you know if that fix is in the version of Jetty that is bundled with the GAE Dev server? I can't store that data in the session because the data being stored in the cookies is not being placed there by me. It is being placed there by the Application Server software I'm using which is running on top of the GAE. Specifically it is being placed there by OpenBD Google which is a version of BlueDragon (a CFML Engine) ported to run on GAE. BlueDragon is the Application Server that powers MySpace. http://www.openbluedragon.org/ http://wiki.openbluedragon.org/wiki/index.php/Category:GoogleAppEngine Storing such data in cookies is a requirement/feature of the CFML Engine. That is how Adobe's ColdFusion CFML Engine functions. It is jjust name/value pair data (String data)... variable defined to be in something called the client scope (in CFML speak). BD may be configured to store client scoped variables in either cookies or a database... so using the database option would work around this problem but it still seems like something that should be fixed for GAE. BlueDragon runs on top of various platforms: Microsoft .NET framework WebSphere Weblogic ServletExec and behind commercial grade webservers (IIS, and Apache) and does not exhibit this problem in any of those environments... only with Jetty. Matt On Mon, Nov 16, 2009 at 5:36 PM, Ikai L (Google) ika...@google.com wrote: Matt, This looks like it may be a JeTTy issue: http://jira.codehaus.org/browse/JETTY-336 That being said, I'm curious as to what data you are storing in the cookie. Less than 1.5% of sites pass cookies larger than 1501 bytes, and there are performance implications for passing large amounts of cookies: http://yuiblog.com/blog/2007/03/01/performance-research-part-3 Is this data you can store in the session instead? On Fri, Nov 13, 2009 at 12:05 PM, Matthew McGinty mcgin...@gmail.com wrote: I'm using the GAE Java Dev Server (i.e. Jetty). When I request a page that sends a large amount of cookie data to the browser and then re-request the page (so that the browser sends the cookies back to the server) I get this stacktrace: == Nov 13, 2009 6:35:13 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) == The behavior I see is that the browser receives what seems to be a completely empty response body, and the access log does not show the request at all (likely because the request/response protocol was halted when the exception occured). If I configure my browser to send its requests through a diagnostic proxy tool, I can see that the request headers being sent are about 5k total. But the response takes 2-3 minutes to come. Once it does, the proxy tool shows me only response headers (no response body): === HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: cookie name 1=cookie value 1 Set-Cookie: cookie name 2=cookie value 2 Set-Cookie: cookie name 3=cookie value 3 Transfer-Encoding: chunked Server: Jetty(6.1.x) === which I suppose explains why the browser renders it as an empty response. I found a clue here:
[appengine-java] Unable to update app: null
I received the following error when I tried to deploy an application to google hosted appengine (GAE/J). Any idea what could have cause the problem? com.google.appengine.tools.admin.AdminException: Unable to update app: null at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:62) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy (AppEngineBridgeImpl.java:271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace (DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.NullPointerException at com.google.apphosting.utils.glob.GlobIntersector.extractPrefix (GlobIntersector.java:273) at com.google.apphosting.utils.glob.GlobIntersector.doIntersectTwo (GlobIntersector.java:151) at com.google.apphosting.utils.glob.GlobIntersector.doIntersect (GlobIntersector.java:133) at com.google.apphosting.utils.glob.GlobIntersector.getIntersection (GlobIntersector.java:65) at com.google.appengine.tools.admin.AppYamlTranslator $AbstractHandlerGenerator.createGlobPatterns(AppYamlTranslator.java: 249) at com.google.appengine.tools.admin.AppYamlTranslator $AbstractHandlerGenerator.translate(AppYamlTranslator.java:234) at com.google.appengine.tools.admin.AppYamlTranslator.translateWebXml (AppYamlTranslator.java:103) at com.google.appengine.tools.admin.AppYamlTranslator.getYaml (AppYamlTranslator.java:69) at com.google.appengine.tools.admin.AppVersionUpload.getAppYaml (AppVersionUpload.java:185) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:241) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) ... 4 more -- 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-j...@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=.
Re: [appengine-java] 500 Internal Server Error, when update appl
- aapcore - appengine-java-sdk-1.2.6 - Win XP - Several first times it was work fine - no proxy On Wed, Nov 18, 2009 at 11:42 PM, Ikai L (Google) ika...@google.com wrote: What is your app ID? Can you also provide the following details: - application ID - SDK version. Also include whether it is Python or Java - Operating System - Whether this is the first push or not - Are you behind a proxy? As much information as you can give me would be helpful. On Mon, Nov 16, 2009 at 10:25 PM, Jackob jrozn...@gmail.com wrote: The problem is not fixed , i can't upload update. The happened only with my account? On Mon, Nov 16, 2009 at 11:59 PM, Ikai L (Google) ika...@google.comwrote: Have you been able to update this application? On Wed, Nov 11, 2009 at 11:53 PM, Jackroz jrozn...@gmail.com wrote: Hi Team, Last two day i can't update appl, what is wrong? Please see detail log: Unable to update: java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/cloneblobs?app_id=aapcoreversion=2; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:143) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:427) at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles (AppVersionUpload.java:293) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:255) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute (AppCfg.java:521) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54) com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: http://appengine.google.com/api/appversion/cloneblobs?app_id=aapcoreversion=2; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:62) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute (AppCfg.java:521) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54) Caused by: java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/cloneblobs?app_id=aapcoreversion=2; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:143) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:427) at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles (AppVersionUpload.java:293) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:255) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) ... 4 more -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- Best regards, Yakov Liskoff Mobile: 972-54-4512963 Email: jrozn...@gmail.com Web: http://www.vcomm.co.nr IM: jackobl (Skype) - The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only.
[appengine-java] Re: Unable to update app: null
I solved my own problem. It turned out an empty url-pattern / in security-constraint web-resource-collection in my web.xml is causing this error. On Nov 19, 11:10 am, Leonard Siu leonard@gmail.com wrote: I received the following error when I tried to deploy an application to google hosted appengine (GAE/J). Any idea what could have cause the problem? com.google.appengine.tools.admin.AdminException: Unable to update app: null at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:62) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy (AppEngineBridgeImpl.java:271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace (DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.NullPointerException at com.google.apphosting.utils.glob.GlobIntersector.extractPrefix (GlobIntersector.java:273) at com.google.apphosting.utils.glob.GlobIntersector.doIntersectTwo (GlobIntersector.java:151) at com.google.apphosting.utils.glob.GlobIntersector.doIntersect (GlobIntersector.java:133) at com.google.apphosting.utils.glob.GlobIntersector.getIntersection (GlobIntersector.java:65) at com.google.appengine.tools.admin.AppYamlTranslator $AbstractHandlerGenerator.createGlobPatterns(AppYamlTranslator.java: 249) at com.google.appengine.tools.admin.AppYamlTranslator $AbstractHandlerGenerator.translate(AppYamlTranslator.java:234) at com.google.appengine.tools.admin.AppYamlTranslator.translateWebXml (AppYamlTranslator.java:103) at com.google.appengine.tools.admin.AppYamlTranslator.getYaml (AppYamlTranslator.java:69) at com.google.appengine.tools.admin.AppVersionUpload.getAppYaml (AppVersionUpload.java:185) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:241) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) ... 4 more -- 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-j...@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=.
[appengine-java] Re: GAE status / availalbility problems?
Excellent news. How long did it take to resolve this matter and what was the impact to your Users? I assume you would agree we could avoid this type of problem by only using the data types listed here right? http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types On Nov 18, 3:27 pm, Dmitry Anipko dmitry.ani...@gmail.com wrote: Thanks Jason for help. In our case the problem was caused by usage of byte[] field in a persisted class. Somehow though, it wasn't causing any problems immediately, but only after a few objects have been saved. Per Jason, usage of byte[] in JDO on GAE isn't supported. On Wed, Nov 18, 2009 at 1:00 PM, Diana Cruise diana.l.cru...@gmail.com wrote: What's the latest here Dmitry...can GAE handle more than 100 request or not? Please update where you are with this problem. Thanks. On Nov 9, 5:15 pm, Dmitry Anipko dmitry.ani...@gmail.com wrote: Following up offline and will update with resolution later. On Mon, Nov 9, 2009 at 9:50 AM, Jason (Google) apija...@google.com wrote: As always, I need your application ID in order to help troubleshoot app-specific issues. Please provide that and any stack traces or other error messages you see in your application's logs. - Jason On Fri, Nov 6, 2009 at 9:47 PM, Dmitry Anipko dmitry.ani...@gmail.com wrote: After some more experimentation, it looks like there is something in the data store that is surfaced by our application: if I clean up the store for the application completely, using the web interface, then for the first ~100 request it works fine, but after some time, it starts producing those errors I wrote before - it can't query objects by index (and that problem persists until I clean the store again). The second observation - although I don't know if it is related or not - is when the store for my app is in such state, and I try to view objects through the web interface, the web interfaces crashes with the error 500: Server Error A server error has occurred. Return to Applications screen » GAE folks, can someone please take a look - this is a blocking issue for my team, and I don't know how to proceed here without your help. Everything works just fine when I run it on a local development server. Thank you. On Nov 6, 11:05 am, Diana Cruise diana.l.cru...@gmail.com wrote: I see NO reply from GAE here regarding such a critical issue!!! Is your app still down, what is the status of your app? How are we supposed to put an application in production with GAE if such a problem can occur with NO response for 3 days? Is there another channel to raise such high-priority issues to get proper helpdesk response? On Nov 4, 1:58 am, Dmitry Anipko dmitry.ani...@gmail.com wrote: It is 11:56 Pacific 11/3/2009, are there any known issues withGAE right now? My application that has been working for a couple of months now today started producing failures for some queries from the data store (basically an object which has just been stored cannot be retrieved after that by key), and after some time started producing even htmlhead meta http-equiv=content-type content=text/html;charset=utf-8 title500 Server Error/title /head body text=#00 bgcolor=#ff h1Error: Server Error/h1 h2The server encountered an error and could not complete your request.pIf the problem persists, please A HREF=http:// code.google.com/appengine/support/report/A your problem and mention this error message and the query that caused it./h2 h2/h2 /body/html The same application executes just fine in the localGAEdevelopment environment. Can folks fromGAEcomment if there is any maintenance going on right now or how could I get more details on what causing the failures (again the same code worked for quite some time now, so I think it is unlikely the code is the issue here). Thanks for your help.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted text - - Show quoted text - -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at
Re: [google-appengine] Edit models with key lists
Or write a custom filter that checks to see if the current category is found in the list of checked categories. 2009/11/17 Joshua Smith joshuaesm...@charter.net: I usually tackle these kinds of problems with Javascript. In the page you generate, write javascript commands to check the boxes you need. function setChecks() { {% for c in model.categories %} document.getElementById({{ c }}).checked = true; {% endfor %} } ... {% for c in categories %} input type=checkbox id={{ c.key }} {% endfor %} On Nov 17, 2009, at 12:23 PM, reza wrote: I have a model M defined: class M: ... categories = db.ListProperty(db.Key) I'm trying to figure out a way to ensure that when a user chooses to edit an instance of M they are presented with an edit page that: 1) has a list of checkboxes for each category 2) each category that belongs to the instance of M being edited is preselected (prechecked) Since django templates aren't very powerful, I can't do the comparison of the set of all categories vs the set of categories belonging to M within the template (and I guess I shouldn't). Can someone point me to the correct pattern for doing this? Thanks, Reza -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Cron job schedule time reset when uploading new version
I have a simple cron job that needs to run every X hours --- cron.yaml --- cron: - description: Hourly Check url: /jobs/check schedule: every 1 hours -- If I upload a new version of the app the schedule time of the cron job is reset. I haven't changed cron.yaml. The dashboard cron jobs page shows hasn't run yet after an upload. Why is the schedule time reset on upload of application when the cron job is not changed? Why is the cron job not scheduled/called immediately (or 1 minute) after the upload, if the reset is needed? Then the job would be called a few times to much but at least it gets called. If you have an every 3 hours and you do a few uploads in a day the cron job is hardly ever called. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Re: Increasing task queue quotas
Is your processing not possible with the deferred module added in 1.2.5 http://code.google.com/appengine/articles/deferred.html If you launch many tasks to process the uploads you waste a lot of CPU retrieving the data needed. With the deferred method you run for about 30 sec, then store the state and schedule to get called again. You can setup multiple deferred tasks to process 1 upload by using parameters of the function that deferred calls. 2009/11/18 Julian Namaro namarojul...@gmail.com: I'm not sure about what you want to do but just a thought: have you considered Amazon Elastic MapReduce ? It's sure doable with task queues but you're likely to encounter various limitation problems as you cite. On Nov 18, 1:46 am, James Cooper jamespcoo...@gmail.com wrote: Hi, I'm evaluating GAE suitability for one of my clients. It is a B2B app with very low organic web traffic. However, users upload lists of data that need to be processed in the background. In the absence of native MapReduce support, my plan is to use task queues. But to meet the performance needs of this application, I need to burst to relatively high levels of concurrency. My question is about the discrepancy in the GAE quotas for inbound web traffic vs. task queues. Inbound web traffic can burst to: 500 qps Task queues burst to: 20 qps In my mind, the total concurrency that GAE would provide an app is equal to: inbound qps + task queue qps + cron qps. Given that task queues are implemented as web request handlers, I see little infrastructural reason to distinguish between task queue and inbound traffic. Is it possible to request a task queue quota increase to 500 qps? If not is there a technical reason for this? thanks -- James -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Edit models with key lists
Thanks for the replies, I like both ideas but I feel like this should be handled in the controller somehow. Reza On Nov 18, 12:40 pm, djidjadji djidja...@gmail.com wrote: Or write a custom filter that checks to see if the current category is found in the list of checked categories. 2009/11/17 Joshua Smith joshuaesm...@charter.net: I usually tackle these kinds of problems with Javascript. In the page you generate, write javascript commands to check the boxes you need. function setChecks() { {% for c in model.categories %} document.getElementById({{ c }}).checked = true; {% endfor %} } ... {% for c in categories %} input type=checkbox id={{ c.key }} {% endfor %} On Nov 17, 2009, at 12:23 PM, reza wrote: I have a model M defined: class M: ... categories = db.ListProperty(db.Key) I'm trying to figure out a way to ensure that when a user chooses to edit an instance of M they are presented with an edit page that: 1) has a list of checkboxes for each category 2) each category that belongs to the instance of M being edited is preselected (prechecked) Since django templates aren't very powerful, I can't do the comparison of the set of all categories vs the set of categories belonging to M within the template (and I guess I shouldn't). Can someone point me to the correct pattern for doing this? Thanks, Reza -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Accessing the Data Store from outside application
Look at the article for the remote_api. 2009/11/18 mscwd01 mscw...@gmail.com: Hey, I hava an app which generates a lot of user data which is stored in the data store. At various intervals I wish to process this data using an application running on my pc, is this possible? I.e. looping through all the users in the data store, accessing/ modifying a field of that user object and then saving the changes to the data store. Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Admin dashboard chart shows only last 18 hours instead of 24
fixed for me On Nov 18, 12:53 pm, Ikai L (Google) ika...@google.com wrote: This issue has been resolved. Can those of you that have been affected please check your dashboards? On Tue, Nov 10, 2009 at 10:27 PM, Prashant antsh...@gmail.com wrote: check my app also - *gaewcmsdemo* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~--- -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Cron job syntax
Else you can run the job each hour and check the time in your code. Regards. On 18 nov, 02:39, GAEfan ken...@gmail.com wrote: Is it possible to specify various times in a Cron schedule, like: - description: do this job url: /atThisURL schedule: every mon,tue,wed,thu,fri,sat 06:00,07:00,08:00,09:00,10:00,13:00,17:00 From the spec, it does not look like you can. Hate to waste 7 cron jobs on this one task. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Why not implement a Django database backend for App Engine?
Hi all, I'm newbie in this App Engine. As far I know, lot of Django app portability get solved if someone implement a Django database backend for App Engine. Even I read Once queryset-refactor lands in trunk, it might also be possible to write a database backend for App Engine that would allow any app to run properly. at http://martyalchin.com/2008/apr/8/appengine/ Somebody can explain me why isn't implemented yet such database backend? I, mean is a big deal? What are the main problems that ones must address to write such backend? If the backend exist, porting Django app will be more easy that using Google App Engine Helper for Django? Cheers Frank Abel -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Re: Admin dashboard chart shows only last 18 hours instead of 24
fixed for my all apps, thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Basic site
The helloworld example here http://code.google.com/appengine/docs/python/gettingstarted/helloworld.html is probably about as simple as it comes. On 18/11/2009, Matthew Kramer ran...@gmail.com wrote: I'm fairly new with Google App Engine and I'm wondering if there is a tutorial that shows how I can build a basic site that I can navigate threw. Thanks for any help given. Matthew -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] weird TemplateDoesNotExist error
Hi, I'm getting a lot of TemplateDoesNotExist errors (It's not always, sometimes GAE raise it). And this is not because a statir dir. It's weird because the template works but sometimes I see that error, so it's not about that it doesnt exist. I have like 40 request per second that fetch the template, maybe that's the reason? Is there a way to optimize the rendering of a template? maybe using memcache? Thanks a lot -- Jairo Vasquez Moreno Mentez Developer www.mentez.com Medellin - Colombia -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Cron job syntax
Here's the fun way! Figure out a way to represent the sequence of hours you need it to run... n0 = 6, n1 = n0 + 1, n2 = n1 + 1, n3 = n2 + 1, n4 = n3 + 1, n5 = n4 + 3, n6 = n5 + 4 Have a cron job start it off at 6am... Then have the code set a taskqueue to call itself.. Setting k = k+1 as a parameter each time until it gets to k = 6. I think u could use a = 1 + floor(k/5)*(k-3) So.. You'd have: n[0] = 6 and n[k] = k + a Which.. if you start at 6AM, will then run at 7,8,9,10,13,17 Thus.. At the end of the k-th run.. You just fire off a taskqueu to call the url again with delay = a and params = {'k' : k+1} When the task url is sent the put request.. it checks if k6 or whatever.. if it is.. then the rest of the task runs. kind of cheesy.. but fun to think about. :) On Tue, Nov 17, 2009 at 8:39 PM, GAEfan ken...@gmail.com wrote: Is it possible to specify various times in a Cron schedule, like: - description: do this job url: /atThisURL schedule: every mon,tue,wed,thu,fri,sat 06:00,07:00,08:00,09:00,10:00,13:00,17:00 From the spec, it does not look like you can. Hate to waste 7 cron jobs on this one task. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Unable to appcfg.py update to my app
Unable to appcfg.py update to my app. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Limit on image size very low
If you have a suggestion, I wouldn't mind trying it. I suspect few python imaging libraries would be pure python, though. On Nov 17, 3:08 pm, Eli Jones eli.jo...@gmail.com wrote: Isn't there another image library you could use to resize? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Accessing the Data Store from outside application
Thats great, it would be all the greater if it had Java language support. :( I needed a reason to learn Python though ;) On Nov 18, 9:28 am, djidjadji djidja...@gmail.com wrote: Look at the article for the remote_api. 2009/11/18 mscwd01 mscw...@gmail.com: Hey, I hava an app which generates a lot of user data which is stored in the data store. At various intervals I wish to process this data using an application running on my pc, is this possible? I.e. looping through all the users in the data store, accessing/ modifying a field of that user object and then saving the changes to the data store. Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Using Google App Engine to implement a service which will compute in parallel many tasks ?
Hello, I'd like to know if there is any way to use Google App Engine to make a cloud hosted service which will be compuing in parallel not so trivial tasks. I'm planning to implement raytracer engine, where calculations for each pixel (defining its colour) should be performed in the cloud.. in parallel . Is there possibility to make such thing using Google App Engine ? I'm affraid it's not the purpose of the Google App Engine, but I'd like someone to dispel my doubts. And sorry for my bad english. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: CNAME mapping stopped working 25 minutes ago
We also suffered this problem and its not yet resolved. As of now I am getting a 404 error: www.cheesecare.com Thanks HimS On Nov 18, 5:27 am, Ikai L (Google) ika...@google.com wrote: Google Apps customers, Between 11:25am and 3:49pm Pacific Time, there was a production issue for Google Apps customers causing custom domains to intermittently fail to redirect or proxy. The outages have subsided, but we'll continue to monitor the services closely. We'll have to add Custom Domains to the Google Apps Status page: http://www.google.com/appsstatus#hl=en This issue is also being tracked on the Google Apps known issues page: http://www.google.com/support/a/bin/static.py?page=known_issues.cs -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Searching the datastore
Hi All, I want to have a search box in my page so the user can search for name in an address book for example i expect the user to write any words he wants in the box for search for example Mike Laurance California If such words written and I want to search with it in my data store that has a property for name, address, phone number and other properties, because I don't know what the user will write in the search box, I have to loop with the written words to do queries on all kind of properties i have, then do like intersection between these queries I got from that search. This the way I am thinking in to implement such kind of search, but I see this not an efficient one because with the number of inputs to the search increase, the queries is increase, and if the datastore has huge number of entries, it will become a mess. Also I didn't find an function to intersect queries, it should be done with loops which another mess. Is there any way to do this search with an efficient way even if it is complex. I don't have any knowledge about search engines and techniques, so if there any article or book good to give me a start so I can get the basics for that? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Try to retrieve provisioning group in Google App Engine
Hi all, i tried to retrieve provisioning group list on pagination but it always get timeout error. here is the log report. WARNING 2009-11-18 09:00:45,469 urlfetch_stub.py:269] Stripped prohibited headers from URLFetch request: ['Host', 'Content-Length'] WARNING 2009-11-18 09:00:47,046 urlfetch_stub.py:269] Stripped prohibited headers from URLFetch request: ['Host'] WARNING 2009-11-18 09:00:58,937 urlfetch_stub.py:269] Stripped prohibited headers from URLFetch request: ['Host'] WARNING 2009-11-18 09:01:12,125 urlfetch_stub.py:269] Stripped prohibited headers from URLFetch request: ['Host'] WARNING 2009-11-18 09:01:23,703 urlfetch_stub.py:269] Stripped prohibited headers from URLFetch request: ['Host'] WARNING 2009-11-18 09:01:35,280 urlfetch_stub.py:269] Stripped prohibited headers from URLFetch request: ['Host'] ERROR2009-11-18 09:01:47,594 __init__.py:388] ApplicationError: 2 The read operation timed out Anyone can help me? Thanks, -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Basic site
Hello, You could try this http://code.google.com/appengine/docs/python/gettingstarted/ Yuriy On Nov 18, 3:37 am, Matthew Kramer ran...@gmail.com wrote: I'm fairly new with Google App Engine and I'm wondering if there is a tutorial that shows how I can build a basic site that I can navigate threw. Thanks for any help given. Matthew -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] What does tasks in queue 2000+ means?
Hello everyone, I'm quite confuse at the number shown at the tasks in queue column. Example: I added 3000 tasks, but it showed as 2000+. Does this mean that the number of tasks added in queue now is only 2k, and the remaining 1k of tasks will be discarded? or actually tasks added were 3k, but it was shown as 2000+? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: appcfg.py upload_data failing early
To follow up. I cross posted on StackOverflow Brit: Do you get any more information when you add --noisy ? Are you logged in before you run above line ? Me: Thanks, I didn't know about that flag. The odd thing is that it seems to not make any difference on the WinXP machine that I was working on. To make it odder, the flag, and the upload worked just fine on my Windows 7 lappy. This helped me track down the issue with the install on my WinXP machine. Lloyd On Nov 16, 10:34 pm, Lloyd cled...@gmail.com wrote: I am having trouble getting the bulk uploader to work. I have been following the tutorial here:http://code.google.com/appengine/docs/ python/tools/uploadingdata.html. When I enter the following command (from winodows, using PowerShell) appcfg.py upload_data --config_file=src/friend_loader.py -- filename=frienddata.csv --kind=Friend ./src/ I get the following error: Usage: appcfg.py [options] upload_data directory appcfg.py: error: Expected directory argument. This seems to happen no matter how I change the order of the arguments, where the files are or any other combination that I have tried. Any thoughts appreciated. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Using Google App Engine to implement a service which will compute in parallel many tasks ?
Sure, it is possible: http://code.google.com/intl/fr/appengine/docs/python/taskqueue/ The problem will only be your resource consumption... On 18 nov, 16:09, Wojciech woj...@gmail.com wrote: Hello, I'd like to know if there is any way to use Google App Engine to make a cloud hosted service which will be compuing in parallel not so trivial tasks. I'm planning to implement raytracer engine, where calculations for each pixel (defining its colour) should be performed in the cloud.. in parallel . Is there possibility to make such thing using Google App Engine ? I'm affraid it's not the purpose of the Google App Engine, but I'd like someone to dispel my doubts. And sorry for my bad english. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] What does tasks in queue 2000+ means?
yes, tasks added after 2000 tasks in the queue are shown as 2000+ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Unable to appcfg.py update to my app
Tom, Can you provide the following details? - Version of SDK - app ID - operating system On Wed, Nov 18, 2009 at 8:01 AM, Tom Wu service.g2...@gmail.com wrote: Unable to appcfg.py update to my app. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] syncdb HTTP Error 302
Hi, I am using app engine patch to upload on production server. All goes fine until it tries syncdb. Below are the logs. I searched for such problems earlier but no luck. Please give me some pointers Thanks, Gurminder These are the logs: Uploading index definitions. Running syncdb. Traceback (most recent call last): File manage.py, line 18, in module execute_manager(settings) File /home/sunny/apatch/app-engine-patch-sample/apps/__init__.py, line 384, in execute_manager File /home/sunny/apatch/app-engine-patch-sample/apps/__init__.py, line 325, in execute File /home/sunny/apatch/app-engine-patch-sample/common/zip-packages/ django-1.1.zip/django/core/management/commands/update.py, line 70, in run_from_argv File /home/sunny/apatch/app-engine-patch-sample/common/zip-packages/ django-1.1.zip/django/core/management/commands/update.py, line 53, in run_appcfg File /home/sunny/apatch/app-engine-patch-sample/apps/__init__.py, line 188, in call_command File /home/sunny/apatch/app-engine-patch-sample/common/zip-packages/ django-1.1.zip/django/core/management/base.py, line 227, in execute File /home/sunny/apatch/app-engine-patch-sample/common/zip-packages/ django-1.1.zip/django/core/management/base.py, line 356, in handle File /home/sunny/apatch/app-engine-patch-sample/common/zip-packages/ django-1.1.zip/django/core/management/commands/syncdb.py, line 63, in handle_noargs File /home/sunny/apatch/app-engine-patch-sample/common/ appenginepatch/appenginepatcher/patch.py, line 66, in count return old_count(self, limit) File /usr/local/google_appengine/google/appengine/ext/db/ __init__.py, line 1552, in count result = raw_query.Count(limit=limit) File /usr/local/google_appengine/google/appengine/api/ datastore.py, line 1084, in Count self._ToPb(limit=limit), resp) File /usr/local/google_appengine/google/appengine/api/ apiproxy_stub_map.py, line 72, in MakeSyncCall apiproxy.MakeSyncCall(service, call, request, response) File /usr/local/google_appengine/google/appengine/api/ apiproxy_stub_map.py, line 266, in MakeSyncCall rpc.CheckSuccess() File /usr/local/google_appengine/google/appengine/api/ apiproxy_rpc.py, line 111, in CheckSuccess raise self.exception urllib2.HTTPError: HTTP Error 302: Found -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] mail.Send() complains I need more quota even though I don't
My application had been sending mail without a problem as of last week. I uploaded a new version of the app a week ago (did not change the code that emails) and now get com.google.apphosting.api.ApiProxy$OverQuotaException: The API call mail.Send() required more quota than is unavailable. even though my quota shows zero emails sent so far. Any ideas? My app id is insiderclues. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: How can I redirect www.mydomain.com to my appspot app/ website
On Tue, Nov 17, 2009 at 9:41 PM, SivaTumma sivatu...@gmail.com wrote: For faster paybacks, I put an index.html in the subdomains' root folders and insert this in that file. ..blah blah.. body onload=location.href='http:// where_i_want_this_to_redirect.com'; ..and blah blah. That may not always run though (it will not in my setup for example, so all I would see is a blank page). The proper way would be a 301 header redirect. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Why not implement a Django database backend for App Engine?
On Wed, Nov 18, 2009 at 5:54 AM, frankabel frank.abel...@gmail.com wrote: Hi all, I'm newbie in this App Engine. As far I know, lot of Django app portability get solved if someone implement a Django database backend for App Engine. Even I read Once queryset-refactor lands in trunk, it might also be possible to write a database backend for App Engine that would allow any app to run properly. at http://martyalchin.com/2008/apr/8/appengine/ Somebody can explain me why isn't implemented yet such database backend? I, mean is a big deal? What are the main problems that ones must address to write such backend? If the backend exist, porting Django app will be more easy that using Google App Engine Helper for Django? Because the datastore is not a database. Some of their operations may look similar, but they really are not. It is not a direct 1-to-1 mapping, no where near actually. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Google voice on app engine
Is there a way to use google voice on the app engine? I created a library for google voice but can't seem to get around change the host value of the requests. Or is there another approach i can take? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Why not implement a Django database backend for App Engine?
While it is a difficult task there is people trying to work around it. Follow wkornewald at http://bitbucket.org/wkornewald/ he is doing an excellent work Cheers, Sebastian Serrano http://www.sserrano.com On 18 nov, 09:54, frankabel frank.abel...@gmail.com wrote: Hi all, I'm newbie in this App Engine. As far I know, lot of Django app portability get solved if someone implement a Django database backend for App Engine. Even I read Once queryset-refactor lands in trunk, it might also be possible to write a database backend for App Engine that would allow any app to run properly. athttp://martyalchin.com/2008/apr/8/appengine/ Somebody can explain me why isn't implemented yet such database backend? I, mean is a big deal? What are the main problems that ones must address to write such backend? If the backend exist, porting Django app will be more easy that using Google App Engine Helper for Django? Cheers Frank Abel -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Searching the datastore
You probably want to first look at Lucene http://lucene.apache.org/java/docs/ If you don't like that, you can try implementing this: http://www.miislita.com/term-vector/term-vector-3.html -Tristan On Nov 18, 5:47 am, Barakat ahmedbara...@gmail.com wrote: Hi All, I want to have a search box in my page so the user can search for name in an address book for example i expect the user to write any words he wants in the box for search for example Mike Laurance California If such words written and I want to search with it in my data store that has a property for name, address, phone number and other properties, because I don't know what the user will write in the search box, I have to loop with the written words to do queries on all kind of properties i have, then do like intersection between these queries I got from that search. This the way I am thinking in to implement such kind of search, but I see this not an efficient one because with the number of inputs to the search increase, the queries is increase, and if the datastore has huge number of entries, it will become a mess. Also I didn't find an function to intersect queries, it should be done with loops which another mess. Is there any way to do this search with an efficient way even if it is complex. I don't have any knowledge about search engines and techniques, so if there any article or book good to give me a start so I can get the basics for that? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: XMPP Requests
I already filled such issue http://code.google.com/p/googleappengine/issues/detail?id=2071 for several month ago. Could you tell, have you any plans on realising such functionality? On Nov 6, 5:34 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Kevin, Not currently, no. Please feel free to file an issue in the bug tracker for supporting more message types. -Nick Johnson On Wed, Nov 4, 2009 at 9:26 PM, Kevin kevina...@gmail.com wrote: ok.. and is it possible to give the bot a profile? and a profile picture? thanks! On Wed, Nov 4, 2009 at 7:52 AM, Nick Johnson (Google) nick.john...@google.com wrote: Hi Kevin, At the moment, App Engine XMPP bots can only receive XMPP messages of types 'normal' and 'chat'. -Nick Johnson On Fri, Oct 30, 2009 at 3:23 PM, kevinalle kevina...@gmail.com wrote: Hi. I am developing an app that uses the XMPP handler to make a chat bot.. my question is: is it possible to write an iqHandler to handle other type of requests? i want my bot to have a profile. and to do that i need to answer to an xmpp request that looks like: iq type='get' from='b...@shakespeare.lit/globe' to='ham...@denmark.lit' id='disco1' query xmlns='http://jabber.org/protocol/disco#info'/http://jabber.org/protocol/disco#info%27/ /iq can i write a handler for this type of request? thanks! Kevin -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: weird TemplateDoesNotExist error
Are you using Django 1.0? There is an initialization problem with Django 1.0. If a DeadlineExeecedError occurs while a new instance is spinning-up, it can leave Django 1.0 in a partially initialized state and these kind of errors will continue to stream out until the instance is recycled. We've tried moving to Django 1.1 which apparently corrects this problem. So far, so good. j On Nov 18, 9:18 am, Jairo Vasquez Moreno jairo.vasq...@gmail.com wrote: Hi, I'm getting a lot of TemplateDoesNotExist errors (It's not always, sometimes GAE raise it). And this is not because a statir dir. It's weird because the template works but sometimes I see that error, so it's not about that it doesnt exist. I have like 40 request per second that fetch the template, maybe that's the reason? Is there a way to optimize the rendering of a template? maybe using memcache? Thanks a lot -- Jairo Vasquez Moreno Mentez Developerwww.mentez.com Medellin - Colombia -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Cron job schedule time reset when uploading new version
We had a nightly job on our development server to which we also did a daily automated build. The cron job never executed. It took me forever to understand why. I'm not sure why it is designed this way. j On Nov 18, 3:12 am, djidjadji djidja...@gmail.com wrote: I have a simple cron job that needs to run every X hours --- cron.yaml --- cron: - description: Hourly Check url: /jobs/check schedule: every 1 hours -- If I upload a new version of the app the schedule time of the cron job is reset. I haven't changed cron.yaml. The dashboard cron jobs page shows hasn't run yet after an upload. Why is the schedule time reset on upload of application when the cron job is not changed? Why is the cron job not scheduled/called immediately (or 1 minute) after the upload, if the reset is needed? Then the job would be called a few times to much but at least it gets called. If you have an every 3 hours and you do a few uploads in a day the cron job is hardly ever called. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Re: Cron job schedule time reset when uploading new version
Can you guys log this as an issue? I don't see this in our issue tracker. http://code.google.com/p/googleappengine/issues/list?can=2q=cron On Wed, Nov 18, 2009 at 2:01 PM, Jason C jason.a.coll...@gmail.com wrote: We had a nightly job on our development server to which we also did a daily automated build. The cron job never executed. It took me forever to understand why. I'm not sure why it is designed this way. j On Nov 18, 3:12 am, djidjadji djidja...@gmail.com wrote: I have a simple cron job that needs to run every X hours --- cron.yaml --- cron: - description: Hourly Check url: /jobs/check schedule: every 1 hours -- If I upload a new version of the app the schedule time of the cron job is reset. I haven't changed cron.yaml. The dashboard cron jobs page shows hasn't run yet after an upload. Why is the schedule time reset on upload of application when the cron job is not changed? Why is the cron job not scheduled/called immediately (or 1 minute) after the upload, if the reset is needed? Then the job would be called a few times to much but at least it gets called. If you have an every 3 hours and you do a few uploads in a day the cron job is hardly ever called. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: mail.Send() complains I need more quota even though I don't
Same issue here. Being over quota is impossible since I've sent like three messages. Any help? On Nov 18, 1:38 pm, crag cra...@gmail.com wrote: My application had been sendingmailwithout a problem as of last week. I uploaded a new version of the app a week ago (did not change the code that emails) and now get com.google.apphosting.api.ApiProxy$OverQuotaException: The API callmail.Send() required more quota than is unavailable. even though my quota shows zero emails sent so far. Any ideas? My app id is insiderclues. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Re: mail.Send() complains I need more quota even though I don't
Cynthia, What's your application ID? Crag, is there any chance you could be over a CPU quota? I checked your application and you are pretty close to an hourly quota. I'll investigate to see if exceeding a CPU quota on sending a mail is triggering that error. On Wed, Nov 18, 2009 at 2:27 PM, Cynthia Kurtz cfku...@cfkurtz.com wrote: Same issue here. Being over quota is impossible since I've sent like three messages. Any help? On Nov 18, 1:38 pm, crag cra...@gmail.com wrote: My application had been sendingmailwithout a problem as of last week. I uploaded a new version of the app a week ago (did not change the code that emails) and now get com.google.apphosting.api.ApiProxy$OverQuotaException: The API callmail.Send() required more quota than is unavailable. even though my quota shows zero emails sent so far. Any ideas? My app id is insiderclues. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Limit on image size very low
Another issue is, the 1MB limit is incompatible with audio and video as well as just images. So it's not just an imaging library that is needed, it's everything. I had planned to have people be able to collect stories in audio format (say from old folks) and upload them to my site (Rakontu) but given the 1MB limit that's pretty much out of the question. That and the Timeouts and other gotchas make it hard to create anything that approximates real social media on GAE. :( But here's hoping it grows up over time. Moore's law is in our favor here. On Nov 18, 11:03 am, Bjoern bjoer...@googlemail.com wrote: If you have a suggestion, I wouldn't mind trying it. I suspect few python imaging libraries would be pure python, though. On Nov 17, 3:08 pm, Eli Jones eli.jo...@gmail.com wrote: Isn't there another image library you could use to resize? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Looking for Bulk Loader beta testers
Hi everyone, Thanks for the response so far--we'll be getting back to you over the next few days. I'd like to point out an existing feature which will be helpful to many of you: --dump and --restore. This will download or upload all of the entities for a particular Kind and save them in a local sqlite database. It's useful for general backup (e.g. a weekly backup), and also useful for moving data across applications, such as between your app running on the dev_appserver and on App Engine, or to load a staging instance with a known set of test data. You can find more information here: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data Also, for Java developers, there is a remote API handler available; adding following to your web xml file should work (disclaimer: I have not yet personally tested this.) servlet servlet-nameremoteapi/servlet-name servlet-classcom.google.apphosting.utils.remoteapi.RemoteApiServlet/servlet-class /servlet servlet-mapping servlet-nameremoteapi/servlet-name url-pattern/remote_api/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameremoteapi/web-resource-name url-pattern/remote_api/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint --Matthew On Tue, Nov 17, 2009 at 12:53 PM, Matthew Blain matthew.bl...@google.comwrote: Hi App Engine developers, We're working on some improvements and additions to the bulk loader to make it easier to move data between the App Engine Datastore and other data files you may have. If you're doing this right now, we're looking for some beta testers. Two specific issues we're addressing at this time are: * More language-neutral: Java developers, this will help you! * More format-neutral: If you use some format other than CSV, this will help you! If you're interested, fill out the form at https://spreadsheets.google.com/viewform?formkey=dC15V2hwczhpZ1VVWFhPZGhXR1dydUE6MQ to get started. --Matthew -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Limit on image size very low
Sorry - to clarify - I wasn't talking about the imaging service, I was talking about the database limit. I had originally intended to have attachments to stories, which could include say PDF as well as audio and video and images. If there is a way to break up ANY binary data into 1MB chunks and get it in and out of the database cleanly, I'm all ears. On Nov 18, 5:51 pm, Cynthia Kurtz cfku...@cfkurtz.com wrote: Another issue is, the 1MB limit is incompatible with audio and video as well as just images. So it's not just an imaging library that is needed, it's everything. I had planned to have people be able to collect stories in audio format (say from old folks) and upload them to my site (Rakontu) but given the 1MB limit that's pretty much out of the question. That and the Timeouts and other gotchas make it hard to create anything that approximates real social media on GAE. :( But here's hoping it grows up over time. Moore's law is in our favor here. On Nov 18, 11:03 am, Bjoern bjoer...@googlemail.com wrote: If you have a suggestion, I wouldn't mind trying it. I suspect few python imaging libraries would be pure python, though. On Nov 17, 3:08 pm, Eli Jones eli.jo...@gmail.com wrote: Isn't there another image library you could use to resize? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Re: Limit on image size very low
Cynthia, I have good news for you: From here: http://code.google.com/appengine/docs/roadmap.html - Service for storing and serving large files It's coming! We hear you. On Wed, Nov 18, 2009 at 3:01 PM, Cynthia Kurtz cfku...@cfkurtz.com wrote: Sorry - to clarify - I wasn't talking about the imaging service, I was talking about the database limit. I had originally intended to have attachments to stories, which could include say PDF as well as audio and video and images. If there is a way to break up ANY binary data into 1MB chunks and get it in and out of the database cleanly, I'm all ears. On Nov 18, 5:51 pm, Cynthia Kurtz cfku...@cfkurtz.com wrote: Another issue is, the 1MB limit is incompatible with audio and video as well as just images. So it's not just an imaging library that is needed, it's everything. I had planned to have people be able to collect stories in audio format (say from old folks) and upload them to my site (Rakontu) but given the 1MB limit that's pretty much out of the question. That and the Timeouts and other gotchas make it hard to create anything that approximates real social media on GAE. :( But here's hoping it grows up over time. Moore's law is in our favor here. On Nov 18, 11:03 am, Bjoern bjoer...@googlemail.com wrote: If you have a suggestion, I wouldn't mind trying it. I suspect few python imaging libraries would be pure python, though. On Nov 17, 3:08 pm, Eli Jones eli.jo...@gmail.com wrote: Isn't there another image library you could use to resize? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Increasing task queue quotas
Hi there, Yes, I've considered Amazon's offering, but would prefer to keep the entire system on GAE if possible to reduce complexity. thanks, -- James On Nov 17, 7:13 pm, Julian Namaro namarojul...@gmail.com wrote: I'm not sure about what you want to do but just a thought: have you considered Amazon Elastic MapReduce ? It's sure doable with task queues but you're likely to encounter various limitation problems as you cite. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Increasing task queue quotas
Hi, My primary concern is throughput, not cost. I would be happy to pay more to gain higher concurrency and higher throughput. If a customer uploads a list with 100,000 items to process, I would like to burst to some upper limit of concurrency (higher than 20 qps at least) and process the list as quickly as possible. This seems to be something GAE could provide if the concurrency limits were raised. My question is whether Google would allow a customer to request a quota increase for task queue concurrency in situations like this, or whether that's forbidden across the board for some reason. Anyone from Google who can help answer this? thanks, -- James On Nov 18, 1:24 am, djidjadji djidja...@gmail.com wrote: Is your processing not possible with the deferred module added in 1.2.5 http://code.google.com/appengine/articles/deferred.html If you launch many tasks to process the uploads you waste a lot of CPU retrieving the data needed. With the deferred method you run for about 30 sec, then store the state and schedule to get called again. You can setup multiple deferred tasks to process 1 upload by using parameters of the function that deferred calls. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
Re: [google-appengine] Re: Cron job schedule time reset when uploading new version
I used the original message text as the text for the issue http://code.google.com/p/googleappengine/issues/detail?id=2408 2009/11/18 Ikai L (Google) ika...@google.com: Can you guys log this as an issue? I don't see this in our issue tracker. http://code.google.com/p/googleappengine/issues/list?can=2q=cron On Wed, Nov 18, 2009 at 2:01 PM, Jason C jason.a.coll...@gmail.com wrote: We had a nightly job on our development server to which we also did a daily automated build. The cron job never executed. It took me forever to understand why. I'm not sure why it is designed this way. j On Nov 18, 3:12 am, djidjadji djidja...@gmail.com wrote: I have a simple cron job that needs to run every X hours --- cron.yaml --- cron: - description: Hourly Check url: /jobs/check schedule: every 1 hours -- If I upload a new version of the app the schedule time of the cron job is reset. I haven't changed cron.yaml. The dashboard cron jobs page shows hasn't run yet after an upload. Why is the schedule time reset on upload of application when the cron job is not changed? Why is the cron job not scheduled/called immediately (or 1 minute) after the upload, if the reset is needed? Then the job would be called a few times to much but at least it gets called. If you have an every 3 hours and you do a few uploads in a day the cron job is hardly ever called. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Getting Strange Error From Cron Job
I am attempting to implement an application that performs some occasional web crawling as a component of its day-to-day functionality. The web crawling code can be executed from a jsp file. When I test it on my computer by accessing the jsp file, it performs its desired function nicely, as expected. So I decided to go try it on the app engine, and if I run it by accessing the .jsp file, I get a HardDeadlineExceededError, which I am told occurs when the request takes longer than 30 seconds, which is understandable. However, when I try to execute it as a cron job, every time it runs, it ends after about 5 seconds, with a different exception: java.lang.ClassCastException: java.lang.ArrayIndexOutOfBoundsException cannot be cast to javax.servlet.ServletException ...and the stack trace doesn't reference any of my code at all, which is making this difficult to debug. Does anyone have a clue what might be causing something like this? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Getting Strange Error From Cron Job
On Nov 18, 7:44 pm, Kevin norelaxat...@gmail.com wrote: I am attempting to implement an application that performs some occasional web crawling as a component of its day-to-day functionality. The web crawling code can be executed from a jsp file. When I test it on my computer by accessing the jsp file, it performs its desired function nicely, as expected. So I decided to go try it on the app engine, and if I run it by accessing the .jsp file, I get a HardDeadlineExceededError, which I am told occurs when the request takes longer than 30 seconds, which is understandable. However, when I try to execute it as a cron job, every time it runs, it ends after about 5 seconds, with a different exception: java.lang.ClassCastException: java.lang.ArrayIndexOutOfBoundsException cannot be cast to javax.servlet.ServletException ...and the stack trace doesn't reference any of my code at all, which is making this difficult to debug. Does anyone have a clue what might be causing something like this? I'd reproduce and track exactly where, either in engine or app, find the iteration or recursion accessing the Array and we know more. Array or ArrayList is the best structure and trying to access element outside array means an array index calculation went one beyond predefined Array length. Meantime here's a good old classic themed crawling http://www.weyrich.com/book_reviews/internet_agents.html technical and cultural Sincerely Nick Rosencrantz In fact there're 2 errors here, the (expensive) casting fails and it tries accessing a row element longer than the row. Which could be a Vector internally Array implemented. Vector internally -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: datastore viewer delay
yeah my dataviewer always shows, but there seems to be a delay in updating the content. On Nov 18, 3:11 pm, 风笑雪 kea...@gmail.com wrote: Model will always show in dataviewer. The only way I find to not show it is re-define you Model class without any property, and deploy it again. 2009/11/18 Baron richar...@gmail.com: Hello, I removed all the records from a model but when I checked the data viewer they were still there for atleast 15 minutes afterwards. When I delete a record is it actually deleted immediately, or just scheduled for deletion? thanks, Richard -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] datastore glitch/corruption?
I'm experiencing weird data corruption issues that seem to be caused by a glitch in the datastore. There is a chance that there is a bug in my code, of course, but I have spent hours looking for holes and I see none. Basically, I have an entity (table) with several content fields and two tracking fields. One is a simple timestamp that is auto updated (auto_now = True). The other tracking field stores the session ID of the last session that updated the entity. There are only four methods that update the entity, and all set the session ID properly. Situation: sometimes entities get one of their content fields (of the TextProperty type) populated with weird data, probably (this is a guess) with data from other records in the same 'table'. What's more, it appears that this happens on read-only operations. For example, I read today about 100 records, and most of them had this field corrupted. ALL OF THE CORRUPTED RECORDS had the 'modified' field (auto_now timestamp) set to the time when I was reading them, while all of them had last_session_id set to a session that happened a month ago. I've read about a gmail glitch that resulted in some users seeing emails of other users, and this seems to be a similar kind of bug. Am I imagining things, and the datastore is 100% reliable, or is the scenario I am describing potentially possible? Thanks, MG -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: Why not implement a Django database backend for App Engine?
Traditional relational databases are not scalable, and using such library would most likely result in a data organization that does not scale well. Might be fine for a lot of apps, but it kind of defeat the main purpose of using a cloud infrastructure. On Nov 18, 9:54 pm, frankabel frank.abel...@gmail.com wrote: Hi all, I'm newbie in this App Engine. As far I know, lot of Django app portability get solved if someone implement a Django database backend for App Engine. Even I read Once queryset-refactor lands in trunk, it might also be possible to write a database backend for App Engine that would allow any app to run properly. athttp://martyalchin.com/2008/apr/8/appengine/ Somebody can explain me why isn't implemented yet such database backend? I, mean is a big deal? What are the main problems that ones must address to write such backend? If the backend exist, porting Django app will be more easy that using Google App Engine Helper for Django? Cheers Frank Abel -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: mail.Send() complains I need more quota even though I don't
Thanks for taking a look, Ikai. I doubt it is an hourly CPU thing. After 20 hours, I have used 33% of CPU quota and the load will likely have been well distributed over that time. Also, searching the logs for [Qq][Uu][Oo][Tt][Aa] do not reveal anything except for mail.send calls. On Nov 18, 2:31 pm, Ikai L (Google) ika...@google.com wrote: Cynthia, What's your application ID? Crag, is there any chance you could be over a CPU quota? I checked your application and you are pretty close to an hourly quota. I'll investigate to see if exceeding a CPU quota on sending a mail is triggering that error. On Wed, Nov 18, 2009 at 2:27 PM, Cynthia Kurtz cfku...@cfkurtz.com wrote: Same issue here. Being over quota is impossible since I've sent like three messages. Any help? On Nov 18, 1:38 pm, crag cra...@gmail.com wrote: My application had been sendingmailwithout a problem as of last week. I uploaded a new version of the app a week ago (did not change the code that emails) and now get com.google.apphosting.api.ApiProxy$OverQuotaException: The API callmail.Send() required more quota than is unavailable. even though my quota shows zero emails sent so far. Any ideas? My app id is insiderclues. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Re: mail.Send() complains I need more quota even though I don't
My app id is rakontu. The issue came up when one of my users tried to send an email with a list of To: addresses with 10 emails in it. I tried to replicate the error and couldn't, but I only tried sending to two people at once. Could there be some hidden email to-list cutoff? On Nov 18, 11:35 pm, crag cra...@gmail.com wrote: Thanks for taking a look, Ikai. I doubt it is an hourly CPU thing. After 20 hours, I have used 33% of CPU quota and the load will likely have been well distributed over that time. Also, searching the logs for [Qq][Uu][Oo][Tt][Aa] do not reveal anything except for mail.send calls. On Nov 18, 2:31 pm, Ikai L (Google) ika...@google.com wrote: Cynthia, What's your application ID? Crag, is there any chance you could be over a CPU quota? I checked your application and you are pretty close to an hourly quota. I'll investigate to see if exceeding a CPU quota on sending a mail is triggering that error. On Wed, Nov 18, 2009 at 2:27 PM, Cynthia Kurtz cfku...@cfkurtz.com wrote: Same issue here. Being over quota is impossible since I've sent like three messages. Any help? On Nov 18, 1:38 pm, crag cra...@gmail.com wrote: My application had been sendingmailwithout a problem as of last week. I uploaded a new version of the app a week ago (did not change the code that emails) and now get com.google.apphosting.api.ApiProxy$OverQuotaException: The API callmail.Send() required more quota than is unavailable. even though my quota shows zero emails sent so far. Any ideas? My app id is insiderclues. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=. -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] GAE Python Chinese feed url fetch problem
Hi there, We have run into this feed fetch problem, with GAE Python code throwing DownloadError. This problem seems to happen to a lot of feeds with Chinese characters inside. Almost any feed from feedsky.com causes such problem. http://feed.feedsky.com/qiushi http://feed.feedsky.com/ihero http://feed.feedsky.com/ken http://feed.feedsky.com/cutescr http://feed.glif.cn/ All these feeds can be subscribed correctly by Google Reader. Is this a known problem? Any suggestion to fix or work around is appreciated! Thanks, Alan File D:\Python25\lib\urllib2.py, line 381, in open response = self._open(req, data) File D:\Python25\lib\urllib2.py, line 399, in _open '_open', req) File D:\Python25\lib\urllib2.py, line 360, in _call_chain result = func(*args) File D:\Python25\lib\urllib2.py, line 1107, in http_open return self.do_open(httplib.HTTPConnection, req) File D:\Python25\lib\urllib2.py, line 1080, in do_open r = h.getresponse() File D:\Program Files\Google\google_appengine\google\appengine\dist\httplib.py, line 203, in getresponse self._allow_truncated, self._follow_redirects) File D:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py, line 241, in fetch return rpc.get_result() File D:\Program Files\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py, line 478, in get_result return self.__get_result_hook(self) File D:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 ['\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\xec} \xe9S\x1bY\xb2\xef\xe7\xf6_Q\xd7\x13w\xdc\x13m\xd0\x02bk\xa0oO\x8f\xbb_\xbf\xe9\xc5\xd1 \xf6\x8c\xa3\xe3\xc6\r\x87\x90JBc!i\xb4\x18s\xe3\xc5\r\t\x10\x88U\xc2fG\x98 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.