Re: [appengine-java] Re: how to persist a list of bytearray?
On 18/03/2011 15:29, Jeff Schnitzer wrote: I normally don't do this but... if you're using Objectify, it's just: @Serialized private Listbyte[] attachments; Jeff ... and for comparison, with Twig you use its type converter system to tell it to store the whole list as a single blob: @Type(Blob.class) private Listbyte[] attachments; John -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] DDL - move from boolean to String
I need to move a variable in my bean from type boolean to String. How would I do that in GAE/J? Are there any common practices? Also, how would I deal with the situation when I need to add a variable of type boolean or int? They are NULL for old entities which were stored previously and therefore cause my program (and the datastore viewer) to fail because NULL is not applicable for e.g. boolean. So I'm left in the state where I can't remove/modify them via the datastore viewer. Thanks for any responses -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: DDL - move from boolean to String
2011/3/21 Jan Willies j...@willies.info: I need to move a variable in my bean from type boolean to String. How would I do that in GAE/J? Are there any common practices? Also, how would I deal with the situation when I need to add a variable of type boolean or int? They are NULL for old entities which were stored previously and therefore cause my program (and the datastore viewer) to fail because NULL is not applicable for e.g. boolean. So I'm left in the state where I can't remove/modify them via the datastore viewer. Thanks for any responses I probably should add that I'm using JDO as persistence backend. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Get blob key of just uploaded blob
I have list of blobs that are already in the blobstore but what I am looking for is how do I get the blob key of a blob that I just uploaded. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error
Here is what I'd shoot for having app engine do on the server side, just like HTML5 could do on the client side. http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#images -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error
Need a testImageEncoding() to verify its a good image. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error
Need Exif methods. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error
I think my problem is in reading the bytes into the array. Oh, if this is it, I'm been barking up the wrong tree. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error
I get the correct byte count reading it this way: private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); if (blobKey == null) { return null; } long filesize = blobData.getSize(); long chunkSize = 1024; long startIndex = 0; long endIndex = chunkSize; ByteArrayOutputStream out = new ByteArrayOutputStream(); if (filesize 1024) { boolean theend = false; while (theend == false) { if (endIndex == filesize) { theend = true; } System.out.println(startIndex= + startIndex + endIndex= + endIndex); byte[] b = blobstoreService.fetchData(blobKey, startIndex, endIndex); try { out.write(b); } catch (IOException e) { e.printStackTrace(); } startIndex = endIndex + 1; endIndex = startIndex + chunkSize; if (endIndex filesize) { endIndex = filesize; } } } else { byte[] b = blobstoreService.fetchData(blobKey, 0, 1024); try { out.write(b); } catch (IOException e) { e.printStackTrace(); } } byte[] filebytes = out.toByteArray(); System.out.println(getImageBytes(): filebytes size: + filebytes. length + blobData.size= + blobData.getSize()); return filebytes; } -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Local development server classpath - com.google.appengine.tools.KickStart
In order to faithfully emulate production, the dev_appserver only loads application code from WEB-INF/classes and WEB-INF/lib. If you want to avoid copying the jars into WEB-INF/lib, you could soft link them instead. On Sat, Mar 19, 2011 at 7:21 AM, Benjamin Muschko benjamin.musc...@gmail.com wrote: Didier, Thanks for your reply. I am not using Eclipse. Instead I was trying to run KickStart.main() within an existing Java process for a build plugin. The Ant page you mentioned simply copies the JARs into WEB-INF/ lib. In the meantime I found a workaround for what I was trying to do. Still...I'd still be interested to know if you can add additional JARs when calling KickStart.main(). Thanks, Ben On Mar 19, 1:21 am, Didier Durand durand.did...@gmail.com wrote: Hi, You will be ok if you add not only 1 single gae jar (appengine-tools- api.jar) but all those (about 2) appearing in the GAE sdk library on Eclipse when you create a new project + those needed to run locally. The simplest way for you is to follow he hints given inhttp:// code.google.com/appengine/docs/java/tools/ant.html regards didier On Mar 18, 8:55 pm, Benjamin Muschko benjamin.musc...@gmail.com wrote: Hi, I have a question about the runtime classpath that is being used when starting up a local development server. It is required to set appengine-tools-api.jar in the classpath a parameter. My application directory web_app_dir does not include some of the libraries that are required at runtime (see below someother.jar); they sit in a different directory. I tried to add them using the -cp parameter but they don't seem to get evaluated. I get a java.lang.NoClassDefFoundError. This is the call I make: java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine- tools-api.jar:/home/ben/dev/someother.jar com.google.appengine.tools.KickStart com.google.appengine.tools.development.DevAppServerMain web_app_dir Can somebody please shed some light on this? Are only the libraries used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add additional libraries using an parameter? Thanks, Ben -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Get blob key of just uploaded blob
Where the input element name that corresponds to the form element where the file is selected is the request parameter you use on the servlet side. For instance if the input element name=myFile then on the servlet side do this: MapString, BlobKey blobs = blobstoreService.getUploadedBlobs(request); BlobKey blobKey = blobs.get(myFile); Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: New gae logo??
Bummer I missed that :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: DDL - move from boolean to String
Are you asking if you can change/morph your datastore values from Boolean to String? If so, you'll have to make a copy so the new property is added in older records. Or do a conversion when getting a record. You can add a persistance variable at any time, and the property going forward will be added to the record. To deal with previous records that have nothing null stored, then add logic to check for that. When I make adjustments to the datastore persistance classes, I increment my version before deployment. I've run across errors deploying the same version with new datastore enhancements with new class variables. Hope that helps, Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Security constraint not working
Hi folks, I'm sure this is just me being foolish, but I have the following in my web.xml: security-constraint web-resource-collection url-pattern/comment/*/url-pattern url-pattern/entry/*/url-pattern url-pattern/series/*/url-pattern url-pattern/upload/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint However, even with this in place, I can still hit urls like these without logging in: http://xxx.appspot.com/entry/edit/2001 http://xxx/appspot.com/series/edit/42 What am I missing? Thanks in advance, ~rob -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] (Development Server + Bulkloader) == Resource Hog ?
I have made many attempts to import a large set ot entities (1.000.000) from a .csv file (14 MB) into the local datastore of the development server. All entities are of one very simple kind which has just one string property. The values are rather small too: key name values: 1 - 100, e.g. 1000 property values: strings with exactly 6 characters, e.g. qttrqg After the bulkloader has worked for some time info(/error) messages appear on the command line: [INFO] [Thread-9] Backing off due to errors: 1.0 seconds There are no further messages in the bulkloader log explaining those errors nor does the development server output any error message. While searching for a clue I realized that the JVM of the development server was using over 512 MB of memory with memory consumption increasing rapidly while the bulkloader is running. After increasing the limit (VM argument -Xmx) to 1024 MB and after that to 2 GB the same errors still appear albeit later. In my last attempt the errors started when the JVM was using about 1,4 GB of memory. Some bulkloader numbers after stopping the server: [INFO] 406400 entities (37193549 bytes) transferred in 1291.9 seconds The local datastore file (local_db.bin) has a size of 117 MB. Can somebody confirm this behaviour? Is the development server not able to handle such amounts of data? Google App Engine Java SDK 1.4.2.v201102111811, running the server inside Eclipse. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Security constraint not working
Can you reply privately with your app id? On Sat, Mar 19, 2011 at 1:23 PM, Rob r...@hafernik.com wrote: Hi folks, I'm sure this is just me being foolish, but I have the following in my web.xml: security-constraint web-resource-collection url-pattern/comment/*/url-pattern url-pattern/entry/*/url-pattern url-pattern/series/*/url-pattern url-pattern/upload/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint However, even with this in place, I can still hit urls like these without logging in: http://xxx.appspot.com/entry/edit/2001 http://xxx/appspot.com/series/edit/42 What am I missing? Thanks in advance, ~rob -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Get blob key of just uploaded blob
https://github.com/makerere-compute/cropsurveillance/tree/master/src/cropsurlinker On Mon, Mar 21, 2011 at 6:19 PM, branflake2267 branflake2...@gmail.comwrote: Where the input element name that corresponds to the form element where the file is selected is the request parameter you use on the servlet side. For instance if the input element name=myFile then on the servlet side do this: MapString, BlobKey blobs = blobstoreService.getUploadedBlobs(request); BlobKey blobKey = blobs.get(myFile); Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] sharing the code base
I have invited another developer to work with me on my google app engine project, and sent him the invitation. Is there anyway for him to download the existing code from google apps so I don't have to send it to him? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Eclipse Run As Web Application overwrites all the libs
You should have a look on this: http://googlewebtoolkit.blogspot.com/2010_08_01_archive.html GWT/Maven integration is a bit tricky, but when strictly applying the procedure detailed in the blog, it works like a charm. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Get User instance by email
Hi, I'm new to GAE so please be kind. I have an entity with persisted field of type User. I would like to have a registration page in which authenticated user can register, on that page I can get the User instance without problem from UserService. I also like to have an admin page from which I can manually register other users, the current user on those pages will be the admin: Is it possible to get a User instance based on email address? Thank you, Ido -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: sharing the code base
Hi, The invitation you send from the GAE dashboard is not about source code sharing but about giving the other person access to this dashboard so that he can also see logs and administer app. For code sharing, you have to use Github (if your project is open) or go a hosted subversion service. regards didier On Mar 21, 7:03 pm, fishdan fish...@gmail.com wrote: I have invited another developer to work with me on my google app engine project, and sent him the invitation. Is there anyway for him to download the existing code from google apps so I don't have to send it to him? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Modifying/creating facelet templates on the fly
For a webapp I'm working on I wanted to be able to modify or create new templates while the app is running. However GAE does not support storing files so I need to store them else where. Blobstore looks like a good candidate. But how do I get the facelet engine to read the template from the blobstore? I know I can write a custom facelets resource resolver but that still has to return a URL. Does anyone no of a solution? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How can I front GAE's Jetty with Apache/mod_jk?
Hi all, I wrote up a solution which uses mod_proxy rather than mod_jk. It is here: http://blog.broc.seib.net/2011/03/fronting-eclipse-jetty-server-with.html Broc -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Task Enqueue in a Transaction
I've got a query about tasks and transactions on a High-replication app that I'm hoping someone can help me with. I've got the following scenario: 1) Begin a transaction 2) Persist an entity 3) Enqueue a task within the transaction 4) Commit the transaction Within the task, I get the entity via its key and I'm finding that the object has yet to be updated in the datastore - it was my belief that getting an entity via its key is strongly consistent, so I was quite surprised to see that the entity was stale. Is this result expected? I've got some defensive code in place now which just re-enqueues the task, but I wasn't sure whether that was the right approach. I originally had the same issue on the MS version of my app, before I realised that I needed to enqueue the task within the same transaction to ensure the persist had occurred before the task was run. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] URLFetch API Javadoc discrepancies and problems with SSL certs
I am trying to use the URLFetch API and the compiler doesn't seem to agree with the Javadoc for FetchOptions.Builder. I am trying to use the method doNotValidateCertificate() but it is not available in code completion in Eclipse and will not compile if I type it in. I am using GAE 1.4.2. Has this API changed without the docs being updated? Also, this is the secondary problem that I am attempting to get around using the doNotValidateCertificate() method. The original problem is that I am receiving exceptions when trying to access a web service or RESTful service over HTTPS. I am getting javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for: XXX I don't see any way in the GAE console to add certificates or anything. It happens whether I write a SOAP client or just use URLConnection. The same code works fine just run from a command line in the same JVM that GAE is running in. Have tried using keytool... Getting very frustrated with GAE at this point and am about to bail as I am wasting too much time getting this to work. kenyon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: URLFetch API Javadoc discrepancies and problems with SSL certs
Ok, figured out the URLFetch API, Eclipse imported datastore.FetchOptions.Builder. Will try https call with the doNotValidateCertificate option -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: URLFetch API Javadoc discrepancies and problems with SSL certs
Ok, so https request seems to work if I use the doNotValidateCertificate method. Still gives javax.net.ssl.SSLHandshakeException if I don't use it. I guess this will work for now, but i will have to manually bind the xml. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Java URL issue
I'm using Google Application Project and what I want to do is create a text box and button. whatever the user enters in the box, it would reference a website for information like wiki or bing or yahoo or whatever. I managed to create the panel via google widgets so I can enter whatever and it'd print via system.out.println. On a Java project I can obtain html page source via java url as shown below: URL urlsearch = new URL(http://www.bing.com/search?q=lion;); BufferedReader buffreader = new BufferedReader(new InputStreamReader(urlsearch.openStream())); String HTMLdisplay; while ((HTMLdisplay = buffreader.readLine()) != null) { System.out.println(HTMLdisplay); } buffreader.close(); What I can't do is have them together. It compiles fine so no errors show on Eclipse Console but when I run via Development tab I get a variety of errors saying The import java.net cannot be resolved and URL cannot be resolved to a type. I know there are google functions along with API keys such as google.search.SearchControl leading to google.search.WebSearch(). There is also Custom Search engine provided by google (http://www.google.com/cse). I've found things from code.google that I can query their search engine and return results but nothing to allow me to grab the page source like Java URL and php get_file_contents. Does anyone know why I am not able to use Java URL on my Google Web Application project but it runs fine on a normal Java Project? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Google checkout and GAE
I am trying to integrate Google checkout with my GAE app. I am hitting 2 big bottle necks. exampleNotificationServelet is using a ton of CPU and usually fails with a time out if starting a new instance. I'm reading a few values from the merchant data and then doing one write to the data store. I don't see what can be taking that much time. It is also taking forever to create a cart and redirect to the Google checkout page. It takes almost 15 seconds once pressing the checkout button. I have narrowed this down to the build and postCart methods. When I step through while debugging on my local host, these methods take about 10-12 seconds to complete. Is this normal? I am having trouble debugging exampleNotificationServelet, since I don't know what checkout is sending to my server. Can anyone explain a good way to fake a notification to the localhost running exampleNotificationServelet? So I can set break points and see what is taking up so much CPU. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Google checkout and GAE
The google checkout sdk doesn't work on appengine. There are some reports of weirdness (like you describe) relating jaxb. I considered investigating and found the SDK code doesn't compile, decided this wasn't for me. If you want google checkout, don't use the SDK - just write your own handlers. I just completed Amazon Payments, and while it has its own quirks, the API is cleaner than GC and *way* cleaner than Paypal's. Jeff On Mon, Mar 21, 2011 at 7:34 PM, WillSpecht willspe...@gmail.com wrote: I am trying to integrate Google checkout with my GAE app. I am hitting 2 big bottle necks. exampleNotificationServelet is using a ton of CPU and usually fails with a time out if starting a new instance. I'm reading a few values from the merchant data and then doing one write to the data store. I don't see what can be taking that much time. It is also taking forever to create a cart and redirect to the Google checkout page. It takes almost 15 seconds once pressing the checkout button. I have narrowed this down to the build and postCart methods. When I step through while debugging on my local host, these methods take about 10-12 seconds to complete. Is this normal? I am having trouble debugging exampleNotificationServelet, since I don't know what checkout is sending to my server. Can anyone explain a good way to fake a notification to the localhost running exampleNotificationServelet? So I can set break points and see what is taking up so much CPU. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.