[appengine-java] Re: Can't deploy again despite fix announcement
Ikai, you are the man! This seemed to be the problem with my apps as well. THANK YOU!!! On Nov 16, 8:25 am, Joakim Söderström joakim.soderst...@gmail.com wrote: This solves my issues, thanks Ikai! Suggestion: make sure that the Eclipse plugin doesn't generate a web.xml with DOCTYPE set. On Nov 16, 7:19 am, Didier Durand durand.did...@gmail.com wrote: Ikai, suggestion for your deploy process: would it be possible to generate a warning in the console output of the deploy if we used the wrong DOCTYPE line int he source code that App Engine parses: that would allow people to fix their source code quickly even if they didn't read this thread regards didier On Nov 16, 1:46 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Okay, just got confirmation that the reason this isn't working intermittently is related to having DOCTYPE in web.xml. Do you guys have a line in your web.xml that looks like this? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; If so, can you replace it with this? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/we...; version=2.5 The reason this issue occurs is that a deploy will attempt to retrieve the DTD, but if the server is overloaded or not responsive, the deploy operation will just time out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Mon, Nov 15, 2010 at 3:09 PM, Artem artem...@gmail.com wrote: Here it is:http://paste.pocoo.org/show/291784/ On 11/16/2010 01:29 AM, Ikai Lan (Google) wrote: Does anyone have a stack trace if an exception is thrown? Will deploy work after a rollback? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B 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] Re: Can't deploy again despite fix announcement
Thanks Ikai. Now I am able to deploy again. Have a nice day. On Tue, Nov 16, 2010 at 10:37 AM, dflorey daniel.flo...@gmail.com wrote: Ikai, you are the man! This seemed to be the problem with my apps as well. THANK YOU!!! On Nov 16, 8:25 am, Joakim Söderström joakim.soderst...@gmail.com wrote: This solves my issues, thanks Ikai! Suggestion: make sure that the Eclipse plugin doesn't generate a web.xml with DOCTYPE set. On Nov 16, 7:19 am, Didier Durand durand.did...@gmail.com wrote: Ikai, suggestion for your deploy process: would it be possible to generate a warning in the console output of the deploy if we used the wrong DOCTYPE line int he source code that App Engine parses: that would allow people to fix their source code quickly even if they didn't read this thread regards didier On Nov 16, 1:46 am, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: Okay, just got confirmation that the reason this isn't working intermittently is related to having DOCTYPE in web.xml. Do you guys have a line in your web.xml that looks like this? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; If so, can you replace it with this? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web= http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation= http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/we...; version=2.5 The reason this issue occurs is that a deploy will attempt to retrieve the DTD, but if the server is overloaded or not responsive, the deploy operation will just time out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Mon, Nov 15, 2010 at 3:09 PM, Artem artem...@gmail.com wrote: Here it is:http://paste.pocoo.org/show/291784/ On 11/16/2010 01:29 AM, Ikai Lan (Google) wrote: Does anyone have a stack trace if an exception is thrown? Will deploy work after a rollback? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Nicanor Cristian Babula -- 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: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException:
Ian, which plugins do you use with netbeans? -Thufir -- 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] Question about Optimistic Locking
Hello, I saw the post by Max Ross and when I try to do the same (@Version annotated long version field), it simply does not detect version conflict. I am totally confused. My pseudo code is as follows. begin-transaction fetch-the-entity-from-data-store modify-entity-fields decrement-version-for-testing-so-it-fails merge-entity commit-transaction I even tried another way, holding the stale entity while another update is done. Now the stale entity has a version one behind. But still no exception. The code silently updates and version gets incremented (one above the latest). GAE SDK 1.3.7. Help appreciated! -- 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: does GAE support between operator?
You can set two filter properties, one for greater than and one for less than. http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Ex: Query q = new Query(KIND); q.addFilter(Prop , Query.FilterOperator.GREATER_THAN_OR_EQUAL , startVal); q.addFilter(Prop , Query.FilterOperator.LESS_THAN , endVal); On Nov 16, 9:57 am, Vik vik@gmail.com wrote: Hie I want to find rows where a number exist in between of two column values which are say numFrom and numTo. So does app engine query support between operator to write like select myclass where myNum in between numFrom and numTo ? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com -- 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] how to bulk provision users
It is a normal event for my school to provision 50-100 users a day during registration times. Is there a way to use the java app engine with coldfusion to automatically upload a csv file with the appropriate data in it? I already use coldfusion to pull all the data and create the csv, I just have to manually upload the file for bulk creation. Since I tend to forget to do this, I would love to just do scheduled task to push the csv a couple times a day during our busy registration times. Does anyone have something like this I can see an example of? Thanks, Miq -- 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: Output encoding / JPEG does not seem to work
Are you using dev server? The image service on dev server does the most basic thing possible and ignore most params. You might have issue working with PNG files as well. Deploy to a live test server and the image service should work. By default, jpeg encoding is quality 85 (according to my trials), set it to higher if you need better quality but size will go up. On Nov 13, 8:57 am, John ad...@weespr.com wrote: When I use a lower quality encoding, the size of the resulting photo is the same not matter what. JPEG 100 or JPEG 60 gives me the exact same image size when applying a couple transformations. I tried with different types of photos, same result. Anyone had success with tweaking the encoding quality ? -- 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: does GAE support between operator?
hie This seems to implies i cannot use the above suggested method as timeFrom and timeTo are two different attributes in my entity and i have to check if a value is in between of timeFrom and timeTo Then how should i get this? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Tue, Nov 16, 2010 at 9:37 PM, Didier Durand durand.did...@gmail.comwrote: Hi, Also see all details at http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Restrictions_on_Queries You can filter on a range on a given property: it's described there. regards didier On Nov 16, 4:33 pm, Robert Lancer robert.lan...@gmail.com wrote: You can set two filter properties, one for greater than and one for less than. http://code.google.com/appengine/docs/java/javadoc/com/google/appengi... Ex: Query q = new Query(KIND); q.addFilter(Prop , Query.FilterOperator.GREATER_THAN_OR_EQUAL , startVal); q.addFilter(Prop , Query.FilterOperator.LESS_THAN , endVal); On Nov 16, 9:57 am, Vik vik@gmail.com wrote: Hie I want to find rows where a number exist in between of two column values which are say numFrom and numTo. So does app engine query support between operator to write like select myclass where myNum in between numFrom and numTo ? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com -- 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: does GAE support between operator?
Hi, To reach your target, you can always select on 1 criterion from the datastore (the one with least results to be most efficient) and then do the second filtering in your program. regards didier On Nov 16, 6:40 pm, Vik vik@gmail.com wrote: hie This seems to implies i cannot use the above suggested method as timeFrom and timeTo are two different attributes in my entity and i have to check if a value is in between of timeFrom and timeTo Then how should i get this? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com On Tue, Nov 16, 2010 at 9:37 PM, Didier Durand durand.did...@gmail.comwrote: Hi, Also see all details at http://code.google.com/appengine/docs/java/datastore/queriesandindexe... You can filter on a range on a given property: it's described there. regards didier On Nov 16, 4:33 pm, Robert Lancer robert.lan...@gmail.com wrote: You can set two filter properties, one for greater than and one for less than. http://code.google.com/appengine/docs/java/javadoc/com/google/appengi... Ex: Query q = new Query(KIND); q.addFilter(Prop , Query.FilterOperator.GREATER_THAN_OR_EQUAL , startVal); q.addFilter(Prop , Query.FilterOperator.LESS_THAN , endVal); On Nov 16, 9:57 am, Vik vik@gmail.com wrote: Hie I want to find rows where a number exist in between of two column values which are say numFrom and numTo. So does app engine query support between operator to write like select myclass where myNum in between numFrom and numTo ? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com -- 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: how to bulk provision users
Hi, Why not use bulk loader: see http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/ regards didier On Nov 16, 6:08 pm, Danny Mainprize dmainpr...@gmail.com wrote: It is a normal event for my school to provision 50-100 users a day during registration times. Is there a way to use the java app engine with coldfusion to automatically upload a csv file with the appropriate data in it? I already use coldfusion to pull all the data and create the csv, I just have to manually upload the file for bulk creation. Since I tend to forget to do this, I would love to just do scheduled task to push the csv a couple times a day during our busy registration times. Does anyone have something like this I can see an example of? Thanks, Miq -- 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: Output encoding / JPEG does not seem to work
The link to Google App Engine images API overview http://code.google.com/appengine/docs/java/images/overview.html This code works for transformation ImagesService imageService = ImagesServiceFactory.getImagesService(); Image origImage = ImagesServiceFactory.makeImage(byteArray); Blob origBlob = new Blob(origImage.getImageData()); ImageObj origImageObject = new ImageObj(orig_img.jpg,origBlob ...); Transform tr = ImagesServiceFactory.makeResize(the_size_of_your_img, new_size_of_your_img); Image newImage = imageService.applyTransform(tr,origImage); On Tue, Nov 16, 2010 at 12:40 PM, Peter Liu tinyee...@gmail.com wrote: Are you using dev server? The image service on dev server does the most basic thing possible and ignore most params. You might have issue working with PNG files as well. Deploy to a live test server and the image service should work. By default, jpeg encoding is quality 85 (according to my trials), set it to higher if you need better quality but size will go up. On Nov 13, 8:57 am, John ad...@weespr.com wrote: When I use a lower quality encoding, the size of the resulting photo is the same not matter what. JPEG 100 or JPEG 60 gives me the exact same image size when applying a couple transformations. I tried with different types of photos, same result. Anyone had success with tweaking the encoding quality ? -- 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] Install plugin failed. Missing Requirement. Eclipse Helios SR1.
I am unable to install the Google Plugin for Eclipse. I have Eclipse Helios SR1. Cannot complete the install because one or more required items could not be found. Software being installed: Google Plugin for Eclipse 3.6 1.4.0.v201010280102 (com.google.gdt.eclipse.suite.e36.feature.feature.group 1.4.0.v201010280102) Missing requirement: Google Plugin for Eclipse 3.6 1.4.0.v201010280102 (com.google.gdt.eclipse.suite.e36.feature.feature.group 1.4.0.v201010280102) requires 'org.eclipse.jst.server.core 0.0.0' but it could not be found -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Can't deploy again despite fix announcement
works for me as well. thx On 16 Nov., 01:46, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Okay, just got confirmation that the reason this isn't working intermittently is related to having DOCTYPE in web.xml. Do you guys have a line in your web.xml that looks like this? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; If so, can you replace it with this? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 The reason this issue occurs is that a deploy will attempt to retrieve the DTD, but if the server is overloaded or not responsive, the deploy operation will just time out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Mon, Nov 15, 2010 at 3:09 PM, Artem artem...@gmail.com wrote: Here it is:http://paste.pocoo.org/show/291784/ On 11/16/2010 01:29 AM, Ikai Lan (Google) wrote: Does anyone have a stack trace if an exception is thrown? Will deploy work after a rollback? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B 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.
[appengine-java] First integration save fails with grails app-engine plugin
Hi all, I am using grails 1.3.5 and the latest app-engine and gorm-jpa plugins. I created a User class and a UserIntegrationTest to test it. However, I am getting a error in the reports: Could not open JPA EntityManager for transaction; nested exception is java.lang.NullPointerException: No API environment is registered for this thread. org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.NullPointerException: No API environment is registered for this thread. Caused by: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 108) at com.google.appengine.api.datastore.BaseDatastoreService.beginTransaction(BaseDatastoreService.java: 125) at org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.beginTransaction(RuntimeExceptionWrappingDatastoreService.java: 209) at org.datanucleus.store.appengine.jpa.DatastoreEntityTransactionImpl.begin(DatastoreEntityTransactionImpl.java: 49) at _GrailsTest_groovy$_run_closure4.doCall(_GrailsTest_groovy: 269) at _GrailsTest_groovy$_run_closure4.call(_GrailsTest_groovy) at _GrailsTest_groovy$_run_closure2.doCall(_GrailsTest_groovy: 226) at _GrailsTest_groovy $_run_closure1_closure21.doCall(_GrailsTest_groovy:185) at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy: 172) at TestApp$_run_closure1.doCall(TestApp.groovy:101) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:590) at gant.Gant.executeTargets(Gant.groovy:589) Domain class is defined as: package com.jothub import javax.persistence.*; // import com.google.appengine.api.datastore.Key; @Entity class User implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Long id static constraints = { id visible:false } @Basic String emailAddress; @Basic String password; } The Test is defined as: package com.jothub import grails.test.* class UserIntegrationTests extends GrailsUnitTestCase { protected void setUp() { super.setUp() } protected void tearDown() { super.tearDown() } void testFirstSave() { User user = new User(emailAddress: 't...@abc.com', password: 'secret') assertNotNull user.save() assertNotNull user.id User foundUser = User.get(user.id) assertEquals 't...@abc.com', foundUser.emailAddress } -- 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] Dev App Server closing connection prematurely
Hi all, I'm having an issue where the dev app server is sometimes truncating HTTP responses, with the HTTP client seeing Connection reset by peer. The server will write a certain number of bytes to the client connection and then hangup mid-transfer. For example I am expecting a response of length 153588 bytes and only 74256 bytes are read by the client before the connection is reset. The 'cutoff point' (the point in the data where the connection drops) varies, sometimes 74256 bytes are transferred, sometimes123280. I am running the server from ant on the command line, on OSX 10.6, though I have seen it fail using the Eclipse plugin too. I get no error messages, core dumps or anything like that I can see. My servlet is fairly simple. It is stateless, fetching an XML document over HTTP, applying some transformations to it and serving the result. Here's a simplified version - I'm not doing anything fancy: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/xml); String output = translateDocument(request.getParameter(docURL)); response.setContentLength(output.length()); response.getWriter().write(output); } Totally mystified! Any ideas? Thanks! Keith -- 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] Mapper Blobstore bytes read limit
We discovered a bug. We're not reading in the entire blob, but we are reading in far too much data. Fred has a fix waiting in the rafters. I'll post again when it's been pushed. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Thu, Nov 4, 2010 at 2:36 AM, Cyrille Vincey crll...@gmail.com wrote: Not a lot of interesting stuff to say : 1. My code is quite as simple as your sample code: the only real difference is that I create 2 parent/child entities in a row for one given csv line entry. 2. My csv file contains 4.3 million lines. 2. I launched the mapper job with 10 shards. 3. worker-attempt-XXX tasks had 20 retries each in average. 4. The blobstore bytes read quota (100 Go) got reached within the first 3 hours. 5. Est. 10% of the entities where actually created after 24h (with my previous non-blob-based mapper job, those 4.3 million entities where created within 1 day) 6. Log does not reveal anything interesting. I am currently running a new test with a 500,000 lines csv file (20 Mb file). Performance looks better. To me, blob file size may have an influence on the mapper performance. If you need more details, let me know. From: Ikai Lan (Google) ikai.l+gro...@google.com Reply-To: google-appengine-java@googlegroups.com Date: Wed, 3 Nov 2010 12:22:10 -0700 To: google-appengine-java@googlegroups.com Subject: Re: [appengine-java] Mapper Blobstore bytes read limit This behavior doesn't seem right. No, the entire blob should not be getting read. We'll look into this. Do you have any more details? Could tasks be getting retried? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Tue, Nov 2, 2010 at 9:42 AM, Cyrille Vincey crll...@gmail.com wrote: I've been testing Ikai's bulkload mapper (see url below) with a pretty big csv file (200 Mb). It works great, and I encourage most of you to consider implementing this for entity uploads. Yet, I do face one last issue with an unexpected quota : blobstore bytes read. This quota cannot be tuned via the billing settings, and it's not clear whether it limits the speed of my process or not when it's reached. See ? Yep, it's a lot of bytes read… Could someone confirm that the blob csv file is *NOT* fully fetched each time the mapper iterates on a new line ? (ikai's post) http://ikaisays.com/2010/08/11/using-the-app-engine-mapper-for-bulk-data-import / -- 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. -- 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. Capture d¹écran 2010-11-02 à 17 .17.25.png
[appengine-java] No Billing - No Blobstore
I am developing an app and have been working WELL within all development quotas for a while now (almost all of them show 0%). I recently coded image upload and use of blobstore for image storage, only to find that when attempting to deploy to production I get the following run-time exception: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) ... So, I understand that there is NO Blobstore for free within development quotas? If I enable billing, will I be charged for Blobstore API use ONLY with other in-quote usage remaining free, or will billing be switched on for everything? The message seems clear, but it's a major hurdle for us, and so I just want to make sure I've got it right. This might be the trigger for me to investigate S3 and EC2 Andrew -- 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] No Billing - No Blobstore
You must enable billing. Blobstore is a billing only feature. You won't be charged unless you exceed quotas, however. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Tue, Nov 16, 2010 at 2:53 PM, andrew aute...@gmail.com wrote: I am developing an app and have been working WELL within all development quotas for a while now (almost all of them show 0%). I recently coded image upload and use of blobstore for image storage, only to find that when attempting to deploy to production I get the following run-time exception: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) ... So, I understand that there is NO Blobstore for free within development quotas? If I enable billing, will I be charged for Blobstore API use ONLY with other in-quote usage remaining free, or will billing be switched on for everything? The message seems clear, but it's a major hurdle for us, and so I just want to make sure I've got it right. This might be the trigger for me to investigate S3 and EC2 Andrew -- 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: Can't deploy again despite fix announcement
Strange, I could have sworn my web.xml was generated by the Google Plugin for Eclipse. Either way, we are looking into ways to either warn users or just bypass the check if it times out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Tue, Nov 16, 2010 at 10:31 AM, came carsten.immome...@googlemail.comwrote: works for me as well. thx On 16 Nov., 01:46, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: Okay, just got confirmation that the reason this isn't working intermittently is related to having DOCTYPE in web.xml. Do you guys have a line in your web.xml that looks like this? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; If so, can you replace it with this? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web= http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation= http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd version=2.5 The reason this issue occurs is that a deploy will attempt to retrieve the DTD, but if the server is overloaded or not responsive, the deploy operation will just time out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Mon, Nov 15, 2010 at 3:09 PM, Artem artem...@gmail.com wrote: Here it is:http://paste.pocoo.org/show/291784/ On 11/16/2010 01:29 AM, Ikai Lan (Google) wrote: Does anyone have a stack trace if an exception is thrown? Will deploy work after a rollback? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B 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.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] Server Error when attempting to delete specific version
What's your application ID? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Sat, Nov 13, 2010 at 4:50 PM, Ben bgrabkow...@gmail.com wrote: Hello, I am getting an error when trying to delete version 9 of my application. I can add/delete other version without an issue. If I try to delete version 9 I get: A server error has occurred. Any help would be greatly appreciated. -- 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: Does that datastore mains sort order for list properties?
I've read that too, but I've been using JDO on AppEngine for a year now and my properties that are Lists have maintained their order and I have not seem them deviate, but I have read that warning in the docs so I don't know if this can be guaranteed. Sets however by their very nature have no ordering and can change. On Nov 15, 7:21 am, Maxim Veksler ma...@vekslers.org wrote: Hello, We are using the low level API, it unclear from the documentation if the sort order is maintained in list properties? So for example, if I serialize int[] intArray = { 1, 2, 3}, can I always expect to receive back {1 , 2, 3} or is it possible that the order will be randomized? Thank you, Maxim. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Can't deploy again despite fix announcement
Hi Ikai, The plugin still generates the follwoing for a new project in version 1.3.8 : ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; So, I guess it should be changed. regards didier On Nov 17, 1:20 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Strange, I could have sworn my web.xml was generated by the Google Plugin for Eclipse. Either way, we are looking into ways to either warn users or just bypass the check if it times out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Tue, Nov 16, 2010 at 10:31 AM, came carsten.immome...@googlemail.comwrote: works for me as well. thx On 16 Nov., 01:46, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: Okay, just got confirmation that the reason this isn't working intermittently is related to having DOCTYPE in web.xml. Do you guys have a line in your web.xml that looks like this? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; If so, can you replace it with this? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web= http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation= http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/we... version=2.5 The reason this issue occurs is that a deploy will attempt to retrieve the DTD, but if the server is overloaded or not responsive, the deploy operation will just time out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Mon, Nov 15, 2010 at 3:09 PM, Artem artem...@gmail.com wrote: Here it is:http://paste.pocoo.org/show/291784/ On 11/16/2010 01:29 AM, Ikai Lan (Google) wrote: Does anyone have a stack trace if an exception is thrown? Will deploy work after a rollback? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B 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.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: How to write a JPA unit test for GAE?
ok i finally got this sorted. it seems that i was making life too difficult by making tests transactional. by removing the @transactional on unit tests everything works nice and simple. thanks for your help -lp On Nov 15, 4:51 pm, lp lucio.picc...@gmail.com wrote: hi vikas thanks for the spring config. i got the same config but still cant get aunittestto persist data, and then execute a query on it. i noticed that your config does not use bean class=org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor / how does the entitymanager get injected? have u got the code available? i cant see what i am doing wrong! -lp On Nov 15, 3:02 pm, Vikas Hazrati vhazr...@gmail.com wrote: hi lucio, I have added the requested information as an answer to your comment on the blog post. http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-a... regards | Vikaswww.inphina.com On Nov 15, 4:23 am, lp lucio.picc...@gmail.com wrote: hi vikas nice blog u have there. However i cant reproduce your results theunit testwith spring. can u post your spring config to see what i have done wrong. thanks -lp On Nov 13, 3:58 pm, Vikas Hazrati vhazr...@gmail.com wrote: You could get more information on the way we set up our testing infra here http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-a... Regards | Vikaswww.inphina.com -- 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] Best sort solution for merge-join queries?
My situation: I have a list of Products with a price and other indexed properties(not the same ones on each product), and I query them using merge-join. I really need to get the results of the merge-join sorted by price. Any advice? Good in-memory solutions are welcome Thanks in advance -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException:
Hi Thufir, I do not use any plug-in with NetBeans. (I use Apache Ant scripts for enhancing and for building.) Cheers, Ian On Nov 16, 11:35 am, Thufir hawat.thu...@gmail.com wrote: Ian, which plugins do you use with netbeans? -Thufir -- 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: Idempotence multiple task execution
Appreciate the discussion here. The motivation behind it is not just curiosity - it is very hard to build a long running pipeline without handling correctly all error cases. For me failed tasks retry in 20 sec. Seen up to 3 retry with flat 20 sec backoff each time. I would have preferred this to be a option of the taskqueue. My app is a user facing game so 20sec delay is annoying. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] google app engine the EU data protection act
Hi guys, I was just wondering whether google app engine datastore made any accommodation for the EU data protection act - specifically the principal: Personal data shall not be transferred to a country or territory outside the European Economic Area unless that country or territory ensures an adequate level of protection for the rights and freedoms of data subjects in relation to the processing of personal data. The principal and the data protection act is obligatory for any organisation operating within the EU. I had a quick search on the app engine site but couldn't see anything mentioning it..? -- 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: google app engine the EU data protection act
I had asked similar question some time ago. So far the unspoken answer would be not collect personal data. On Nov 16, 10:14 am, aaron aaron.jerl...@gmail.com wrote: Hi guys, I was just wondering whether google app engine datastore made any accommodation for the EU data protection act - specifically the principal: Personal data shall not be transferred to a country or territory outside the European Economic Area unless that country or territory ensures an adequate level of protection for the rights and freedoms of data subjects in relation to the processing of personal data. The principal and the data protection act is obligatory for any organisation operating within the EU. I had a quick search on the app engine site but couldn't see anything mentioning it..? -- 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] Log is missing in console ? when I changed from App engine 1.3.5 to 1.3.8
Hi, I am using Eclipse 3.6, with gwt 2.1 Also I have changed the google app engine version 1.3.5 to 1.3.8. Ever think works fine except the log is missing when server side logged. I am getting in console like this ... Initializing AppEngine server 2010-11-16 12:14:23.609:INFO::Logging to STDERR via org.mortbay.log.StdErrLog 2010-11-16 12:14:24.093:INFO::jetty-6.1.x [WARN] 2010-11-16 17:44:24 IST 2010-11-16 12:14:25.718:INFO::Started selectchannelconnec...@0.0.0.0: I will be grateful If you got any suggestion over this. * Regards Suresh Babu G * -- 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: I Need A Push In The Right Direction - Basic Design
Hello Robert, I am certainly having trouble explaining this one. I am using the Eclipse IDE with the Google AppEngine Plugin. When I create a New Web Application Project an AppEngine Application is generated. This includes one HTML page some Java code that implements the RPC services and a couple of XML files that establish the Servelet Mapping and Entry point for the Application. I think that I have some (not great) idea of what all of this is doing. In the onModuleLoad of the EntryPoint for the generated Application a Submit button is added to the only HTML page, A ClickHandler with a ClickEvent is added to ‘listen’ for the user to Click on the Submit button. The sendButtonContainer is defined in the one and only HTML file. This is in the onModuleLoad on the EntryPoint class. final Button sendButton = new Button(Send); RootPanel.get(sendButtonContainer).add(sendButton); class MyHandler implements ClickHandler, KeyUpHandler { public void onClick(ClickEvent event) { sendNameToServer(); } public void onKeyUp(KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { sendNameToServer(); } } } My Launch button (the equivalent of the Submit button) is not on the first and only page of the Application. I just can’t seem to grasp the concept of how to ‘listen’ for my Launch button on the HTML page that it is defined in. Thanks, Raney -- 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: google app engine the EU data protection act
We should be fine. See this issue for details: http://code.google.com/p/googleappengine/issues/detail?id=45 /Chris On 16 Nov., 10:14, aaron aaron.jerl...@gmail.com wrote: Hi guys, I was just wondering whether google app engine datastore made any accommodation for the EU data protection act - specifically the principal: Personal data shall not be transferred to a country or territory outside the European Economic Area unless that country or territory ensures an adequate level of protection for the rights and freedoms of data subjects in relation to the processing of personal data. The principal and the data protection act is obligatory for any organisation operating within the EU. I had a quick search on the app engine site but couldn't see anything mentioning it..? -- 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: What is latest for in version URL
The latest is also contained in the Live URI-links that are displayed in the versions section of the GAE admin console. I have also noticed that at least in our case the versions are not served (i.E. the DNS cannot be resolved, although the Live URI-link is available, and they can also be set as default) if the version number is 10 (I assume this applies to any two-digit version numbers). Without wanting to dig into the documentation: Does this also apply to the URLs without the latest? We currently round-robin version numbers between 1 and 9, which is not too bad, but from a purely theoretical point of view it would be somewhat nicer to have unique version numbers (and, of course, an unlimited supply of them). -- 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] Django and Blobstore
After a weekend fighting with Django and Blobstore, I could make it work with this: http://appengine-cookbook.appspot.com/recipe/blobstore-get_uploads-helper-function-for-django-request/ I can get the BlobInfo(img) uploaded, but the other fields in my form('txtDesc' and 'txtOne' are missing: form action={{form_action}} method=POST enctype=multipart/form-data Image:input type=file name=imgbr/ Desc: textarea name=txtDesc/textareabr/ Text: input type=text name=txtOne/text input type=submit value=OK / /form And debbuging, I can see that my request.POST is empty: request.POSTQueryDict: {} Am I missing something? 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] Export application datastore
I'm about to embark upon developing a website in appengine that will collate user generated reviews. How easy would it be to export this from Google in case I wanted to host it elsewhere in the future? I'm new to this, so technical ability is quite low for now, but will hopefully increase quickly! 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: Blobstore upload is failing with mysterious signature verification failed redirect
That tweet above was mine. We've been seeing this message pop up on and off on http://gri.pe and I've been working on solutions for the last few days. I've seen this redirect happen if your uploader modifies the URL at all. This includes appending anything to the path or adding a query string. We've also been seeing otherwise valid blobstore upload URLs get invalidated on occasion on http://gri.pe, but I haven't done enough testing to rule out some sort of expiry/timeout. The plupload library works great for uploading to the blobstore, but by default it adds ?name= to the upload URL, breaking the blobstore URL signature and causing that error. I've got a patched version up on our site that only supports the html4 and html5 upload methods, but is verified tested across all browsers against the blobstore upload URLs in prod and dev. If you want, I can dig out the unminified source too: http://www.gri.pe/static/plupload/plupload.full.min.js On Nov 15, 9:26 am, Gijs (Cloudwise) gstijn...@gmail.com wrote: I got the same problems using the blobstore. All I want is uploading files to the blobstore using AJAX(-like) functionallity. I triedhttp://valums.com/ajax-upload/andhttp://jquery.malsup.com/form/#file-upload both javascript plugings for jQuery. All works fine in the dev environment, but in production it simply doesn't work. While digging in the response I found this signature verification failed message. Anyone any idea? On 13 nov, 22:29, Michael Bayne samskiv...@gmail.com wrote: I just added upload support to my app using the BlobStore. Everything works peachily in the dev environment, but now that I'm trying to use the functionality in production, uploads are resulting in a redirect to http://www.google.com/search?q=signature+verification+failed; which is rather mysterious to say the least. Not that those results are visible in my app, since I am doing the uploading via GWT, but when I look at the results manually, they don't yield anything particularly informative. The only thing I've been able to find on the Interwebs about this at all is one guy's tweet saying: If you find your AppEngine app on upload randomly redirecting people to a search for signature verification failed, that's a blobstore bug This was from a few days ago. No indication of any workarounds, or if perhaps this might get fixed. Is the blobstore just broken right now? -- 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] Export application datastore
Hi Steve, http://code.google.com/intl/nl/appengine/docs/python/tools/uploadingdata.html#Editing_the_Configuration_File gr wim On Tue, Nov 16, 2010 at 4:52 PM, Steve L steve.li...@gmail.com wrote: I'm about to embark upon developing a website in appengine that will collate user generated reviews. How easy would it be to export this from Google in case I wanted to host it elsewhere in the future? I'm new to this, so technical ability is quite low for now, but will hopefully increase quickly! 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. -- gr wdo Demo free E-business: https://e-comm.appspot.com Wim den Ouden Gae (cloud) based apps -- 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: Django and Blobstore
Yeah, I was missing. I should be using 'get_uploads(request, populate_post=True)' instead of 'get_uploads(request)' #RTFM --Rafael On 11/16/2010 01:51 PM, Rafael Nunes wrote: After a weekend fighting with Django and Blobstore, I could make it work with this: http://appengine-cookbook.appspot.com/recipe/blobstore-get_uploads-helper-function-for-django-request/ I can get the BlobInfo(img) uploaded, but the other fields in my form('txtDesc' and 'txtOne' are missing: form action={{form_action}} method=POST enctype=multipart/form-data Image:input type=file name=imgbr/ Desc: textarea name=txtDesc/textareabr/ Text: input type=text name=txtOne/text input type=submit value=OK / /form And debbuging, I can see that my request.POST is empty: request.POSTQueryDict: {} Am I missing something? Thanks, -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Blobstore upload is failing with mysterious signature verification failed redirect
On Tue, Nov 16, 2010 at 7:53 AM, Matt Mastracci matt...@mastracci.com wrote: I've seen this redirect happen if your uploader modifies the URL at all. Aha, that's exactly the information I needed. I'm tacking parameters onto the URL, but I'll move them into hidden form fields. Thanks for the info! -- m...@samskivert.com -- 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't move down then up the directory tree for inserting of html files with {% include %}
The template code between 0.96 and 1.1.2 is not changed (much). The include template node is looking relative to the directories in django.conf.settings.TEMPLATE_DIRS Find out what is in this list or tuple and write the include path relative to one of the given directories. 2010/11/14 Brian martinair.ameri...@gmail.com: Thanks for the help. I'm using Python 2.5 and Django Template 1.1 on app engine I can't seem to move down the dir tree for inserting of html files using {% include file %} statement Works just fine to any where up the tree, i can go up 3,4 levels just fine, but can not go down even 1 {% include ../LOGO.html %} Sample dir structure: root/lib/LOGO.html (1 level down then 1 level up ) root/LOGO.html (1 level down) root/main/home.html --tried: {% include ../LOGO.html %} ,{% include root/lib/LOGO.html %} , {% include /root/lib/logo.html %} root/main/start.py I changed TEMPLATE_DIRS setting 20 ways. 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. -- 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: Can't move down then up the directory tree for inserting of html files with {% include %}
Thanks for the info. After more testing if I delete this statement: --- os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from google.appengine.dist import use_library use_library('django', '1.1') --- I can do {% include ../LOGO.html %} and it will insert from dir below. if I have it in the .py calling the html file with the include code then nothing. Thanks again. Brian On Nov 16, 11:15 am, djidjadji djidja...@gmail.com wrote: The template code between 0.96 and 1.1.2 is not changed (much). The include template node is looking relative to the directories in django.conf.settings.TEMPLATE_DIRS Find out what is in this list or tuple and write the include path relative to one of the given directories. 2010/11/14 Brian martinair.ameri...@gmail.com: Thanks for the help. I'm using Python 2.5 and Django Template 1.1 on app engine I can't seem to move down the dir tree for inserting of html files using {% include file %} statement Works just fine to any where up the tree, i can go up 3,4 levels just fine, but can not go down even 1 {% include ../LOGO.html %} Sample dir structure: root/lib/LOGO.html (1 level down then 1 level up ) root/LOGO.html (1 level down) root/main/home.html --tried: {% include ../LOGO.html %} ,{% include root/lib/LOGO.html %} , {% include /root/lib/logo.html %} root/main/start.py I changed TEMPLATE_DIRS setting 20 ways. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=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: Idempotence multiple task execution
I like the idea of configurable task-queue retry (or back-off) rates. If you submit an issue for it let us know so we can star it. Robert On Tue, Nov 16, 2010 at 03:06, vlad vlad.troyan...@gmail.com wrote: Appreciate the discussion here. The motivation behind it is not just curiosity - it is very hard to build a long running pipeline without handling correctly all error cases. For me failed tasks retry in 20 sec. Seen up to 3 retry with flat 20 sec backoff each time. I would have preferred this to be a option of the taskqueue. My app is a user facing game so 20sec delay is annoying. -- 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] How to kill a task queue job programatically ?
How to kill a task queue job programatically ? I am using a chained task approach but many a times the chains branch off into multiple parallel task chains due to TransientError etc, for eg - starting with just 2 tasks (task chains), today I saw them multiply into 4 task chains (total of 8 tasks). I will now start using named tasks (as suggested in my some other posts) but is there a way of accessing the tasks running / enqueued in a queue and killing them using program code ?? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: What is latest for in version URL
Hi Remigius, I do not get your issue, app versions are alphanumeric strings. I have apps with version numbers well into two and three digit numbers. I know some other people use their VCS's identifier (revision number or changeset id). Others use words like 'dev' and 'prod'. I've had apps who's version number was 10, they served without problems. What do you mean the DNS can not be resolved? Robert On Tue, Nov 16, 2010 at 10:28, Remigius remigius.stal...@gmail.com wrote: The latest is also contained in the Live URI-links that are displayed in the versions section of the GAE admin console. I have also noticed that at least in our case the versions are not served (i.E. the DNS cannot be resolved, although the Live URI-link is available, and they can also be set as default) if the version number is 10 (I assume this applies to any two-digit version numbers). Without wanting to dig into the documentation: Does this also apply to the URLs without the latest? We currently round-robin version numbers between 1 and 9, which is not too bad, but from a purely theoretical point of view it would be somewhat nicer to have unique version numbers (and, of course, an unlimited supply of them). -- 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: App engine down time or problem with CRON requests
appid is gsrmon. More outages today, from more outages today 18:14-18:40 UTC and 17:16-17:35 UTC. This is still with a two-minute cron task. The jobs are completely dropped, there are not a number of make-up requests sent once the system recovers. Honestly I'm not even sure that would be a great thing to do. I am specifically throttling cron- issued requests at 1 or 2 minute intervals, if 30 minutes worth of crons are missed, having a burst of 30 requests doesn't really help. chris On Oct 27, 1:54 am, Mickey Kataria (Google Employee) mic...@google.com wrote: Thanks for the reports, we're looking into it. In general, if there's an app engine issue that causes cron to miss a job, it will be executed once the system recovers, i.e. jobs are not entirely dropped. The exact time the task will execute depends on the frequency and scheduling. If you're seeing an issue where a task was completely dropped and never executed, please provide details about your app id and what you're seeing. Thanks. On Oct 24, 11:53 pm, Chris Prinos chrispri...@gmail.com wrote: Ok thanks for confirming you saw this as well. Looks like the same thing occured today, same time frame as before. Chris On Oct 22, 11:02 pm, sodso sodhisoluti...@gmail.com wrote: Yes, same happened for me as well, looks like CRON jobs arent reliable, so i have decided to implement double-checking logic to check whether the job has run or not by using a datatstore / memcache record On Oct 22, 7:51 pm, Chris Prinos chrispri...@gmail.com wrote: Anyone know if there was scheduled down time 10/22/2010 around 12:30AM PDT? None of my cron-initiated requests were triggered from about 12:33 AM PDT to 1:05 AM PDT, but there were no errors in the logs. -- 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: I Need A Push In The Right Direction - Basic Design
Hi Raney, Ask in the appengine-java list. I am sure they can hep you. Robert On Tue, Nov 16, 2010 at 07:31, RRRaney rrrsyst...@gmail.com wrote: Hello Robert, I am certainly having trouble explaining this one. I am using the Eclipse IDE with the Google AppEngine Plugin. When I create a New Web Application Project an AppEngine Application is generated. This includes one HTML page some Java code that implements the RPC services and a couple of XML files that establish the Servelet Mapping and Entry point for the Application. I think that I have some (not great) idea of what all of this is doing. In the onModuleLoad of the EntryPoint for the generated Application a Submit button is added to the only HTML page, A ClickHandler with a ClickEvent is added to ‘listen’ for the user to Click on the Submit button. The sendButtonContainer is defined in the one and only HTML file. This is in the onModuleLoad on the EntryPoint class. final Button sendButton = new Button(Send); RootPanel.get(sendButtonContainer).add(sendButton); class MyHandler implements ClickHandler, KeyUpHandler { public void onClick(ClickEvent event) { sendNameToServer(); } public void onKeyUp(KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { sendNameToServer(); } } } My Launch button (the equivalent of the Submit button) is not on the first and only page of the Application. I just can’t seem to grasp the concept of how to ‘listen’ for my Launch button on the HTML page that it is defined in. Thanks, Raney -- 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: App engine down time or problem with CRON requests
btw, I have logged these also as issues 3495, 4054. The first of those was closed when the acute issue of 1 minute crons not working was fixed, but the larger issue of cron failures remains. Since keeping track from about November 6th, I've seen six distinct outage periods with my app. thanks, chris On Nov 16, 1:49 pm, Chris Prinos chrispri...@gmail.com wrote: appid is gsrmon. More outages today, from more outages today 18:14-18:40 UTC and 17:16-17:35 UTC. This is still with a two-minute cron task. The jobs are completely dropped, there are not a number of make-up requests sent once the system recovers. Honestly I'm not even sure that would be a great thing to do. I am specifically throttling cron- issued requests at 1 or 2 minute intervals, if 30 minutes worth of crons are missed, having a burst of 30 requests doesn't really help. chris On Oct 27, 1:54 am, Mickey Kataria (Google Employee) mic...@google.com wrote: Thanks for the reports, we're looking into it. In general, if there's an app engine issue that causes cron to miss a job, it will be executed once the system recovers, i.e. jobs are not entirely dropped. The exact time the task will execute depends on the frequency and scheduling. If you're seeing an issue where a task was completely dropped and never executed, please provide details about your app id and what you're seeing. Thanks. On Oct 24, 11:53 pm, Chris Prinos chrispri...@gmail.com wrote: Ok thanks for confirming you saw this as well. Looks like the same thing occured today, same time frame as before. Chris On Oct 22, 11:02 pm, sodso sodhisoluti...@gmail.com wrote: Yes, same happened for me as well, looks like CRON jobs arent reliable, so i have decided to implement double-checking logic to check whether the job has run or not by using a datatstore / memcache record On Oct 22, 7:51 pm, Chris Prinos chrispri...@gmail.com wrote: Anyone know if there was scheduled down time 10/22/2010 around 12:30AM PDT? None of my cron-initiated requests were triggered from about 12:33 AM PDT to 1:05 AM PDT, but there were no errors in the logs. -- 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] Static Files on JSP
Howdy, I got a JSP that references some JS and CSS files, but seems that those JS and CSS files are being treated by the Welcome handler, because it is configured to catch / (see web.xml) Therefore, I can't open the JS and CSS files... APPENGINE-WEB.XML ?xml version=1.0 encoding=utf-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0; application/application version1/version !-- Configure java.util.logging -- system-properties property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ /system-properties static-files include path=/**.css expiration=4d 5h / include path=/**.js expiration=4d 5h / /static-files /appengine-web-app WEB.XML ?xml version=1.0 encoding=utf-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 servlet servlet-nameBuritiNav/servlet-name servlet-classburitinav.BuritiNavServlet/servlet-class /servlet servlet-mapping servlet-nameBuritiNav/servlet-name url-pattern/buritinav/url-pattern /servlet-mapping servlet servlet-nameWelcome/servlet-name servlet-classburitinav.WelcomeServlet/servlet-class /servlet servlet-mapping servlet-nameWelcome/servlet-name url-pattern//url-pattern /servlet-mapping /web-app -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Novice getting started: advice on getting to grips with App Engine
So how do you have access to a book that isnt even in print yet? Sounds like more of a boast than a recommendation. On Nov 14, 3:37 pm, Derrick Schneider derrick.schnei...@gmail.com wrote: I actually found the upcoming Code in the Cloud from Pragmatic Programmers to be a good starting point. It won't give you a ton of depth, but it does give you some examples that get you well grounded for the rest of the AppEngine experience. On Sun, Nov 14, 2010 at 12:08 PM, Robert Kluin robert.kl...@gmail.comwrote: For learning Python the docs, like the tutorial, at python.org are very useful. Dive Into Python is a pretty good reference. http://docs.python.org/tutorial/ http://diveintopython.org/ If you are trying to get a handle on App Engine read through some of the reference. http://code.google.com/appengine/docs/python/overview.html You might want to focus on the webapp and datastore sections: http://code.google.com/appengine/docs/python/tools/webapp/ http://code.google.com/appengine/docs/python/datastore/ There are many good resources for learning. If you have specific questions, or topics that are confusing post back to the list and I am sure people will offer suggestions about resources they find / found helpful. Robert On Sun, Nov 14, 2010 at 14:48, Aaron Jerling aaron.jerl...@gmail.com wrote: Hi guys, I've got an idea for a web app that I'd love to put together. I started off (last week) learning PHP and SQL until someone pointed me towards app engine as a better solution / platform to launch my project. I have no python experience, limited html experience and despite going through the app engine python tutorial seemed to have 'missed' the keys to getting started. I do have programming experience (scientific languages like matlab, labview etc.), and spent the last few days working through How To Learn Python The Hard Way and have gotten through it alright. But I've got 20 pages left (out of 160) and still have no real concept on how to get started. Are there any good resources, tips or whatever that you know of to get me up to speed? cheers. -- 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Writer. Programmer. Puzzle Designer.http://www.obsessionwithfood.com -- 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] Potential GAE Usage
Folks, I've been using GAE for a couple of weeks now and its a great setup and I've taught myself Python so things are very interesting but I'm quickly becoming aware of the edges and how best to use GAE. I've used GAE for a pet project at my current work place, but could I use it for a consulting sideline? I don't think the business version would suit as these app/sites could be for different clients and this is where the fuzzy line is coming into play. With web apps / websites becoming increasingly blurred, it appears that GAE may be suitable to build e-commerce sites, web apps but I wouldn't be confident enough that I could build this info a business and rely on GAE as they have certain restrictions. Would this mean I need to look at a AWS setup (more work setting the box up etc, but more control) rather than GAE. I would be interested to hear peoples opinions on where GAE sits in the grand scheme of things and would google allow me to develop apps / websites on GAE rather than going to a hosting company or amazon and renting a VPS or cloud equivalent. Cheers -- 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: How to integrate Payment module with google app engine
I recently integrated a PayPal Website Payments Pro account with our AppEngine app, using recurring profile for subscriptions. An issue I have is that I can sometime hit the 10s limit of URLFetch which lead to recurring profiles being registered over at PayPal but no way for my AppEngine app to know about them. This in turn can lead to double billing. Were you guys able to solve that problem elegantly? (My solutions are a bit hacky.) Cheers, Philippe -- 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] web service
Hello, I have a web application developed using Java on Google App Engine. I have the need to expose data from this application to an iphone app. iPhone app needs the data in XML format so it can parse and use the same. What is the best method for me to achieve this? Please advice. 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: How to kill a task queue job programatically ?
Basically, the same functionality as available in Task Queues admin page. i.e. list of tasks currently in a queue purge/delete/pause queue delete tasks can we do the above using code ? -- 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] Hide forms on page then display form based on option selection
Hi Cal, This isn't really an App Engine question. Look into the css display property. http://www.w3schools.com/css/css_display_visibility.asp http://www.w3schools.com/css/pr_class_display.asp Robert On Tue, Nov 16, 2010 at 03:23, Cal donkfest2...@gmail.com wrote: I want to have several forms on one page that are not displayed until a selection is made from the category drop down box. The form displayed will depend on the selection made. Here is the code I have so far. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta content=text/html; charset=utf-8 http-equiv=Content-Type / titleAdmin Console Assets/title script type=text/javascript src=multiValueForm.js/script script type=text/javascript src= validationBlankName.js/script /head body label id=Label1ADMINISTRATOR CONSOLE - ADD AND EDIT ASSETSbr / /label form action= method=post style=border-style: ridge; width: 311px; height: 37px; name=myform table tr tdSelect Category:/tdtd select name=category onchange=set_sub_category() style=width: 157px option selected=selected value=selectSelect an Option/option option value=addAdd Category/option option value=districtCouncil District/option option value=regionRegion/option option value=pomPOM/option option value=proptypeProperty Type/option option value=assetcatAsset Category/option option value=assettypeAsset Type/option option value=propertyProperty/option option value=assetAsset/option /select /td /tr /table /form form style=display:none action= admin_console_new.html onsubmit=return (validate_form(this) validate_list(this)) method=post style=border-style: ridge; border-width: medium; height: 154px; width: 346px; name=district table style=height: 86px tr tdSelect District Value:/tdtd select name=district option selected=selectedSelect an Option/option optionAdd Council District/option /select /td /trtr tdEnter District Name:/tdtd input name=name type=text/ /td /trtr tdEnter Description:/tdtdtextarea name=description/ textarea /td /trtr tdinput type=submit value=Submit name=Submit3 /input type=reset value=Reset / /td /tr /table /form -- 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] performance since maintenance
Everything was great after maintenance! But is it just me, or do things seem to be slipping away? I am seeing timeouts on several apps, along with slower cold starts and increased latency since the maintenance... anyone else? -- 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: Datastore to reuse indexes
Thanks guys. Also thanks for the link! That was a really good reading. Looks like I need to change datamodel to avoid inequality filters. Unfortunately that will generate even more data, but I do not see any other workaround to implement the requirement. BTW, what is more efficient for searching with multiple equality filters on same property? - entity with multivalue property having 50 values in it or - lots of small entities with single value property (e.g. above 50 values property exploded to 50 small entities) On Nov 14, 8:41 pm, Stephen Johnson onepagewo...@gmail.com wrote: The merge-join can only handle equality and not inequality except in the case where the inequality is used with the keys. So that is why this query would need an index and the ones without wouldn't need it. Also, if you read up on merge join if it fails to return the query results in a timely manner it will result in needing an index so I assume sometimes it could work and sometimes fail. I've heard they might have made it a little less strict in this aspect but not certain. You may want to check out this book by Dan Sanderson. The link below should take yo to the section on merge join. He's got a really good explanation of it. http://books.google.com/books?id=6cL_kCZ4NJ4Cpg=PA149lpg=PA149dq=z... On Sun, Nov 14, 2010 at 9:26 AM, anatoliy anatoliy.arteme...@gmail.comwrote: Here is more info: error appears only in case I mix equality inequality operator on same property. For example: SELECT * FROM IndexRecord WHERE nss = 'don' AND nss = '_do' AND nss '_dp' gives the exception. Strange, though, that via admin console this query does not show any error. But resultset is empty even though it should bring results! On Nov 13, 11:48 am, anatoliy anatoliy.arteme...@gmail.com wrote: I have an entity with indexed property nss which is a collection. Making query like (produced via Query.toString()): SELECT __key__ FROM IndexRecord WHERE nss = qwe AND nss = wer AND nss = ert AND nss = rty AND nss = tyu causes randomly (e.g. it works occasionally) exceptions no matching index found.. with indexes: datastore-index kind=IndexRecord ancestor=false source=manual property name=nss direction=asc/ property name=nss direction=asc/ property name=nss direction=asc/ /datastore-index datastore-index kind=IndexRecord ancestor=false source=manual property name=nss direction=asc/ property name=nss direction=asc/ property name=nss direction=asc/ property name=nss direction=asc/ /datastore-index I expected that datastore is able to reuse same index for a property if multiple filters specified. SDK does not generate index declarations in the datastore-indexes-auto.xml file. Strange thing that running that query from console works ok: SELECT * FROM IndexRecord WHERE nss = 'qwe' AND nss = 'wer' AND nss = 'ert' AND nss = 'rty' AND nss = 'tyu' AND nss = 'tydu' -- 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] performance since maintenance
Anecdotally, yes. It definitely does not seem as chipper. On Nov 16, 2010, at 2:51 PM, Jamie H wrote: Everything was great after maintenance! But is it just me, or do things seem to be slipping away? I am seeing timeouts on several apps, along with slower cold starts and increased latency since the maintenance... anyone else? -- 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: performance since maintenance
Yup, just look at the spikes http://code.google.com/status/appengine/detail/datastore/2010/11/16#ae-trust-detail-datastore-query-latency Google whats going on with Cloud Portability? http://code.google.com/cloudportability/ From the article: Using the Eclipse-based SpringSource Tool Suite, developers can now choose to deploy their application on Google App Engine for Business, a VMware environment (your vSphere infrastructure, your choice of vCloud partners, or VMforce), or other infrastructure such as Amazon EC2. We call this cloud portability. When will we be able to deploy our apps to alternate infrastructures? Our businesses are suffering, I know Google as a business isnt suffer and they also dont have any core products running on App Engine, maybe you guys could put a core product product on Google App Engine, (maybe Ad Words?) so you can suffer along with us. On Nov 16, 3:27 pm, Joshua Smith joshuaesm...@charter.net wrote: Anecdotally, yes. It definitely does not seem as chipper. On Nov 16, 2010, at 2:51 PM, Jamie H wrote: Everything was great after maintenance! But is it just me, or do things seem to be slipping away? I am seeing timeouts on several apps, along with slower cold starts and increased latency since the maintenance... anyone else? -- 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] Re: What is latest for in version URL
Robert, thx for the information. I don't remember the exact wording of the resulting error message, only that it was related to DNS. I'll retry it and either it will work or I'll post the exact error. In any case using the complete version identification makes sense, I just wasn't aware of this being possible. Cheers, Remigius. -- 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] Tasks and GAE Maintenance
Hi there, Very quick question: During GAE maintenance will my code be able to add tasks to queues? Thanks in advance, 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.
Re: [google-appengine] How import datas to BigTable from my local mysql ?
thanks. after close IDE, all test datas disappeared. is it in memory? how to create local BigTable ? 2010/11/16 Robert Kluin robert.kl...@gmail.com You've got a few good options. Check out: http://code.google.com/appengine/docs/python/tools/uploadingdata.html Although, I generally find it easier to write my own 'services' for importing data. Robert On Mon, Nov 15, 2010 at 22:31, YF CAO caoyongfeng0...@gmail.com wrote: hi all, How import datas to BigTable from my local mysql ? -- 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.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] How import datas to BigTable from my local mysql ?
No, it should be kept in a file. The location depends on whether you are using Python or Java. http://code.google.com/appengine/docs/python/tools/devserver.html#Using_the_Datastore http://code.google.com/appengine/docs/java/tools/devserver.html#Using_the_Datastore Sounds like your IDE might be clearing the file out. Robert On Tue, Nov 16, 2010 at 21:42, YF CAO caoyongfeng0...@gmail.com wrote: thanks. after close IDE, all test datas disappeared. is it in memory? how to create local BigTable ? 2010/11/16 Robert Kluin robert.kl...@gmail.com You've got a few good options. Check out: http://code.google.com/appengine/docs/python/tools/uploadingdata.html Although, I generally find it easier to write my own 'services' for importing data. Robert On Mon, Nov 15, 2010 at 22:31, YF CAO caoyongfeng0...@gmail.com wrote: hi all, How import datas to BigTable from my local mysql ? -- 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. -- 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.
RE: [google-appengine] Potential GAE Usage
The one issue I ran into was lack of HTTPS support, that should change in the future I hear, at which point I think GAE is very possibly a good platform for building web/ecommerce apps. I've been watching the ongoing performance issues with some concern, though managing your own server isn't without risk of the same (though you have more control over the solution). The thing GAE does very right is to enable you to build platform independent applications. If you build your application so that it can easily be ported from one platform to another you'll be able to migrate onto (in our case, when HTTPS support comes available) or off of GAE (if performance issues became a show stopper) without a re-write. David -Original Message- From: google-appengine@googlegroups.com [mailto:google-appeng...@googlegroups.com] On Behalf Of Edda UX Sent: Tuesday, November 16, 2010 5:40 PM To: Google App Engine Subject: [google-appengine] Potential GAE Usage Folks, I've been using GAE for a couple of weeks now and its a great setup and I've taught myself Python so things are very interesting but I'm quickly becoming aware of the edges and how best to use GAE. I've used GAE for a pet project at my current work place, but could I use it for a consulting sideline? I don't think the business version would suit as these app/sites could be for different clients and this is where the fuzzy line is coming into play. With web apps / websites becoming increasingly blurred, it appears that GAE may be suitable to build e-commerce sites, web apps but I wouldn't be confident enough that I could build this info a business and rely on GAE as they have certain restrictions. Would this mean I need to look at a AWS setup (more work setting the box up etc, but more control) rather than GAE. I would be interested to hear peoples opinions on where GAE sits in the grand scheme of things and would google allow me to develop apps / websites on GAE rather than going to a hosting company or amazon and renting a VPS or cloud equivalent. Cheers -- 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.