[appengine-java] Is replyTo supposed to work when sending emails?
Hi all, I specified a replyTo when building a message I'm sending from my application. I'm sending with my authorized email address, but setting a different replyTo, corresponding to the email a user has entered in a contact form. However, the email I receive doesn't seem to exhibit the replyTo I specified, and instead, when I hit reply, that's to the authorized sender (my own account) that I'm replying to. Am I missing something? Isn't it supposed to be working? -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- 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] Is replyTo supposed to work when sending emails?
So I guess I'm not dreaming, replyTo is not respected. Should I file an issue in the bug tracker about this? On Fri, Dec 4, 2009 at 13:45, david ruescas fastn...@gmail.com wrote: Ive observed the same behaviour -- 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=en. -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- 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] Is replyTo supposed to work when sending emails?
Actually, I've had a look at the message headers, and I do see a reply to: Reply-To: f...@bar.com But it's when I hit reply in Gmail that it replies to the sender and not the replyTo. So perhaps it's more a problem of Gmail itself than of the SDK? David, have you experienced this when replying from withing Gmail, or was it elsewhere? (other mail client or provider) Guillaume On Fri, Dec 4, 2009 at 13:47, Guillaume Laforge glafo...@gmail.com wrote: So I guess I'm not dreaming, replyTo is not respected. Should I file an issue in the bug tracker about this? On Fri, Dec 4, 2009 at 13:45, david ruescas fastn...@gmail.com wrote: Ive observed the same behaviour -- 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=en. -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- 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] Is replyTo supposed to work when sending emails?
I cant remember right now, but ill get back to you On 12/4/09, Guillaume Laforge glafo...@gmail.com wrote: Actually, I've had a look at the message headers, and I do see a reply to: Reply-To: f...@bar.com But it's when I hit reply in Gmail that it replies to the sender and not the replyTo. So perhaps it's more a problem of Gmail itself than of the SDK? David, have you experienced this when replying from withing Gmail, or was it elsewhere? (other mail client or provider) Guillaume On Fri, Dec 4, 2009 at 13:47, Guillaume Laforge glafo...@gmail.com wrote: So I guess I'm not dreaming, replyTo is not respected. Should I file an issue in the bug tracker about this? On Fri, Dec 4, 2009 at 13:45, david ruescas fastn...@gmail.com wrote: Ive observed the same behaviour -- 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=en. -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- 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. -- 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] App Engine SDK 1.2.8 released including new Admin Console features
Is SDK 1.2.8 going to be added to the Eclipse update site? Vince On Thu, Dec 3, 2009 at 6:06 PM, App Engine Team appengine.nore...@gmail.com wrote: The App Engine team has been hard at work tackling our the issues on our tracker, tweaking APIs and closing bugs. In addition to a ton of bug fixes, 1.2.8 also includes: Enhanced Admin Console - Users will notice new tools for managing tasks and queues created with the Task Queue API, and more visibility into index processing. Improved Java Compatibility - This release adds support for new filter operators and inheritance to JPA and JDO as well as support for JAXB, the single most requested feature for the Java SDK. This was also the first release we previewed with developers before formally rolling out changes. Thanks very much to all the developers that gave us feedback on the preview release. 1.2.8 is now available for both Python and Java developers. Take a look at our release notes for details on all the changes included in this release. -- 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: Help Requested: How to persist a HashMapString, T extends Object?
JDOHelper.makeSerializedDirty(object); Maybe best not to call it JDOHelper since that class is already defined and you'll give people the impression that this is a valid method on that (standard) class, and the method clearly wont work for classes using XML metadata. -- 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] unable to deploy new versions after upgrade to 1.2.8
I am going through all the usual motions and yet the deployment of a new version never finishes successfully; instead I am getting java.lang.RuntimeException: Version not ready. in the /tmp log -- 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] unable to deploy new versions after upgrade to 1.2.8
On Fri, Dec 4, 2009 at 6:32 PM, jacek.ambroziak jacek.ambroz...@gmail.com wrote: I am going through all the usual motions and yet the deployment of a new version never finishes successfully; instead I am getting java.lang.RuntimeException: Version not ready. in the /tmp log I had the same issue today... (also according to google-appengine-downtime-not...@googlegroups.com). it is fixed now (at least for me)... ra -- 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. -- 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] unable to deploy new versions after upgrade to 1.2.8
Yes, it should be fixed now. Let us know if you're still having trouble. On Fri, Dec 4, 2009 at 11:35 AM, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: On Fri, Dec 4, 2009 at 6:32 PM, jacek.ambroziak jacek.ambroz...@gmail.com wrote: I am going through all the usual motions and yet the deployment of a new version never finishes successfully; instead I am getting java.lang.RuntimeException: Version not ready. in the /tmp log I had the same issue today... (also according to google-appengine-downtime-not...@googlegroups.com). it is fixed now (at least for me)... ra -- 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=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.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: javax.jdo.JDOObjectNotFoundException: Could not retrieve entity of kind Transactions with key Transactions(Transactions(67))
com.google.appengine.api.datastore.Key:Categories(76) is what's returned on the insert: Categories category = new Categories(user.getNickname(), account, categoryName); pm.makePersistent(category); Object o = JDOHelper.getObjectId(category); System.out.println(o.toString()); This is what's returned when doing the delete: Dec 4, 2009 12:57:54 PM org.datanucleus.jdo.JDOAdapter getNewSingleFieldIdentity SEVERE: Error encountered while creating SingleFieldIdentity instance of type javax.jdo.identity.ObjectIdentity Dec 4, 2009 12:57:54 PM org.datanucleus.jdo.JDOAdapter getNewSingleFieldIdentity SEVERE: java.lang.reflect.InvocationTargetException Dec 4, 2009 12:57:54 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /categories java.lang.NullPointerException at ma.CategoriesServlet.doPost(CategoriesServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:306) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) 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) Which log are you referring to? Can you point me to where it would be on my computer? On Dec 3, 7:36 am, datanucleus andy_jeffer...@yahoo.com wrote: This is strange - when I retrieve the object after persisting via JDOHelper.getObjectId(obj), I get an object back no problem. Yes, but you haven't told us what is the id returned by that method. And whats in the log when you invoke that pm.getObjectById ... ? Then,before trying to delete the object, I do pm.newObjectIdInstance (Categories.class, key) and I get a NullPointerException. Perhaps if you post the actual exception and stack trace, cos without it it means very little. ANd whats in the log ? -- 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] Unable to update app: Version not ready.
Hi, I am receiving a Unable to update app: Version not ready deployement error for the application quemap-alpha-dev. Can anybody help ? thank you. Here are the Event Details: /**/ Message: Unable to update app: Version not ready. See the deployment console for more details. Exception Stack Trace: com.google.appengine.tools.admin.AdminException: Unable to update app: Version not ready. 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.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit (AppVersionUpload.java:361) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:114) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) ... 4 more Session Data: eclipse.buildId=M20090917-0800 java.version=1.5.0_07 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_CA Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -- 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: Querying sub objects with JDOQL in GAE/J
Just want to share what I did. I use JDOQL to query the preferred child object. From that child object, I use its key to get the parent key, and from that parent key I have the primary key of the parent object. Then, I get the parent and child object together in the same entity group using the primary key. It's all done in the same transaction. I hope this help a bit. On Nov 17, 11:04 pm, leszek leszek.ptokar...@gmail.com wrote: It is not supported in Google App Engine JPA/JDO http://code.google.com/intl/pl/appengine/docs/java/datastore/usingjdo... Join queries. You cannot use a field of a child entity in a filter when performing a query on the parent kind. Note that you can test the parent's relationship field directly in query using a key. --- The only way is to denormalization. Simple duplicate fields in Employ and ContactInfo you want to query on. -- 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: App Engine SDK 1.2.8 released including new Admin Console features
Is it deployed to Eclipse update site? I could not found this release in Eclipse software update, even after refresh. -- 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] What does precompilation-enabledtrue/precompilation-enabled do?
The 1.2.8 release notes state that pre-compilation reduces the length of loading requests. Does pre-compilation reduce the *time* to load the application? How does pre-compilation work? I noticed that the appcfg update command logs information about precompilation. -- 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: App Engine SDK 1.2.8 released including new Admin Console features
1.2.8 is available on the Eclipse update site now. Sorry for the delay. On Dec 3, 6:26 pm, Oasis oasisf...@gmail.com wrote: Is it deployed to Eclipse update site? I could not found this release in Eclipse software update, even after refresh. -- 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] Unable to update app: Version not ready.
This should have been resolved. Can you double check? On Fri, Dec 4, 2009 at 8:56 AM, PLL pask...@gmail.com wrote: Hi, I am receiving a Unable to update app: Version not ready deployement error for the application quemap-alpha-dev. Can anybody help ? thank you. Here are the Event Details: /**/ Message: Unable to update app: Version not ready. See the deployment console for more details. Exception Stack Trace: com.google.appengine.tools.admin.AdminException: Unable to update app: Version not ready. 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.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit (AppVersionUpload.java:361) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:114) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) ... 4 more Session Data: eclipse.buildId=M20090917-0800 java.version=1.5.0_07 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_CA Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -- 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=en. -- 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] JDO/JPA Snippets That Work - != and IN Filters
http://gae-java-persistence.blogspot.com/2009/12/queries-with-and-in-filters.html -- 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: JAXB doesn't work for me in 1.2.8
Same problem here. On Dec 4, 8:16 am, Jeremy Blythe jeremybly...@gmail.com wrote: I get this error: Constructor threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory] My Constructor is pretty simple: RssService() { try { jaxbContext = JAXBContext.newInstance(Rss.class); unmarshaller = jaxbContext.createUnmarshaller(); marshaller = jaxbContext.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); } catch (JAXBException e) { throw new RuntimeException(e); } } I only get this problem on the Deployed environment, not on the Development environment. Am I missing something? -- 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] JAXB doesn't work for me in 1.2.8
Can you supply a stacktrace please? On Fri, Dec 4, 2009 at 3:16 AM, Jeremy Blythe jeremybly...@gmail.comwrote: I get this error: Constructor threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory] My Constructor is pretty simple: RssService() { try { jaxbContext = JAXBContext.newInstance(Rss.class); unmarshaller = jaxbContext.createUnmarshaller(); marshaller = jaxbContext.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); } catch (JAXBException e) { throw new RuntimeException(e); } } I only get this problem on the Deployed environment, not on the Development environment. Am I missing something? -- 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=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.
Re: [appengine-java] Re: JAXB doesn't work for me in 1.2.8
Can one of you post a full stack trace? Thanks, Don On Fri, Dec 4, 2009 at 12:42 PM, javaprime javapr...@gmail.com wrote: Same problem here. On Dec 4, 8:16 am, Jeremy Blythe jeremybly...@gmail.com wrote: I get this error: Constructor threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory] My Constructor is pretty simple: RssService() { try { jaxbContext = JAXBContext.newInstance(Rss.class); unmarshaller = jaxbContext.createUnmarshaller(); marshaller = jaxbContext.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); } catch (JAXBException e) { throw new RuntimeException(e); } } I only get this problem on the Deployed environment, not on the Development environment. Am I missing something? -- 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=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: JAXB doesn't work for me in 1.2.8
Error for /cron/url_update_delta java.lang.ExceptionInInitializerError at com.amazonaws.queue.AmazonSQSClient.clinit(AmazonSQSClient.java: 108) at compareodds.webapp.server.util.SQSQueue.buildQueue(SQSQueue.java: 65) at compareodds.webapp.server.util.SQSQueue.buildURLQueue (SQSQueue.java:57) at compareodds.webapp.server.request.URLUpdate.init(URLUpdate.java: 33) at compareodds.webapp.server.request.handlers.cron_url_update_delta.doGet (cron_url_update_delta.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable (RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest (JettyServletEngineAdapter.java:139) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java:239) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5233) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest (BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 363) at com.google.net.rpc.impl.Server$2.run(Server.java:838) at com.google.tracing.LocalTraceSpanRunnable.run (LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan (LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:793) at com.google.net.rpc.impl.Server.processRequest(Server.java:368) at com.google.net.rpc.impl.ServerConnection.messageReceived (ServerConnection.java:448) at com.google.net.rpc.impl.RpcConnection.parseMessages (RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived (RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 466) at com.google.net.async.EventDispatcher.processNetworkEvents (EventDispatcher.java:759) at com.google.net.async.EventDispatcher.internalLoop (EventDispatcher.java:205) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 101) at com.google.net.rpc.RpcService.runUntilServerShutdown (RpcService.java:251) at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run (JavaRuntime.java:396) at java.lang.Thread.run(Unknown Source) Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory not found - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:178) at javax.xml.bind.ContextFinder.find(ContextFinder.java:324) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at com.amazonaws.queue.AmazonSQSClient.clinit(AmazonSQSClient.java: 106) ... 45 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory at com.google.appengine.runtime.Request.process-90ff316e1afcecd2 (Request.java) at java.lang.ClassLoader.loadClass(Unknown Source) at
[appengine-java] Re: javax.jdo.JDOObjectNotFoundException: Could not retrieve entity of kind Transactions with key Transactions(Transactions(67))
java.lang.NullPointerException at ma.CategoriesServlet.doPost (CategoriesServlet.java:61) So you have an NPE in your code. Which log are you referring to? Can you point me to where it would be on my computer? The log for GAE/J of course. No idea where you've configured it to go to. Look at the GAE/J docs. -- 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] Persist Hashmap and PersistenceManager question
I followed the following thread (http://groups.google.com/group/google- appengine-java/browse_thread/thread/fb12ab60c68bf664/400cf3c83be90ce9? lnk=gstq=persist+hashmap) to successfully persist my hashmap. I had a hard time to get it working because of the following issue: If I use the following method to retrieve my object: @Override public T get(ClassT c, K id) { //PersistenceManager pm = getPersistenceManager(); PersistenceManager pm = PMF.get().getPersistenceManager(); try { T result = pm.detachCopy(pm.getObjectById(c, id)); return result; } catch (JDOObjectNotFoundException e) { return null; } finally { releasePersistenceManager(pm); } } everything works fine. If I omit the detachcopy(), I can retrieve the object but the hashmap is always null. @Override public T get(ClassT c, K id) { //PersistenceManager pm = getPersistenceManager(); PersistenceManager pm = PMF.get().getPersistenceManager(); try { T result = pm.getObjectById(c, id); return result; } catch (JDOObjectNotFoundException e) { return null; } finally { releasePersistenceManager(pm); } } For instance in the class below, once the StateCore has been saved, I could retrieve the ID but the users hashmap would be null wiithout the detachcopy(). @PersistenceCapable(identityType = IdentityType.APPLICATION) public class StateCore implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent(serialized = true) private HashMapString, CustomUser users; public Long getId() { return key.getId(); } Could someone kindly explain why it's behaving that way? Thanks in advance -- 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] Sticky sessions -- keeping a user on a single JVM
Stephan, No, there is no way to stick sessions to application instances. While you can't associate all the data in a single Memcache key, you can break up the data, using a Memcache value as an index for the rest of the data. On Wed, Dec 2, 2009 at 2:48 PM, stephan smor...@gmail.com wrote: I have a GAE application that has some complex reporting requirements. Since there is currently no support for aggregate queries, my approach is to instead build up a collection of the items to query in memory, and then use JOSQL to perform the queries I need. For the most part this has worked out OK. Part of the complication, however, is that if I have a lot of items I need to collect from the datastore (tens or hundred of thousands of items), I need to do this in chunks, in order to stay under the 30 second request limit. I do this by issuing successive AJAX requests to initialize my data. The problem is that occasionally the app will hit some threshold that causes the GAE infrastructure to spin up a new JVM. In this case, all the items I've collected in memory in the first JVM will no longer be there, and I have to start over. For situations where it may take 10+ minutes to build up the collection of items, this becomes problematic. I'm wondering if there could be some way (via some special http header or otherwise) to ensure that all requests from a given user/session will stay stuck to the same JVM. Any other possible solutions I could consider? (Memcache, BTW, is not an option, as the amount of data I'm building up in memory is more than the 1MB maximum for memcache entries.) thanks, ...stephan -- 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=en. -- 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.
Re: [appengine-java] JAI working in JAE?
Have you tried it yet? Let us know how it works out and we can add an entry to the Will it play list: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine On Wed, Dec 2, 2009 at 10:07 PM, moissinac jcmoissi...@gmail.com wrote: The GAE-Java image service is very fast, but has a lot of limits. Can we use JAI to process images? -- 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=en. -- 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.
Re: [appengine-java] Re: JAXB doesn't work for me in 1.2.8
Thanks for the quick reports folks. We've identified this as a fault which occurred during our push to production. We're working on this and will post back on this thread when it's resolved. On Fri, Dec 4, 2009 at 2:26 PM, javaprime javapr...@gmail.com wrote: Error for /cron/url_update_delta java.lang.ExceptionInInitializerError at com.amazonaws.queue.AmazonSQSClient.clinit(AmazonSQSClient.java: 108) at compareodds.webapp.server.util.SQSQueue.buildQueue(SQSQueue.java: 65) at compareodds.webapp.server.util.SQSQueue.buildURLQueue (SQSQueue.java:57) at compareodds.webapp.server.request.URLUpdate.init(URLUpdate.java: 33) at compareodds.webapp.server.request.handlers.cron_url_update_delta.doGet (cron_url_update_delta.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable (RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest (JettyServletEngineAdapter.java:139) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java:239) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5233) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest (BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 363) at com.google.net.rpc.impl.Server$2.run(Server.java:838) at com.google.tracing.LocalTraceSpanRunnable.run (LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan (LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:793) at com.google.net.rpc.impl.Server.processRequest(Server.java:368) at com.google.net.rpc.impl.ServerConnection.messageReceived (ServerConnection.java:448) at com.google.net.rpc.impl.RpcConnection.parseMessages (RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived (RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 466) at com.google.net.async.EventDispatcher.processNetworkEvents (EventDispatcher.java:759) at com.google.net.async.EventDispatcher.internalLoop (EventDispatcher.java:205) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 101) at com.google.net.rpc.RpcService.runUntilServerShutdown (RpcService.java:251) at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run (JavaRuntime.java:396) at java.lang.Thread.run(Unknown Source) Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory not found - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:178) at javax.xml.bind.ContextFinder.find(ContextFinder.java:324) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at
[appengine-java] Regarding Secure Data Access for the users of my service
We are creating an Active Directory Kind of an application on App Engine. What I want to know is there a way to store data securely so that I can sell this application as a service to other domains. I should not be able to acess data produced by users of other domains. I noticed if we use JDO, I can view the information. Is there a work around so that data can be viewed only by authorized people and not even the creators of the application? or do we have to implement our own encryption and decryption authorization processes. -- 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: DWR SUPPORT
Hi, Some said GAE did not support DWR while I had read about Will it play in App Engine.It showed that Direct Web Remoting (DWR) Version(s): 2.0.5, 3.0 RC1 Status: COMPATIBLE DWR uses threads for some things like reverse ajax. For sure, that will not work in appengine at least the way 3.0RC1 is written. It also writes files that don't work on appengine. Long polling isn't supported either. I've seen people on the DWR list try to work around that, but I've never seen a clean solution. Maybe there is one though. Here are relevant posts from the DWR list http://old.nabble.com/forum/Search.jtp?forum=13934local=yquery=dwr+appengine Anyway, your undifined error is most likely: 1) the path to the DWR script is wrong 2) the path is correct but when your javascript on the client loads, it send a call to the server to configure DWR. But by the time the call returns, your javascript on the client has already moved on and thrown the undefined error because DWR hadn't returned in time. I saw this with reverse ajax. Shawn -- 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: IOException on uploading app
Same issue. Just getting started today with Eclipse 3.5 and Appengine 1.2.8 and JDK 1.6.0_16. Forward slashes are a problem on Windows, no? com.google.apphosting.utils.config.AppEngineConfigException: Received IOException parsing the input stream for /work/workspace/gac4- reference/war\WEB-INF/web.xml at com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode (AbstractConfigXmlReader.java:210) at com.google.apphosting.utils.config.AbstractConfigXmlReader.parse (AbstractConfigXmlReader.java:228) at com.google.apphosting.utils.config.WebXmlReader.processXml (WebXmlReader.java:141) at com.google.apphosting.utils.config.WebXmlReader.processXml (WebXmlReader.java:22) at com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml (AbstractConfigXmlReader.java:111) at com.google.apphosting.utils.config.WebXmlReader.readWebXml (WebXmlReader.java:72) at com.google.appengine.tools.admin.Application.init (Application.java:91) at com.google.appengine.tools.admin.Application.readApplication (Application.java:120) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:107) 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.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java: 195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:525) at java.net.Socket.connect(Socket.java:475) Gary On Nov 19, 5:52 am, david jones david.jone...@gmail.com wrote: heya, i'm quite (well, very) new to the google app engine and am just trying to upload a very basic start to the project i'm working on. however, when i try to upload (either using the plugin for eclipse or through appcfg.cmd) i get the error: An internal error occurred during: Deploying ConferenceCloud to Google. ReceivedIOExceptionparsing the input stream for C:/Users/dave/ workspace/ConferenceCloud/war\WEB-INF/web.xml i havent edited theweb.xmlfile, leaving it as it was when i created the project in eclipse has anyone encountered this before or knows how to solve it? thanks, david -- 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] 1.2.8 SDK Prerelease - help us verify!
We're using the UrlFetchService to invoke the task URL, and the local implementation of UrlFetchService times out after 5 seconds. For task execution the timeout should instead be 30 seconds. I'll get a fix together, but in practice the timeout shouldn't actually impact the completion of the task. UrlFetchService will timeout but the task should still finish running. Thanks, Max On Fri, Dec 4, 2009 at 7:06 AM, Vince Bonfanti vbonfa...@gmail.com wrote: Hi Max, Yes, it works. Thanks very much. Vince P.S. While step-debugging a task, I noticed that they seem to time-out very quickly--within about 5 seconds. Is this intentional? Here's a partial stacktrace: Dec 4, 2009 3:03:58 PM com.google.appengine.api.labs.taskqueue.dev.DevQueue runTask SEVERE: Exception executing task 24b5a6e4-c327-4bc6-bc4f-51f838f3d1a5 on queue write-behind-task com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 5: http method GET against URL http://127.0.0.1:8080/_ah/queue/write-behind-task?watchdog=839445f1-2c77-4c2c-bf32-81b88d5e092etimed out. at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:214) at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:53) at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:46) at com.google.appengine.api.labs.taskqueue.dev.DevQueue.runTask(DevQueue.java:221) at com.google.appengine.api.labs.taskqueue.dev.LocalTaskQueue.runTask(LocalTaskQueue.java:313) On Thu, Dec 3, 2009 at 7:01 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Vince, We added a last minute fix for this in the SDK that just went out. Could you please try your code with the official SDK download? Thanks, Max On Thu, Dec 3, 2009 at 12:15 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Sure, sorry for the trouble, and thanks for trying out the prerelease! Max On Thu, Dec 3, 2009 at 12:12 PM, Vince Bonfanti vbonfa...@gmail.comwrote: That fixed it. Thanks. Vince On Thu, Dec 3, 2009 at 2:24 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Vince, As a workaround, try setting the missing environment attribute explicitly before you add the task to the queue: ApiProxy.getCurrentEnvironment().getAttributes().put(com.google.appengine.server_url_key, http://localhost:8080;); This should only be necessary for tasks that are added when there is no live request and it should have no impact in prod. Sorry for the trouble, Max On Thu, Dec 3, 2009 at 10:20 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Hi Vince, That sounds like a bug in our code that was a side effect of the automatic task execution that now happens in the dev environment. Let me see if I can come up with a workaround for you. Max On Thu, Dec 3, 2009 at 10:06 AM, Vince Bonfanti vbonfa...@gmail.comwrote: I just started testing with the 1.2.8 prerelease, and I'm getting the following exception from Queue.add() in code that works in 1.2.6: java.lang.IllegalStateException: Current enviornment must have the server url available via the com.google.appengine.server_url_key attribute. This only happens when Queue.add() is invoked from the servlet init() method or from a static initializer; if Queue.add() is invoked from a regular request thread, then it works properly. Vince On Tue, Nov 24, 2009 at 9:00 PM, Ikai L (Google) ika...@google.comwrote: Hello App Engine Developers, As part of our ongoing efforts to improve release quality and transparency, we will start prereleasing SDKs for early testing. We hope this gives developers a chance to participate in our release process by trying out new changes and sending feedback. As of this morning, the prerelease SDK for our next release, 1.2.8, is available in the familiar download location (note that the filename ends in 'prerelease.zip'): http://code.google.com/p/googleappengine/downloads/list If you're interested, please download and give it a try locally with your favorite App Engine code. Please note that, as a prerelease, this SDK is not yet supported and still subject to change. Thus, please don't take critical dependencies or make substantial changes to production apps based on this SDK. Importantly, this prerelease is purely for the SDK and is intended for local testing and development in dev_appserver. The server-side of App Engine (our production environment) is not at 1.2.8, so deploying with this SDK is not yet supported. In the future, we might enable a complete SDK and server test environment for prereleases. A few notes on 1.2.8 in particular - this release is primarily for servicing and updates in preparation for some exciting feature launches we have in the pipeline. The current release notes (still subject to
Re: [appengine-java] 1.2.8 SDK Prerelease - help us verify!
That's correct--the task still completes successfully even after the timeout exception shows up in the console window. Vince On Fri, Dec 4, 2009 at 5:11 PM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: We're using the UrlFetchService to invoke the task URL, and the local implementation of UrlFetchService times out after 5 seconds. For task execution the timeout should instead be 30 seconds. I'll get a fix together, but in practice the timeout shouldn't actually impact the completion of the task. UrlFetchService will timeout but the task should still finish running. Thanks, Max On Fri, Dec 4, 2009 at 7:06 AM, Vince Bonfanti vbonfa...@gmail.comwrote: Hi Max, Yes, it works. Thanks very much. Vince P.S. While step-debugging a task, I noticed that they seem to time-out very quickly--within about 5 seconds. Is this intentional? Here's a partial stacktrace: Dec 4, 2009 3:03:58 PM com.google.appengine.api.labs.taskqueue.dev.DevQueue runTask SEVERE: Exception executing task 24b5a6e4-c327-4bc6-bc4f-51f838f3d1a5 on queue write-behind-task com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 5: http method GET against URL http://127.0.0.1:8080/_ah/queue/write-behind-task?watchdog=839445f1-2c77-4c2c-bf32-81b88d5e092etimed out. at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:214) at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:53) at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:46) at com.google.appengine.api.labs.taskqueue.dev.DevQueue.runTask(DevQueue.java:221) at com.google.appengine.api.labs.taskqueue.dev.LocalTaskQueue.runTask(LocalTaskQueue.java:313) On Thu, Dec 3, 2009 at 7:01 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Vince, We added a last minute fix for this in the SDK that just went out. Could you please try your code with the official SDK download? Thanks, Max On Thu, Dec 3, 2009 at 12:15 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Sure, sorry for the trouble, and thanks for trying out the prerelease! Max On Thu, Dec 3, 2009 at 12:12 PM, Vince Bonfanti vbonfa...@gmail.comwrote: That fixed it. Thanks. Vince On Thu, Dec 3, 2009 at 2:24 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Vince, As a workaround, try setting the missing environment attribute explicitly before you add the task to the queue: ApiProxy.getCurrentEnvironment().getAttributes().put(com.google.appengine.server_url_key, http://localhost:8080;); This should only be necessary for tasks that are added when there is no live request and it should have no impact in prod. Sorry for the trouble, Max On Thu, Dec 3, 2009 at 10:20 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Hi Vince, That sounds like a bug in our code that was a side effect of the automatic task execution that now happens in the dev environment. Let me see if I can come up with a workaround for you. Max On Thu, Dec 3, 2009 at 10:06 AM, Vince Bonfanti vbonfa...@gmail.com wrote: I just started testing with the 1.2.8 prerelease, and I'm getting the following exception from Queue.add() in code that works in 1.2.6: java.lang.IllegalStateException: Current enviornment must have the server url available via the com.google.appengine.server_url_key attribute. This only happens when Queue.add() is invoked from the servlet init() method or from a static initializer; if Queue.add() is invoked from a regular request thread, then it works properly. Vince -- 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: JAXB doesn't work for me in 1.2.8
It's probably worth mentioning that, as a temporary workaround, you should be able to bundle your own JAXB implementation with your webapp. For example, the reference version can be obtained from https://jaxb.dev.java.net/. On Fri, Dec 4, 2009 at 4:31 PM, Toby Reyelts to...@google.com wrote: Thanks for the quick reports folks. We've identified this as a fault which occurred during our push to production. We're working on this and will post back on this thread when it's resolved. On Fri, Dec 4, 2009 at 2:26 PM, javaprime javapr...@gmail.com wrote: Error for /cron/url_update_delta java.lang.ExceptionInInitializerError at com.amazonaws.queue.AmazonSQSClient.clinit(AmazonSQSClient.java: 108) at compareodds.webapp.server.util.SQSQueue.buildQueue(SQSQueue.java: 65) at compareodds.webapp.server.util.SQSQueue.buildURLQueue (SQSQueue.java:57) at compareodds.webapp.server.request.URLUpdate.init(URLUpdate.java: 33) at compareodds.webapp.server.request.handlers.cron_url_update_delta.doGet (cron_url_update_delta.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable (RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest (JettyServletEngineAdapter.java:139) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java:239) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5233) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest (BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 363) at com.google.net.rpc.impl.Server$2.run(Server.java:838) at com.google.tracing.LocalTraceSpanRunnable.run (LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan (LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:793) at com.google.net.rpc.impl.Server.processRequest(Server.java:368) at com.google.net.rpc.impl.ServerConnection.messageReceived (ServerConnection.java:448) at com.google.net.rpc.impl.RpcConnection.parseMessages (RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived (RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 466) at com.google.net.async.EventDispatcher.processNetworkEvents (EventDispatcher.java:759) at com.google.net.async.EventDispatcher.internalLoop (EventDispatcher.java:205) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 101) at com.google.net.rpc.RpcService.runUntilServerShutdown (RpcService.java:251) at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run (JavaRuntime.java:396) at java.lang.Thread.run(Unknown Source) Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory not found - with linked exception: [java.lang.ClassNotFoundException:
[appengine-java] Re: Unexpected exit when debugging
I'm seeing this too when using the RPC on MacOSX. It just started after a software update in Eclipse. Trying to run the basic default GWT app results in the app crashing with this error message: Invalid memory access of location 0010 eip=98d7077b On Nov 30, 10:31 am, marksea mark...@gmail.com wrote: I get this sometimes when exiting the hosted browser when running (not debugging) as well. Everything is a fresh install, per the tutorial. I've saw an old discussion in the GWT group of a similar error, but it was with the 1.4 Java runtime, and i'm using 1.5.0, the Mac default. On Nov 30, 1:14 am, marksea mark...@gmail.com wrote: I'm working through the GWT/GAE tutorial with Eclipse and OS X. Everything works great until I try to set some breakpoints to debug (part of the tutorial). If I do that I get The application GWT quit unexpectedly. The problem may have been caused by thelibgwt-ll- jnilib plug-in. Has anyone else seen this message under these circumstances? -- 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: Processing incoming email
Hi.Peter, As one example. When you use InputStream inputStream = message.getInputStream(); // ByteArrayDataSource inboundDataSource = new ByteArrayDataSource(inputStream, message.getContentType()); Multipart inboundMultipart = new MimeMultipart(inboundDataSource); Please switch the processing of each type by using MimeMessage#isMimeType. (In the offered source it is variable [message]. ) MimeMessage#isMimeType(multipart/*) == true Convert into MimeMultipart. MimeMessage#isMimeType(text/plain) == true MimeMessage#isMimeType(text/html) == true Need not convert into MimeMultipart. Of course, Jeremy Blythe have provided us information that [contentType.indexOf ( multipart)] also Behave the same. Thanks Jeremy Blythe. Ikai. Thank you variously for useful information as for processing concerning the attached file to datastore ,etc. Though it noticed now. MimeMessage#isMimeType(multipart/*) == true The return value of MimeMessage#getContent() seems to have changed into Multipart. (SDK-1.2.8) (The real thing environment has been updated recently. ) http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes When you use [message.getContent() ] Such a method might be able to be used. Object content = message.getContent(); if ( content instanceof Multipart){ MimeMultipart mmp = (MimeMultipart)content; } else{ //plain text/html part .etc } Though there might be an insufficient condition. Please try. thanks. On 12月5日, 午前3:24, Peter Ondruska peter.ondru...@gmail.com wrote: OK. now I am really puzzled. message.getContent() is very much dependent on how message is sent, e.g. email from Gmail: message.getContent().getClass().getName() is javax.mail.internet.MimeMultipart email from Hotmail and Yahoo mail: message.getContent().getClass().getName() throws: Uncaught exception from servlet java.io.IOException: Truncated quoted printable data at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decodeNonspaceChar (QuotedPrintableEncoder.java:597) at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decode (QuotedPrintableEncoder.java:584) at org.apache.geronimo.mail.util.QuotedPrintableDecoderStream.read (QuotedPrintableDecoderStream.java:80) at org.apache.geronimo.mail.handlers.TextHandler.getContent (TextHandler.java:107) at javax.activation.DataSourceDataContentHandler.getContent(Unknown Source) at javax.activation.DataHandler.getContent(Unknown Source) at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:927) On Dec 4, 6:38 pm, Peter Ondruska peter.ondru...@gmail.com wrote: Ikai, my code looks same as yours to me: package eu.kaibo.server; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import java.util.logging.Level; import java.util.logging.Logger; import javax.mail.Address; import javax.mail.MessagingException; import javax.mail.Multipart; import javax.mail.Part; import javax.mail.Session; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; import javax.mail.util.ByteArrayDataSource; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.appengine.api.labs.taskqueue.QueueFactory; import com.google.appengine.api.labs.taskqueue.TaskOptions; public class MailHandler extends HttpServlet { private static final long serialVersionUID = 895612806305910032L; private final Logger logger = Logger.getLogger(getClass().getName()); @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Session session = Session.getDefaultInstance(new Properties(), null); try { MimeMessage message = new MimeMessage(session, request.getInputStream()); StringBuffer sb = new StringBuffer(); sb.append(From: ); Address[] senders = message.getFrom(); for (int i = 0; i senders.length; i++) sb.append(senders[i].toString()).append(; ); sb.append(\n); sb.append(To: ); Address[] receivers = message.getAllRecipients(); for (int i = 0; i receivers.length; i++) sb.append(receivers[i].toString()).append(; ); sb.append(\n); line 55:InputStream is = (InputStream)
[appengine-java] Re: IOException on uploading app
Resolved. The issue was the Connection refused. I had to update the proxy settings in Eclipse. On Dec 4, 4:49 pm, GaryC garyacr...@gmail.com wrote: Same issue. Just getting started today with Eclipse 3.5 and Appengine 1.2.8 and JDK 1.6.0_16. Forward slashes are a problem on Windows, no? com.google.apphosting.utils.config.AppEngineConfigException: Received IOException parsing the input stream for /work/workspace/gac4- reference/war\WEB-INF/web.xml at com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode (AbstractConfigXmlReader.java:210) at com.google.apphosting.utils.config.AbstractConfigXmlReader.parse (AbstractConfigXmlReader.java:228) at com.google.apphosting.utils.config.WebXmlReader.processXml (WebXmlReader.java:141) at com.google.apphosting.utils.config.WebXmlReader.processXml (WebXmlReader.java:22) at com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml (AbstractConfigXmlReader.java:111) at com.google.apphosting.utils.config.WebXmlReader.readWebXml (WebXmlReader.java:72) at com.google.appengine.tools.admin.Application.init (Application.java:91) at com.google.appengine.tools.admin.Application.readApplication (Application.java:120) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:107) 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.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java: 195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:525) at java.net.Socket.connect(Socket.java:475) Gary On Nov 19, 5:52 am, david jones david.jone...@gmail.com wrote: heya, i'm quite (well, very) new to the google app engine and am just trying to upload a very basic start to the project i'm working on. however, when i try to upload (either using the plugin for eclipse or through appcfg.cmd) i get the error: An internal error occurred during: Deploying ConferenceCloud to Google. ReceivedIOExceptionparsing the input stream for C:/Users/dave/ workspace/ConferenceCloud/war\WEB-INF/web.xml i havent edited theweb.xmlfile, leaving it as it was when i created the project in eclipse has anyone encountered this before or knows how to solve it? thanks, david -- 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] Failed to startup after ver 1.2.8 update
Application does not start up after update ver 1.2.8 Error Message is following Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : C:\eclipse\plugins \com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine- java-sdk-1.2.6\lib\agent\appengine-agent.jar 1.2.8 appengine-agent.jar is is exist following directory. C:\eclipse\plugins \com.google.appengine.eclipse.sdkbundle_1.2.8.v200912040616\appengine- java-sdk-1.2.8\lib\agent\appengine-agent.jar So problem look like that Eclipse startup program does not recognize 1.2.6 to 1.2.8 update and searching sdk 1.2.6's appengine-agent.jar at old directory. I Changed Project=Propaty=Libralys to App Engine sdk[App Engine -1.2.8] Are there remaining portion to change setting? How should I teach Eclipse of this update? -- 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] Class XXX has multiple relationship fields of type YYYY
SDK 1.2.8 contains a new check that detects if one of your JDO or JPA model objects has two relationship fields of the same type. For example: class A { ListB bList; ListB anotherBList; } Unfortunately I was a little too aggressive with this check, so the following also run afoul of the check: abstract class B {} class C extends B {} class D extends B {} class A { ListC cList: ListD dList; } If you get an exception that says Class XXX has multiple relationship fields of type . This is not yet supported. and your class hierarchy resembles the one above, you can disable this check by with the following config property: property name=datanucleus.appengine.multipleRelationsOfSameTypeAreErrors value=true/ We'll get this fixed shortly. Sorry for the trouble, Max -- 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: Failed to startup after ver 1.2.8 update
I updated ver1.2.8 at Dec-5th by seeing update request on Eclipse screen. But I was very surprised when I am seeing 1.2.8 is pre-release SDK and have no production environment by this post(= hhttp://groups.google.com/group/google-appengine-java/browse_thread/thread/fe334c9e461026fa/b944b708a8d8de5b?lnk=gstq=1.2.8#b944b708a8d8de5b) But this article was posted at Nov-25th and Display on the eclipse update recommendation and the Release Notes of Version 1.2.8 - December 3, 2009 (=http://code.google.com/p/googleappengine/wiki/ SdkReleaseNotes) does not say anything about this. And So is it become official version at Dec-5th? If this is not official version Could you teach me when Google will make this version official and post old version(1.2.7) as a latest SDK. I must determine either wait official 1.2.8 or go back to 1.2.7 version to continue development. -- 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: Failed to startup after ver 1.2.8 update
And So is it become official version at Dec-5th? I think so. Well Dec 4th. http://groups.google.com/group/google-appengine-java/browse_thread/thread/18e49b1559752fae/fdf7c0bc29d6e74d?lnk=gstq=App+Engine+SDK+1.2.8+released+including+new+Admin+Console+features#fdf7c0bc29d6e74d Shawn -- 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] Indexing Problem(always return incorrect number of rows)
Hi, After indexing my all queries returning fewer rows. I have this class public class AudioMedia{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String title; . @Persistent private String audioTitleExternalId; } initially i was retruning a list of AudioMedia where audioTitleExternalId='SomeId' and order by id,and this query was returning correct result But then i thought its better to sort it out by title. SO i created following index datastore-index kind=AudioMedia ancestor=false source=auto property name=audioTitleExternalId direction=asc/ property name=title direction=asc/ /datastore-index and now i am returning a list of AudioMedia where audioTitleExternalId='SomeId' and order by title The only change in code i did was replacing id with title and creating indexes. Then i waited for half an hour and indexes were created for 5+ rows. But now for any audioTitleExternalId i am getting incorrect number of AudioMedia rows . for example SELECT * FROM AudioMedia where audioTitleExternalId='7475' when i run this query in Data Viewer, it returns me 6 rows with title and audioTitleExternalId for each row as not null. But through the java code it returns me only 4 rows. Somehow indexing has made my data lost somewhere or unreachable. Can you please advise what is the problem here. *Fields audioTitleExternalId and title both are not null in all entities.* Thanks, Ravi. -- 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.
[google-appengine] Re: Concern about deploying real applications on Google AppEng
Thank you -- it is the last way, still it is feasible. Would Google establish numbers of data centers around the world, just like what Amazon is doing? On Dec 4, 7:47 am, Jake scher...@gmail.com wrote: One simple but less-than-ideal solution is to setup a light weight reverse http proxy on a server that has a non-blacklisted ip, but has no restrictions when connecting to GAE. This would definately work, but there are two major disadvantages: 1. You pay for the 3x the bandwidth. Going into the reverse proxy, going out, and again into GAE. 2. Additional latency/less scalability. On Dec 2, 9:37 pm, DBPZ dbpzd...@gmail.com wrote: Hi guys, -- 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] accessing date fields set to auto now and django forms
Hi, The gae doc says 'DateTime fields with auto_now or auto_now_add set to true are automatically not displayed' in django forms. Is there some way I can access these date values through the form to display them even though they are readonly. I am using code such as this: form = datamodel.MyForm(instance=myinstance) path = os.path.join(os.path.dirname(__file__), 'html/ formMyForm.html') self.response.out.write(template.render(path, {'form':form})) 'myinstance' contains a field: dob = db.DateTimeProperty(auto_now_add = True) Is there a way to get 'dob' into my 'form' to render in the html with {{ form.dob }} ? I would also like it to be subject to my own date widget code for rendering as any date input field in the application. Thanks Alex -- 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] Can I speed up indexing with good table design?
Hi, I have been reading How Index Building Works by Ryan Barrett, published on November 24, 2008 at http://code.google.com/appengine/articles/index_building.html The article suggests the performance of indexing depends on the performance/ability of a worker to process the index on a shard of data in a given time (lease): if the lease expires before the worker is done, it gives up, discards the partially completed work, and the shard becomes available for other workers to retry. I have a table that I expect to contain millions of rows. I plan to update around 8000 rows per night working at a rate of 10 updates per second (I know the limit is currently 5 - let's leave this out of this discussion for now). My table has many indexes because there are many ways of filtering the data. I'd like these indexes to be updated as quickly as possible. Is there anything I can do in the design of my table to enable Google's Worker/Shard model to index most efficiently, and thus speed up indexing? For example, if my table is: * Company Name (StringProperty) * Company Address (StringProperty) * Product Name (StringProperty) * Product Short Description (StringProperty) * Product Long Description (BlobProperty) * Product Image (BlobProperty) * Product Price (IntegerProperty) * Product Location (GeoPtProperty) * Product Feature Type 1 (StringProperty) * Product Feature Type 2 (StringProperty) * Product Feature Type 3 (StringProperty) * Product Feature Type 4 (StringProperty) * Product Feature Type 5 (StringProperty) * Product Feature Type 6 (StringProperty) * Product Feature Type 7 (StringProperty) * Product Feature Type 8 (StringProperty) * Product Feature Type 9 (StringProperty) * Product Feature Type 10 (StringProperty) and my indexes are different ascending and descending combinations of two or more of the fields Price, Location and the Feature Type n fields, would the index rebuild be more efficient if I moved the non- indexed fields into a separate table which links back to the main many- indexed table using a ReferenceProperty? Regards, jpmorganuk -- 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] Can I speed up indexing with good table design?
Hi, On Fri, Dec 4, 2009 at 11:53 AM, jpmorganuk market...@farrellheyworth.co.uk wrote: Hi, I have been reading How Index Building Works by Ryan Barrett, published on November 24, 2008 at http://code.google.com/appengine/articles/index_building.html The article suggests the performance of indexing depends on the performance/ability of a worker to process the index on a shard of data in a given time (lease): if the lease expires before the worker is done, it gives up, discards the partially completed work, and the shard becomes available for other workers to retry. I have a table that I expect to contain millions of rows. I plan to update around 8000 rows per night working at a rate of 10 updates per second (I know the limit is currently 5 - let's leave this out of this discussion for now). My table has many indexes because there are many ways of filtering the data. I'd like these indexes to be updated as quickly as possible. Is there anything I can do in the design of my table to enable Google's Worker/Shard model to index most efficiently, and thus speed up indexing? The article describes the process of building indexes when they're first created - this doesn't apply to updates to already built indexes. Updates are handled synchronously with the row being updated. For example, if my table is: * Company Name (StringProperty) * Company Address (StringProperty) * Product Name (StringProperty) * Product Short Description (StringProperty) * Product Long Description (BlobProperty) * Product Image (BlobProperty) * Product Price (IntegerProperty) * Product Location (GeoPtProperty) * Product Feature Type 1 (StringProperty) * Product Feature Type 2 (StringProperty) * Product Feature Type 3 (StringProperty) * Product Feature Type 4 (StringProperty) * Product Feature Type 5 (StringProperty) * Product Feature Type 6 (StringProperty) * Product Feature Type 7 (StringProperty) * Product Feature Type 8 (StringProperty) * Product Feature Type 9 (StringProperty) * Product Feature Type 10 (StringProperty) and my indexes are different ascending and descending combinations of two or more of the fields Price, Location and the Feature Type n fields, would the index rebuild be more efficient if I moved the non- indexed fields into a separate table which links back to the main many- indexed table using a ReferenceProperty? The presence of unindexed fields won't affect indexing speed, but it will affect retrieval overhead, so if you don't refer to them in some queries, separating them out is a good idea. For simplicity, you may want to make the 'product feature n' fields a list property. -Nick Johnson Regards, jpmorganuk -- 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=en. -- 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] updating 1 field inmultiple items according to another field in one go
Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created| year_month a string| 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created| year_month a string| 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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] updating 1 field inmultiple items according to another field in one go
You need to create a script that loops through setting the new property then doing a put(). Robert On Dec 4, 2009, at 9:40, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created| year_month a string| 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created| year_month a string| 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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 . -- 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: gql not giving full result set
Ikai, As Dinesh mentioned we had exported and imported data using remote api (using some weird query) to get this working. Unfortunately, batch export/import also did not work. So, some clarity related to this issue would help us avoid surprises in future: - Bulk export/import is also based on the same set of queries, which again does not return correct result. In cases such as these, when query itself fails, is there any other way to get data out? Is this not a single point of failure? Shouldnt the bulk export/import be run from inside the datacenter, directly on the application id/tenant without queries, without time out and 1000 items per query limitations? - Does this happen because of indexing failure during heavy entity writes? If so, are they not atomic? Why does the query return incorrect results, even when indexes are rebuilt from Datastore administration. Are they 2 different things? - As you can see from this thread, there has been no response for 2 weeks, when our application on production went down. Is there any escalation/support planned in future for production systems? At least, an acknowledgement of some form for us to try other alternatives. Although bugs are understandable, this issue in a way, represents one of the inherent risks in the cloud: - data in servers that you do not have control on (to take backup or restore. Not really the usual show me my data stuff) - openness that hasnt yet reached maturity (atleast technically not working to resort to an alternative) So pls ensure that the fall back options are also reliable. thanks, mani On Dec 3, 2:44 pm, Dinesh Varadharajan dinesh.varadhara...@orangescape.com wrote: Ikai, Thanks for checking that out. We already exported and imported close to 1 million records to make it work again. we left a sample set of data for google to reproduce the issue. However we are concerned about this bug being fixed and if possible when it was fixed, since this had been happening quite frequently last month. On Dec 3, 12:00 am, Ikai L (Google) ika...@google.com wrote: Dinesh, I see the inconsistency. How long have you been writing to this dataset? My suspicion is that the indexes may have been updated incorrectly in a previous release due to a bug that we have since addressed. Unfortunately, the bug fix maynothave retroactively addressed the incorrectly updated indexes. How large is the dataset? For small datasets, bulk exporting and importing will address the issue, but for large datasets, we'll have to look to an alternative solution. On Tue, Dec 1, 2009 at 3:40 AM, Dinesh Varadharajan dinesh.varadhara...@orangescape.com wrote: Ikai, Unfortunately we don't have dummy data to showcase this. I have a reproducible case in production. The app id is os-dev.appspot.com. if you execute the query SELECT * FROM PrimaryData where ApplicationId = 'Application_1652c875_be0f_11de_b4a5_a3c424aa5af6' and SheetMetadataId = 'Sheet001' and Deleted=False it returns 8 records. and if you execute SELECT * FROM PrimaryData where ApplicationId = 'Application_1652c875_be0f_11de_b4a5_a3c424aa5af6' and SheetMetadataId = 'Sheet001' it should at least return 8 records(I am removing a condition). but it returns only 4 records. Please let me know if you want to be added as developer to os-dev to be able to access the datastore. Dinesh On Dec 1, 12:27 am, Ikai L (Google) ika...@google.com wrote: Prashant, do you have sample data you can provide? It's even better if it isn't real data. On Sun, Nov 29, 2009 at 3:19 AM, Prashant antsh...@gmail.com wrote: what about this - I had a data store entity with known id, and JDOQL simply failed to retrieve it by id throwing JDOObjectNotFoundException. I think there is some major issue with datastore/indexes. -- 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%2Bunsubscrib e...@googlegroups.com google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252Bunsub scr...@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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai
Re: [google-appengine] @Lob
It works thank you 2009/12/3 Ikai L (Google) ika...@google.com Have you looked into using com.google.appengine.api.datastore.Blob? http://code.google.com/appengine/docs/java/datastore/dataclasses.html http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Blob.html On Thu, Dec 3, 2009 at 9:46 AM, HKHAIRANE hichamkhair...@gmail.comwrote: Hey everyBody, i try to persist my video 1MB with @Lob , this doesn't persist my field in my Class VideoSequence otherwise all other fiels are saved in database, the code is: @Entity public class VideoSequence implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Key id; @Version long version; int sequenceNumber; @Lob byte[] videoBlock; public int getSequenceNumber() { return sequenceNumber; } public void setSequenceNumber(int sequenceNumber) { this.sequenceNumber = sequenceNumber; } public Key getId() { return id; } public static VideoSequence newVideoSequence() { VideoSequence videoSequence = new VideoSequence(); return videoSequence; } public byte[] getVideoBlock() { return videoBlock; } public void setVideoBlock(byte[] videoBlock) { this.videoBlock = videoBlock; } any ideas 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.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.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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] updating 1 field inmultiple items according to another field in one go
What do you mean by double filter? What exactly is the select/query you want to run? What does your Model look like? From your description of the issue, it's hard to tell what you mean by double filter. Thanks for clarification. On Fri, Dec 4, 2009 at 9:40 AM, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created| year_month a string| 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created| year_month a string| 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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=en. -- 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: updating 1 field inmultiple items according to another field in one go
I would like to do something like SELECT * FROM MyTable WHERE input_date = start_date AND input_date = end_date but I get Inequality Filters Are Allowed On One Property Only See http://appengine-cookbook.appspot.com/recipe/how-to-query-by-date-range/ Well, guess i'll have to do the script then On Dec 4, 3:43 pm, Eli Jones eli.jo...@gmail.com wrote: What do you mean by double filter? What exactly is the select/query you want to run? What does your Model look like? From your description of the issue, it's hard to tell what you mean by double filter. Thanks for clarification. On Fri, Dec 4, 2009 at 9:40 AM, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created | year_month a string | 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created | year_month a string | 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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: updating 1 field inmultiple items according to another field in one go
Hmm, maybe I'm wrong and a query by date range is possible. Just saw this http://stackoverflow.com/questions/1513526/app-engine-gql-querying-a-date-range Post.gql('WHERE created_at DATE(:1, :2, :3) AND created_at DATE(: 1, :2, :4) and slug = :5', int(bit[0]), int(bit[1]), int(bit[2]), int(bit[2]) + 1, bit[3]) But it might be a bit slow. Right now I have about 8 rows and i'll have many more. So performance wise, is it worth setting up the year_month field and query by that? What do you think? On Dec 4, 3:52 pm, sofia sofiacard...@gmail.com wrote: I would like to do something like SELECT * FROM MyTable WHERE input_date = start_date AND input_date = end_date but I get Inequality Filters Are Allowed On One Property Only Seehttp://appengine-cookbook.appspot.com/recipe/how-to-query-by-date-range/ Well, guess i'll have to do the script then On Dec 4, 3:43 pm, Eli Jones eli.jo...@gmail.com wrote: What do you mean by double filter? What exactly is the select/query you want to run? What does your Model look like? From your description of the issue, it's hard to tell what you mean by double filter. Thanks for clarification. On Fri, Dec 4, 2009 at 9:40 AM, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created | year_month a string | 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created | year_month a string | 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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] Documenting Each App Having its Own Datastore?
I think this is obvious to a lot of us, but I wonder if it's worth explicitly documenting up front in the Java/Python Datastore overviews that each application has its own corresponding datastore? If so, one could add an additional paragraph in each Introducing the Datastore section of http://code.google.com/appengine/docs/java/datastore/overview.html#Introducing_the_Datastore and http://code.google.com/appengine/docs/python/datastore/overview.html#Introducing_the_Datastore like this: Each App Engine application has its own associated datastore. From any given application, you may not reference the datastore (and its entities) associated with a different application.This does allow entities with the same name to exist independently across multiple applications. Hans -- 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: updating 1 field inmultiple items according to another field in one go
If you use the inequality filter you will need to sort by that field first, and you will not be able to use an inequality filter on any other fields. If those issues are not problems, then you should be OK. Just a thought though, if you will always be asking for one month of data you may be better off adding the year+month field. The equality query might be faster. Robert On Fri, Dec 4, 2009 at 10:57 AM, sofia sofiacard...@gmail.com wrote: Hmm, maybe I'm wrong and a query by date range is possible. Just saw this http://stackoverflow.com/questions/1513526/app-engine-gql-querying-a-date-range Post.gql('WHERE created_at DATE(:1, :2, :3) AND created_at DATE(: 1, :2, :4) and slug = :5', int(bit[0]), int(bit[1]), int(bit[2]), int(bit[2]) + 1, bit[3]) But it might be a bit slow. Right now I have about 8 rows and i'll have many more. So performance wise, is it worth setting up the year_month field and query by that? What do you think? On Dec 4, 3:52 pm, sofia sofiacard...@gmail.com wrote: I would like to do something like SELECT * FROM MyTable WHERE input_date = start_date AND input_date = end_date but I get Inequality Filters Are Allowed On One Property Only Seehttp:// appengine-cookbook.appspot.com/recipe/how-to-query-by-date-range/ Well, guess i'll have to do the script then On Dec 4, 3:43 pm, Eli Jones eli.jo...@gmail.com wrote: What do you mean by double filter? What exactly is the select/query you want to run? What does your Model look like? From your description of the issue, it's hard to tell what you mean by double filter. Thanks for clarification. On Fri, Dec 4, 2009 at 9:40 AM, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created| year_month a string| 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created| year_month a string| 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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=en. -- 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] Deployment failing today?
Hi, I am unable to deploy application today. Creating staging directory Scanning for jsp files. Compiling jsp files. Compiling java files. Scanning files on local disk. Initiating update. Cloning 20 static files. Cloning 125 application files. Cloned 100 files. Uploading 0 files. Deploying new version. Will check again in 1 seconds Will check again in 2 seconds Will check again in 4 seconds Will check again in 8 seconds Will check again in 16 seconds Will check again in 32 seconds Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. Deployed app is working, but I am unable to deploy even after 4 minutes deploy-wait. -- 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: Deployment failing today?
Me, too. -- 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: Deployment failing today?
me2 On Dec 4, 9:11 am, GAEfan ken...@gmail.com wrote: Me, too. -- 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: Deployment failing today?
Having the same problem :-( Tried uploading as a new version, doesn't work either. Also - when this fails, the default version of my app seems to get set to Default=No (though it still serves pages)! On Dec 4, 4:59 pm, aw alvinw...@gmail.com wrote: I have the same problem. On Dec 4, 8:55 am, bugaco ice...@gmail.com wrote: Hi, I am unable to deploy application today. Creating staging directory Scanning for jsp files. Compiling jsp files. Compiling java files. Scanning files on local disk. Initiating update. Cloning 20 static files. Cloning 125 application files. Cloned 100 files. Uploading 0 files. Deploying new version. Will check again in 1 seconds Will check again in 2 seconds Will check again in 4 seconds Will check again in 8 seconds Will check again in 16 seconds Will check again in 32 seconds Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. Deployed app is working, but I am unable to deploy even after 4 minutes deploy-wait. -- 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] App version is stuck; can't change default or disable.
My app appears to be stuck at a particular default version. I can change the default, and the console shows it changed (205), but when I go to the site its clearly serving up the old version (175). It was working fine until today; I've deployed dozens of times, and it's all worked. The 205.latest URL works, but the default won't change. I even disabled the application, and the console show it is disabled, but the old version is still being served. (Not a browser cache issue, app is still functional across multiple pages.) That's a little too much uptime. Anyone seen 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=en.
[google-appengine] index creation quota
Hi, I have an billing enabled application that hits the index creation quota (which I think is about 100 from the threads I read). I understand exceeding 100 composite indexes maybe a sign of bad schema design. The main reason for high number of composite indexes is, for some 'model' in the application, they contains about let say 7 fields (which is not a high number), and these 7 fields can freely form different filters with every combinations to answer users queries. Please increase the index creation quota, or it is ok if we can pay as a billable option for the overuse of indexes (i can't find any option for this in the billing setting). Or please advise if there are any alternative ways to implement filtering based on combinations of fields without building the required composite indexes. Our app id is 'dvmmyws' Thanks in advanced and we are really urgently need such relaxation or billable option Regards, Eric Ng -- 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] Unable to update app:Connection reset
Hi, I follow the google's steps to run GuestBook java version on my computer successfully. However, I try to deploy it by eclipse, but it is failed with Unable to update app:Connection reset. Our SDK version is 1.2.6. The log file is shown as following: Can anyone help about it? Thanks. Jordan --- Unable to update: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake (Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source) at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream (Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream (Unknown Source) at com.google.appengine.tools.admin.ServerConnection.connect (ServerConnection.java:333) at com.google.appengine.tools.admin.ServerConnection.getAuthToken (ServerConnection.java:250) at com.google.appengine.tools.admin.ServerConnection.authenticate (ServerConnection.java:218) at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:145) 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.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) 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) --- -- 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] Appengine JDO Relationships Issues
I have a class naming User and this includes 2 address references (billingAddress and shippinAddress) of type Adddress. Im unable to make the one-to-one relation between these classes. My problem is, when I save User, both addresses get saved(which is right). But when I try to getUserById, I get billingAddress and shippingAddress having same data. my code is as follows: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) public class MyUser { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) Long id; @Persistent private String emailId; @Persistent private String password; @Persistent private String firstName; @Persistent private String lastName; @Persistent(dependent=true, column=billingAddress) private Address billingAddress; @Persistent(dependent=true, column=shippingAddress) private Address shippingAddress; @Persistent private Role role; @Persistent private String phoneNumber; -- @PersistenceCapable public class Address { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key = gae.encoded-pk, value = true) private String id; @Persistent private String houseNo; @Persistent private String buildingNo; @Persistent private String streetNo; @Persistent private String line1; @Persistent private String line2; @Persistent private String zipCode; @Persistent private String city; @Persistent private String state; @Persistent private String country; @Persistent private String region; @Persistent private boolean isDefault; -- @Transactional public MyUser checkLogin(String emailId, String password) { MyUser existingUser = null; try { pm = PMF.get().getPersistenceManager(); Query query = pm.newQuery(MyUser.class); query.setFilter(emailId == ' + emailId + ' password == ' + password + '); query.setUnique(true); existingUser = (MyUser) query.execute(); log.info(Logged in UserDetails: +existingUser); return existingUser; } catch (Exception e) { log.severe(Exception caught in checkLogin: + e); return existingUser; } } Can somebody help me in understanding the mappings. -- 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: Stuck Index
Is index building a once-off thing that happens when a new index is uploaded to the production site, or does this also apply after every single put() or delete() call to the Datastore? I hope it's the former and not the latter, as this would be a deal breaker for a lot of companies looking to move/create their applicatons on GAE. If it is the former, is there an ETA on when the index building time will come down to an acceptable level (in the seconds rather than hours)? Nick On Dec 3, 8:07 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Prashant, The time taken to build an index depends more on the indexes in the queue ahead of yours than the size of your index. Index building may take up to 12-24 hours at busy times. -Nick Johnson On Wed, Dec 2, 2009 at 8:56 PM, Prashant antsh...@gmail.com wrote: It's more than an hr. and index still building just for 2 record, I guess it is stuck. appid - gaewcms ; index - _Content_ (Uri asc, Weight asc, Added desc) -- 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=en. -- 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] Standard and mobile edition apps under same domain (two different sub domains)
I created a website (including blog) along with a mobile edition using python. The website, blog and mobile edition will eventually be under a Google Apps/Engine domain. The main app will be hosted at www.domain.com and the mobile edition at www.domain.com/mobile/, and this works just fine on the local dev appserver right now. But I would prefer to have the mobile edition app at m.domain.com instead of www.domain.com/mobile/. How could this work with two separate sub domain apps written both in python under the same google apps domain? -- 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] app engine verification by SMS
Hi, I have verified my app engine account by SMS and now have gone in to setup a second app and it is telling me to verify my account by SMS. Obviously, I have already used my phone number and so am getting the error message. Can anyone help? -- 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] Time stamp on deployment log
Can we get a time-stamp on the deployment log? Many times, I can't remember if I've deployed my latest saved version, so I end up deploying again just to make sure. A simple time stamp in the log would make checking fast and easy. 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] App version is stuck; can't change default or disable.
John, the deployment issues should have been resolved. Can you take a look? We'll be updating the groups shortly. On Fri, Dec 4, 2009 at 9:00 AM, John Gardner hux...@gmail.com wrote: My app appears to be stuck at a particular default version. I can change the default, and the console shows it changed (205), but when I go to the site its clearly serving up the old version (175). It was working fine until today; I've deployed dozens of times, and it's all worked. The 205.latest URL works, but the default won't change. I even disabled the application, and the console show it is disabled, but the old version is still being served. (Not a browser cache issue, app is still functional across multiple pages.) That's a little too much uptime. Anyone seen 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.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=en.
Re: [google-appengine] Time stamp on deployment log
Hi, If you click on 'versions' in the admin console, you should see something like live (deployed 37 days, 9:55:01 ago) next to each version. -Nick Johnson On Fri, Dec 4, 2009 at 6:21 PM, GAEfan ken...@gmail.com wrote: Can we get a time-stamp on the deployment log? Many times, I can't remember if I've deployed my latest saved version, so I end up deploying again just to make sure. A simple time stamp in the log would make checking fast and easy. 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=en. -- 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] Virtual Domains
Hello - I am wondering if there is a realistic way to run an app in the app engine that serves thousands of domains. For example, to serve an app that is private labeled for our customers. Is there any limit to the number of domains that an app can be served for? Is there a way to programatically add new domains to the list so the app can serve those domains? From searching docs, all I can see is that the admin console web UI must be used to add a domain and even then the domain must be registered with the Google Apps system which means that anyone who wanted to private label our app engine app and have it served from their domain would be required to have a Google Apps account first. And a human would need to manage the domain changes via the UI, assuming there was no limit imposed. Thanks for any help or clarification. -- 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: Standard and mobile edition apps under same domain (two different sub domains)
Under the setting for the app in your domain manager you should be able to add a another sub domain to point to the same app. Then you will need to update your records from the company you registered with to point the sub domain to ghs.google.com. I do this with several of my apps. However, you will need to detect the domain to determine which one is which. On Dec 3, 8:38 pm, djennings djenni...@pga.com wrote: I created a website (including blog) along with a mobile edition using python. The website, blog and mobile edition will eventually be under a Google Apps/Engine domain. The main app will be hosted atwww.domain.com and the mobile edition atwww.domain.com/mobile/, and this works just fine on the local dev appserver right now. But I would prefer to have the mobile edition app at m.domain.com instead of www.domain.com/mobile/. How could this work with two separate sub domain apps written both in python under the same google apps domain? -- 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] Data Store Timeouts that are Random
My app has been running for almost a year now and runs great. The speed of app engine compared to hosting anywhere else has been great. However, I get random timeouts for simple gets. These queries are the exact same that run all day long several time a day and as you can see from my logs there was no activity between for over 20 seconds before or after the issue. 12-04 09:24AM 57.445 /find?city=baltimorerss=1 200 338ms 390cpu_ms 255api_cpu_ms 0kb TwitterFeed 3,gzip(gfe),gzip(gfe) 12-04 09:24AM 36.325 /find?city=martinsburgrss=1 500 4651ms 575cpu_ms 12api_cpu_ms 1kb TwitterFeed 3,gzip(gfe),gzip(gfe) 12-04 09:20AM 53.315 / 973ms 745cpu_ms 629api_cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0),gzip(gfe) -- 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: updating 1 field inmultiple items according to another field in one go
Eli, I'm not sure I follow you but as far as I understand that would not be possible in this scenario. Let's say we have a table of articles and we need to know how many articles were created between 15 Dec 2009 and 30 Dec 2009 (or any other dates for that matter) - I would never be able to pre-compute the INPUTDT_BTWN_STRT_END for each article. In my case, I'm ok with just querying by month so i'll create the year_month field and compute at write time. It seems the better option. Thanks guys :) On Dec 4, 5:45 pm, Eli Jones eli.jo...@gmail.com wrote: If you are trying to run a query giving you results where the Input_Date is between Start_Date and End_Date, then it would be optimal to have a column that is computed when you insert your row. Not sure what to call the column.. but I'll just use INPUTDT_BTWN_STRT_END .. heh So, when you insert a new row, entity into your Model, presuming you know at least your start_date and input_date (or if you only know input_date then you know it is before start_date, and if you know start_date but not end_date then you know end_date is after the current date)... Then you insert your entity with the INPUTDT_BTWN_STRT_END = 1 if the input_date is between the start and end dates.. presuming you can tell. Or, you can have a process that periodically runs to compute this field. So, the default value would be INPUTDT_BTWN_STRT_END = -1 ... and you'd occasionally update all entities with INPUTDT_BTWN_STRT_END = -1 to 0, 1, 2 where 0 means Input_date is before start_date, 1 = between and 2 = after End_Date. Then you have an easy query that uses a default index and an int property. On Fri, Dec 4, 2009 at 10:52 AM, sofia sofiacard...@gmail.com wrote: I would like to do something like SELECT * FROM MyTable WHERE input_date = start_date AND input_date = end_date but I get Inequality Filters Are Allowed On One Property Only See http://appengine-cookbook.appspot.com/recipe/how-to-query-by-date-range/ Well, guess i'll have to do the script then On Dec 4, 3:43 pm, Eli Jones eli.jo...@gmail.com wrote: What do you mean by double filter? What exactly is the select/query you want to run? What does your Model look like? From your description of the issue, it's hard to tell what you mean by double filter. Thanks for clarification. On Fri, Dec 4, 2009 at 9:40 AM, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created | year_month a string | 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created | year_month a string | 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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: updating 1 field inmultiple items according to another field in one go
I guess I am misunderstanding what column is what... if you just have a Model defined like this: Articles(db.Model): article = db.StringProperty() input_date = db.DateTimeProperty() Then.. like you mentioned.. you'd just do a query like: GqlQuery(Select * from Articles Where input_date DateTime(:1) AND input_date DateTime(:2), '2009-10-01 12:00:01','2009-12-01 12:00:01') I was presuming start_date and end_date were part of your db.Model.. If you're getting errors on a query like the one above, then there is possibly an error in your code. On Fri, Dec 4, 2009 at 2:11 PM, sofia sofiacard...@gmail.com wrote: Eli, I'm not sure I follow you but as far as I understand that would not be possible in this scenario. Let's say we have a table of articles and we need to know how many articles were created between 15 Dec 2009 and 30 Dec 2009 (or any other dates for that matter) - I would never be able to pre-compute the INPUTDT_BTWN_STRT_END for each article. In my case, I'm ok with just querying by month so i'll create the year_month field and compute at write time. It seems the better option. Thanks guys :) On Dec 4, 5:45 pm, Eli Jones eli.jo...@gmail.com wrote: If you are trying to run a query giving you results where the Input_Date is between Start_Date and End_Date, then it would be optimal to have a column that is computed when you insert your row. Not sure what to call the column.. but I'll just use INPUTDT_BTWN_STRT_END .. heh So, when you insert a new row, entity into your Model, presuming you know at least your start_date and input_date (or if you only know input_date then you know it is before start_date, and if you know start_date but not end_date then you know end_date is after the current date)... Then you insert your entity with the INPUTDT_BTWN_STRT_END = 1 if the input_date is between the start and end dates.. presuming you can tell. Or, you can have a process that periodically runs to compute this field. So, the default value would be INPUTDT_BTWN_STRT_END = -1 ... and you'd occasionally update all entities with INPUTDT_BTWN_STRT_END = -1 to 0, 1, 2 where 0 means Input_date is before start_date, 1 = between and 2 = after End_Date. Then you have an easy query that uses a default index and an int property. On Fri, Dec 4, 2009 at 10:52 AM, sofia sofiacard...@gmail.com wrote: I would like to do something like SELECT * FROM MyTable WHERE input_date = start_date AND input_date = end_date but I get Inequality Filters Are Allowed On One Property Only See http://appengine-cookbook.appspot.com/recipe/how-to-query-by-date-range/ Well, guess i'll have to do the script then On Dec 4, 3:43 pm, Eli Jones eli.jo...@gmail.com wrote: What do you mean by double filter? What exactly is the select/query you want to run? What does your Model look like? From your description of the issue, it's hard to tell what you mean by double filter. Thanks for clarification. On Fri, Dec 4, 2009 at 9:40 AM, sofia sofiacard...@gmail.com wrote: Hi, I have a model that I need to filter by date, start and end date. It has a DateTime property to which this double filter was going to be applied but I've since found out that this isn't possible in app engine. So now I want to add a new field with only the year and month, something like 200912 and will only filter by month. So if i have a 1000 rows, like this title | date_created| year_month a string| 2009-10-12 00:00:00 | the string | 2009-09-22 00:00:00 | how do i update in one go all rows so that i end up with this: title | date_created| year_month a string| 2009-10-12 00:00:00 | 200910 the string | 2009-09-22 00:00:00 | 200909 Is there any way to do this, or do I have to create a script that fetches each row one by one and updates the field accordingly? Thanks, Sofia -- 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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] files 1MB? If not.. redirect a POST?
hello - I am creating a service where people can upload data to a app engine URL. How can I upload files that are 1MB? I already sent out the binary for my to Apple which includes a URL to POST to. If I can't upload files 1MB with GAE, then can I somehow redirect a POST being made to an HTTPS address? Or am I completely hosed? Thank you- Matt -- 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: Data Store Timeouts that are Random
Same experience here. In fact, a user just yesterday called me about this, I looked at the logs and it was a timeout... I have now removed the Sever Error message and replaced it with a very polite these things happen just retry in a few seconds and only call me if it happens every time On Dec 4, 10:40 am, Ray Malone rayish...@gmail.com wrote: My app has been running for almost a year now and runs great. The speed of app engine compared to hosting anywhere else has been great. However, I get random timeouts for simple gets. These queries are the exact same that run all day long several time a day and as you can see from my logs there was no activity between for over 20 seconds before or after the issue. 12-04 09:24AM 57.445 /find?city=baltimorerss=1 200 338ms 390cpu_ms 255api_cpu_ms 0kb TwitterFeed 3,gzip(gfe),gzip(gfe) 12-04 09:24AM 36.325 /find?city=martinsburgrss=1 500 4651ms 575cpu_ms 12api_cpu_ms 1kb TwitterFeed 3,gzip(gfe),gzip(gfe) 12-04 09:20AM 53.315 / 973ms 745cpu_ms 629api_cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0),gzip(gfe) -- 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] files 1MB? If not.. redirect a POST?
You are hosed. Instead, upload to Amazon S3, and manage the files in GAE. S3 lets you set up a signature so people can upload into a bucket you set up. Then after the upload, it redirects to whatever URL you want, which you can use to log the upload in you GAE app. After that, you can talk to S3 to get info like the file size: head = urlfetch.fetch(url = 'http://%s.s3.amazonaws.com/%s' % ( bucketName, urllib.quote(s3key) ), method=urlfetch.HEAD) size = int(head.headers['content-length']) S3 is not free, but it's darn close. -Joshua On Dec 4, 2009, at 2:38 PM, Matt P wrote: hello - I am creating a service where people can upload data to a app engine URL. How can I upload files that are 1MB? I already sent out the binary for my to Apple which includes a URL to POST to. If I can't upload files 1MB with GAE, then can I somehow redirect a POST being made to an HTTPS address? Or am I completely hosed? Thank you- Matt -- 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. -- 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] Using Web form to Upload CSV File issue
Hello, All! Please help me with this issue!!! I'm new to GAE and Python and I'm trying to make function to upload CSV files using the Web form rather that bulkuploader. I'm try to utilize csv.reader to parse the CSV but I get an incorrect result, instead of reading each row individually, it treats each character as an row: ['0'] ['.'] ['0'] ['5']['', ''] ['0'] ['.'] ['2'] etc etc... where each item between the square bracket is actually from one row (ie. a newline) Here us my Python code: class importEvents (webapp.RequestHandler): def post(self): fileReader = csv.reader(self.request.get('csv'), dialect='excel') for row in fileReader: self.response.out.write(row) And HTML code: form name=importFile action=/importFile/importData enctype=multipart/form-data method=post divCSV File(Comma Separated Value) File*: input type=file name=csv//div divinput type=submit value=Upload/div /form Please tell me what am I doing wrong here? Thank you! -- 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] how many index
The number of kinds won't count against your index quota. Here's a good article describing how the datastore works underneath the hood: http://code.google.com/appengine/articles/storage_breakdown.html A single index exists for Entities by Kind. What you'll need to watch out for are the indexes you use on properties. Where I'm seeing red flags is the sheer number of types of entities you are storing. There's a danger here of overengineering and creating a new class simply to store additional information about very similar objects, and you may want to look into storing this additional metadata as a field instead. Having 100+ entities is going to be very unmanageable and could be extremely difficult to maintain. On Thu, Dec 3, 2009 at 7:29 AM, alf alberto@gmail.com wrote: How many indexes can I create in a application? I hope create more than 100 kinds and probably more than one index per king there are any limit? 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=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=en.
[google-appengine] Assigning words with spaces to a text box
Hi, When I am trying to assign a value,which is a normal text with multiple words with spaces, to a text box, the value get truncated after the first word.The value is stored completely in the datastore. 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.
[google-appengine] Re: Standard and mobile edition apps under same domain (two different sub domains)
If I had two separate applications under the same google apps domain (m.domain and www.domain.com), could these two applications share a common database/datastore since it's the same developer (both in python) under the same google apps domain? On Dec 4, 12:33 pm, Ray Malone rayish...@gmail.com wrote: Under the setting for the app in your domain manager you should be able to add a another sub domain to point to the same app. Then you will need to update your records from the company you registered with to point the sub domain to ghs.google.com. I do this with several of my apps. However, you will need to detect the domain to determine which one is which. On Dec 3, 8:38 pm, djennings djenni...@pga.com wrote: I created a website (including blog) along with a mobile edition using python. The website, blog and mobile edition will eventually be under a Google Apps/Engine domain. The main app will be hosted atwww.domain.com and the mobile edition atwww.domain.com/mobile/, and this works just fine on the local dev appserver right now. But I would prefer to have the mobile edition app at m.domain.com instead of www.domain.com/mobile/. How could this work with two separate sub domain apps written both in python under the same google apps domain? -- 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] Assigning words with spaces to a text box
We will probably need to see a little code to help you. On Fri, Dec 4, 2009 at 4:39 PM, Felix felix1...@gmail.com wrote: Hi, When I am trying to assign a value,which is a normal text with multiple words with spaces, to a text box, the value get truncated after the first word.The value is stored completely in the datastore. 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=en. -- 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: Standard and mobile edition apps under same domain (two different sub domains)
You can map both domains to your app. Then within your application you can detect to domain and take the appropriate action. In other words, the same application will handle both domains -- your code will handle routing the request to the proper handler. Robert On Fri, Dec 4, 2009 at 4:42 PM, djennings djenni...@pga.com wrote: If I had two separate applications under the same google apps domain (m.domain and www.domain.com), could these two applications share a common database/datastore since it's the same developer (both in python) under the same google apps domain? On Dec 4, 12:33 pm, Ray Malone rayish...@gmail.com wrote: Under the setting for the app in your domain manager you should be able to add a another sub domain to point to the same app. Then you will need to update your records from the company you registered with to point the sub domain to ghs.google.com. I do this with several of my apps. However, you will need to detect the domain to determine which one is which. On Dec 3, 8:38 pm, djennings djenni...@pga.com wrote: I created a website (including blog) along with a mobile edition using python. The website, blog and mobile edition will eventually be under a Google Apps/Engine domain. The main app will be hosted atwww.domain.com and the mobile edition atwww.domain.com/mobile/, and this works just fine on the local dev appserver right now. But I would prefer to have the mobile edition app at m.domain.com instead of www.domain.com/mobile/. How could this work with two separate sub domain apps written both in python under the same google apps domain? -- 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=en. -- 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] Corrupt index rebuilt today, still missing up to 56% of items
I've been having problems with two descending __key__ indexes on my app. Today I deleted and rebuilt one of the indexes, but the new index is still missing up to 56% of items compared to the normal ascending __key__ index. Here's my index definition from index.yaml: - kind: domains_domain properties: - name: __key__ direction: desc Here's a simple page that demonstrates the problem, showing the missing items in red: http://scoretool.appspot.com/domains/descending/ Additional info about my app: I have a large dataset (2 million items using 15.7 GB including metadata). The key names are short ASCII strings. Index building or deleting takes several hours, but it seems faster today than before SDK 1.2.8 came out. Corrupt indexes are a significant problem for my app because it compares ranges of key names on different models to update or delete objects. Please let me know if I can do something else to help diagnose this issue. -- 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] Corrupt index rebuilt today, still missing up to 56% of items
Johann, These queries have different second parameters in their Key.from_path. Is this just a text error? Domain.all(keys_only=True).order('__key__').filter('__key__ =', db.Key.from_path('domains_domain', 'menewokzxwsqipne')).fetch(100) Domain.all(keys_only=True).order('-__key__').filter('__key__ =', db.Key.from_path('domains_domain', 'mengame')).fetch(100) On Fri, Dec 4, 2009 at 2:15 PM, Johann C. Rocholl joh...@rocholl.netwrote: I've been having problems with two descending __key__ indexes on my app. Today I deleted and rebuilt one of the indexes, but the new index is still missing up to 56% of items compared to the normal ascending __key__ index. Here's my index definition from index.yaml: - kind: domains_domain properties: - name: __key__ direction: desc Here's a simple page that demonstrates the problem, showing the missing items in red: http://scoretool.appspot.com/domains/descending/ Additional info about my app: I have a large dataset (2 million items using 15.7 GB including metadata). The key names are short ASCII strings. Index building or deleting takes several hours, but it seems faster today than before SDK 1.2.8 came out. Corrupt indexes are a significant problem for my app because it compares ranges of key names on different models to update or delete objects. Please let me know if I can do something else to help diagnose this issue. -- 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=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=en.
[google-appengine] Re: Corrupt index rebuilt today, still missing up to 56% of items
No, this is not an error. I'm using the last result of the ascending query as the starting point for the descending query, so that I can compare the result ranges. On Dec 4, 2:27 pm, Ikai L (Google) ika...@google.com wrote: These queries have different second parameters in their Key.from_path. Is this just a text error? Domain.all(keys_only=True).order('__key__').filter('__key__ =', db.Key.from_path('domains_domain', 'menewokzxwsqipne')).fetch(100) Domain.all(keys_only=True).order('-__key__').filter('__key__ =', db.Key.from_path('domains_domain', 'mengame')).fetch(100) -- 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] Error using org.json.JSONArray or JSONObject in GAE
I am developing a java rest serice with GAE. I was going to use JSON to pass the object in and out (http post and get). I am receiving an error stating that org.json.JSONObject is not supported by Google App Engine in the representation class of the GET. Has anyone had any luck using restlet and the JSON approach to create a Rest service? Any help you could give would be greatly 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=en.
[google-appengine] Re: Incomplete index was built [was: Slow index build]
Hi Eric. We're investigating this issue on our end. Looking into this a bit deeper, I see that one of the entities that didn't appear in the query results was written on the 27th and the second was written on the 30th. I know that you had re-built your index a second time after our chat on Wednesday, but when did you originally build the index? Was it after you finished writing all of the entities or sometime between the 27th and 30th? Thanks, - Jason On Nov 30, 1:41 pm, Eric Rannaud eric.rann...@gmail.com wrote: On Mon, Nov 30, 2009 at 1:30 PM, Joshua Smith joshuaesm...@charter.net wrote: Are you sure all 4 entities *have* an id field. I've been bitten by that when I added a new field. if you mention a field that an entity is missing anywhere in the GQL, then that entity will not show up in your query results. Yes, they all do have an id field. Note that the ordered query works just fine on the development server, returning 4 results. For now, my workaround is to retrieve the entities unordered and sort them in the server code. Eric. -- 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: Tragedy of the Commons, and Cold Starts
There's an enhancement request (http://code.google.com/p/ googleappengine/issues/detail?id=2456) open for this for Java, though it probably applies equally well to Python. Go voice your opinion. On Nov 3, 2:21 pm, Adligo sc...@adligo.com wrote: I think paying to keep the instances warm is a great idea! Cheers, Scott -- 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: files 1MB? If not.. redirect a POST?
Not so fast Josh. Looks like there is at least a java project to allow uploads 1MB. If it is possible in java land, it should be possible in python. Does a similar package exist for python? Matt On Dec 4, 12:21 pm, Joshua Smith joshuaesm...@charter.net wrote: You are hosed. Instead, upload to Amazon S3, and manage the files in GAE. S3 lets you set up a signature so people can upload into a bucket you set up. Then after the upload, it redirects to whatever URL you want, which you can use to log the upload in you GAE app. After that, you can talk to S3 to get info like the file size: head = urlfetch.fetch(url = 'http://%s.s3.amazonaws.com/%s' % ( bucketName, urllib.quote(s3key) ), method=urlfetch.HEAD) size = int(head.headers['content-length']) S3 is not free, but it's darn close. -Joshua On Dec 4, 2009, at 2:38 PM, Matt P wrote: hello - I am creating a service where people can upload data to a app engine URL. How can I upload files that are 1MB? I already sent out the binary for my to Apple which includes a URL to POST to. If I can't upload files 1MB with GAE, then can I somehow redirect a POST being made to an HTTPS address? Or am I completely hosed? Thank you- Matt -- 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=en. -- 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] Receiving Email, ASCII Decode, Stuck in Queue
My app receives mail and stores them in the datastore. It usually works fine, but occasionally it has problems decoding the message body. It logs errors like: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 50: ordinal not in range(128) The error happens when trying to decode the message body: bodytext = message.bodies(content_type='text/plain').next() [1].decode() Question 1 - do I really need to muck around with detecting different encodings on each email, or is there an app engine function that makes it just work? Question 2 - app engine keeps retrying these failed messages, and they keep failing. How can I clear them from the queue? -- 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: Incomplete index was built [was: Slow index build]
On Fri, Dec 4, 2009 at 3:22 PM, Jason (Google) apija...@google.com wrote: Hi Eric. We're investigating this issue on our end. Looking into this a bit deeper, I see that one of the entities that didn't appear in the query results was written on the 27th and the second was written on the 30th. I know that you had re-built your index a second time after our chat on Wednesday, but when did you originally build the index? Was it after you finished writing all of the entities or sometime between the 27th and 30th? I believe the chain of events is the following: 1- The 27th, all entities MessageS were uploaded. 2- The first index was built 3- Sometime after that, the MessageS class was updated to have a votes field, without touching the content of the datastore itself. 4- Sometime after that (the 30th I assume), one the entities was voted on, and therefore was updated. 5- First index deleted. 6- Second index built. It's possible 3 was before 2, but I don't think so. This is weird, doing the two queries today, ordered and unordered, now returns respectively 3 and 4 results. It used to be 2 and 4 (with both the first index and the second index). Something changed in the past 2 days. It's still wrong, but less wrong. Thanks, Eric. -- 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] GAE for domains vs GAE Authentication
I have two Google accounts under the same email address for some* reason. A standard Google Account and my Google for domains account. Yesterday, logged in as my standard account, I signed up for GAE, verified via SMS and created a new app. I saw nothing. After reading the help, I saw it had been added to my domains account. I didn't think it would be a problem. I could push files and everything was going well. Then I tried to add some authentication. Authentication can (inexplicably) only be done via standard accounts. I can't add my standard account as an admin as its email is already in the system. I looked in the settings and it confirmed this nonsense. I can't appear to switch it now. I thought I'd try and create it from scratch logged in as my domains account. I put my mobile number in and it tells me (accurately, I guess) that I've already used that number for another account. Same email, guys. Wouldn't you think that's the same person? For the love of all things holy, I'm real. So I'm stuck with an app that I cant authenticate in and no ability to create new applications. What on earth do I do now? * Some reason being: Google's membership system is a bit of a mess. I've probably got five or six accounts for various Google services all under the same email because they don't cross-authenticate. It's silly; there should be one account that identifies me across all of Google. -- 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: Limit on image size very low
Ikai, Could you please specify a planned date (at least with month precision) of so wanted feature release? Also would it only alter a datastore structure size, or also be applied to incoming/outgoing emails limits, responses limits, POST request size? Thanks in andvance On Nov 19, 1:13 am, Ikai L (Google) ika...@google.com wrote: 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=en.
Re: [google-appengine] Re: Incomplete index was built [was: Slow index build]
Hi Eric. Yes, the reason why you see 3 instead of 4 was because we re-put one of the incorrect entities. If you re-put the other (either programatically or via the Admin Console), you should see it appear when you execute the query. We're still working on determining why they weren't returned with the original index. It's possible that several of your other entities are affected, and we'll try to clear that up for you soon. If you can't wait, you can always write a remote_api script that queries for all entities and writes each in an individual transaction yourself or continue filtering in memory until we repair the index on our end. Thanks, - Jason On Fri, Dec 4, 2009 at 3:52 PM, Eric Rannaud eric.rann...@gmail.com wrote: On Fri, Dec 4, 2009 at 3:22 PM, Jason (Google) apija...@google.com wrote: Hi Eric. We're investigating this issue on our end. Looking into this a bit deeper, I see that one of the entities that didn't appear in the query results was written on the 27th and the second was written on the 30th. I know that you had re-built your index a second time after our chat on Wednesday, but when did you originally build the index? Was it after you finished writing all of the entities or sometime between the 27th and 30th? I believe the chain of events is the following: 1- The 27th, all entities MessageS were uploaded. 2- The first index was built 3- Sometime after that, the MessageS class was updated to have a votes field, without touching the content of the datastore itself. 4- Sometime after that (the 30th I assume), one the entities was voted on, and therefore was updated. 5- First index deleted. 6- Second index built. It's possible 3 was before 2, but I don't think so. This is weird, doing the two queries today, ordered and unordered, now returns respectively 3 and 4 results. It used to be 2 and 4 (with both the first index and the second index). Something changed in the past 2 days. It's still wrong, but less wrong. Thanks, Eric. -- 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=en. -- 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: Incomplete index was built [was: Slow index build]
On Fri, Dec 4, 2009 at 4:17 PM, Jason (Google) apija...@google.com wrote: Hi Eric. Yes, the reason why you see 3 instead of 4 was because we re-put one of the incorrect entities. If you re-put the other (either programatically or via the Admin Console), you should see it appear when you execute the query. We're still working on determining why they weren't returned with the original index. It's possible that several of your other entities are affected, and we'll It's indeed likely. Since I found that example by chance, it's unlikely these are the only 2 out of 500,000. try to clear that up for you soon. If you can't wait, you can always write a remote_api script that queries for all entities and writes each in an individual transaction yourself or continue filtering in memory until we repair the index on our end. It's alright, I'm sorting the results manually in application code. The overhead is negligible with my current level of activity. This will do fine for now. 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.
[google-appengine] My site seems to have been deleted
http://tombrander.appspot.com/ It has been running for about a year now it just shows some blank html??? I have not touched it not even as admin on the blog much less via the App-engine admin interface?? What's up It had been running for about a year but vanished today (I think) -- 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: Tragedy of the Commons, and Cold Starts
On Oct 23, 3:02 pm, bugaco ice...@gmail.com wrote: I had a bit weird experience with this... So I wrote app (http://analytics.bugaco.com) that runs on App Engine. Than I looked at the request logs to see how it is running. Request logs suggested that I'm using a lot of CPU time on hitting the home page, but after that CPU time significantly decreases. It also had annoying red flag suggesting that servlet is using excessive resources and that I need to optimize it. Testing a bit, I noticed that pinging lets app be warm, and I had cron doing the pings for a few days; while also noticing that it does not do anything useful Conclusion: 1. If log files don't suggest that you are better off pinging people would not ping I'm not sure what you mean here, but we have plans to change the admin console to explicitly call out loading requests, so you can take that into account when profiling your application. Until that becomes available, it's pretty easy for you to detect and log loading requests yourself. 2. It is stupid that google counts warming up your app toward CPU time (leading to profiling, that leads to pinging) A couple of things: 1) CPU time doesn't grow on trees, it comes out of your free or paid quota. Why should we hide this from you? 2) The number of loading requests your application receives are inversely proportional to its traffic. If you get more traffic, you'll receive fewer loading requests. This means it usually doesn't pay to optimize loading requests, unless you're just trying to reduce user latency. 3. It is very stupid that applications can not denote 'keep this code path warm/cache it/or something' that will allow new users not to give up on the up until they get first response. Unfortunately, it takes an inordinate amount of physical hardware to keep on the order of millions of applications in memory, which is somewhat counter to free. If our startup optimizations plus your own optimizations don't satisfy you, then maybe you can voice your opinion on paying for a warm VM (http://code.google.com/p/googleappengine/ issues/detail?id=2456)? So, as a conclusion, I think AppEngine is AWESOME. And I also think it SUCKS. I love SDK, ability to deploy and test and use all the cool things. I don't like the idea that it can not serve a (entry)page in 3-5 seconds as I think that it leaves bad taste in users mouth, and consequently bad taste in developers mouth. Finally, I am not sure I'll use AppEngine for developing other applications as I'd rather go with paid hosting that provides some level of performance on serving pages. I think Google would win a lot of good will if they at least provide quick serving of static resources. Google App Engine already serves static resources without intervening requests to application VMs. This means that, for example, you could serve a page that was entirely static content, with a small amount of JS to ping your VM with an asynchronous dynamic request to wake it up. That page would be served instantly to the user. You need to ensure though, that the resources are indeed specified as static content in your app.yaml or appengine-web.xml. One may wonder how to do that, and given that they have all those yaml files there may be yaml file that specifies a warm static resource. This would decrease a need for pinging your app as it would allow user to hit entry page, and google to pre-cache app much easier. -- 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] My site seems to have been deleted
On Fri, Dec 4, 2009 at 5:28 PM, dartdog tombran...@gmail.com wrote: http://tombrander.appspot.com/ It has been running for about a year now it just shows some blank html??? I have not touched it not even as admin on the blog much less via the App-engine admin interface?? What's up It had been running for about a year but vanished today (I think) Just try re-uploading it, that seems to get that issue fixed. -- 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: Tragedy of the Commons, and Cold Starts
We're discouraging people from using pinging techniques to keep their VMs warm, because it increases the number of loading requests for all of the low traffic applications on App Engine. It would be a shame if we had to change scheduling behavior to enforce that policy. Would also be a shame if everyone stopped using GAE because it's not really possible to get an app to work any other way. -- 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: accessing date fields set to auto now and django forms
yes, can access thru the form.instance {{ form.instance.dob }} On Dec 4, 6:55 pm, Alex alexle...@googlemail.com wrote: Hi, The gae doc says 'DateTime fields with auto_now or auto_now_add set to true are automatically not displayed' in django forms. Is there some way I can access these date values through the form to display them even though they are readonly. I am using code such as this: form = datamodel.MyForm(instance=myinstance) path = os.path.join(os.path.dirname(__file__), 'html/ formMyForm.html') self.response.out.write(template.render(path, {'form':form})) 'myinstance' contains a field: dob = db.DateTimeProperty(auto_now_add = True) Is there a way to get 'dob' into my 'form' to render in the html with {{ form.dob }} ? I would also like it to be subject to my own date widget code for rendering as any date input field in the application. Thanks Alex -- 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] index creation quota
Hi Ikai, May we know what would be that higher index quota? coz we are already hitting the ceiling and not able to create anymore we need. - eric 2009/12/5 Ikai L (Google) ika...@google.com Eric, Billing enabled apps have a higher index quota. If you enabled billing, you should have a higher ceiling for the number of indexes you can create. On Fri, Dec 4, 2009 at 1:22 AM, Eric Ka Ka Ng ngk...@gmail.com wrote: Hi, I have an billing enabled application that hits the index creation quota (which I think is about 100 from the threads I read). I understand exceeding 100 composite indexes maybe a sign of bad schema design. The main reason for high number of composite indexes is, for some 'model' in the application, they contains about let say 7 fields (which is not a high number), and these 7 fields can freely form different filters with every combinations to answer users queries. Please increase the index creation quota, or it is ok if we can pay as a billable option for the overuse of indexes (i can't find any option for this in the billing setting). Or please advise if there are any alternative ways to implement filtering based on combinations of fields without building the required composite indexes. Our app id is 'dvmmyws' Thanks in advanced and we are really urgently need such relaxation or billable option Regards, Eric Ng -- 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=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.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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.