Re: [appengine-java] elegant way of implementing sequence generator
Hello Ikai, I am interested in Sequences, sequence starting from a initial value and increments. Can you little bit elaborate here on what is the risk with volatile here when using memcache. Regards -Aswath On Sat, Mar 6, 2010 at 1:05 AM, Ikai L (Google) ika...@google.com wrote: Have you looked into Memcache's INCR? http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.html#increment(java.lang.Objecthttp://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.html#increment%28java.lang.Object , long) This'll do it atomically, but you run the risk of it being volatile, so you'll have to account for that in your client code. On Tue, Mar 2, 2010 at 11:40 PM, legendlink gregc...@gmail.com wrote: hi, i wanted to have a sequence generator that increments by x value everytime it generates a value. if i would create the sequence generator by using the datastore, it is likely that data contention would occurr if there is high access times. i have looked into the sample code of max ross in the google code repository (SequenceExamplesJDO.java) and think this is limited to increment by 1 only and not increment by x value. if sharding technique is used, my concern is that i might not get the right sequence. what is the best/elegant way of doing sequence generator that increments x value? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | 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.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] [Newbie ask] Setting JSESSIONID expire date ?
Hallo, can anyone tell my how to set expire date for JSESSIONID. my problem is my app always ask username login after user close the browser. I belive if i can set JSESSIONID expire date i can solve this problem. Sory for my stupid question ^_^ Hendra, thank in advance -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: _ah_SESSION index on _expires property
If you file a feature request, please would you then leave a link to it on this thread? I would like to star it since I too shall want to delete _ah_SESSION persistent instances with old _expires values. -- 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: _ah_SESSION index on _expires property
Ian, it is http://code.google.com/p/googleappengine/issues/detail?id=3049 allow index for _expires on _ah_SESSION On Apr 3, 11:53 am, Ian Marshall ianmarshall...@gmail.com wrote: If you file a feature request, please would you then leave a link to it on this thread? I would like to star it since I too shall want to delete _ah_SESSION persistent instances with old _expires values. -- 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: Database cursor for back cursor?
But isn't it getting slower and slower on higher pages, since it fetches ALL data (according to docs) and discards the offset value? So Range(0,10) is faster than Range(1,10) ? Anyone did some performance tests? Regards On Apr 3, 7:49 am, John Patterson jdpatter...@gmail.com wrote: Probably you should set an offset and limit instead for your paging. I believe cursors are really intended for processing a lot of data off- line. Remember there is no longer a 1000 result limit on fetches. On 3 Apr 2010, at 02:57, Arny wrote: Hi, Is there a way to get a cursor to page back to a previous page? If not, whats the point of paging forward only? I'm not building an ajax page. Regards -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en . -- 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: is createFederatedLoginURL() working?
An idea anyone ? On 27 mar, 12:27, dflorey daniel.flo...@gmail.com wrote: Hi, I'm trying to replace the Step2 stuff with the new createFederatedLoginURL(), but I just get server errors in the provided /_ah/ servlets. Are these methods supposed to work and can someone please post an example how to authenticate and authorize a user? Thanks a lot, Daniel -- 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: Database cursor for back cursor?
How many pages do your users really want to see? Even Google search sets a limit - I think 1000 results. Although the number of results can exceed 1000 the offset is still limited so you would need to filter out results to continue past 1K. That would be slow. If you really need to return more than 1000 results and access them in forward and backward directions you could sort them by __key__ or some other unique combination and use that as you own cursor. You could define both ascending and descending indexes on your chosen property(s) to let you iterate in both directions. On 3 Apr 2010, at 19:32, Arny wrote: But isn't it getting slower and slower on higher pages, since it fetches ALL data (according to docs) and discards the offset value? So Range(0,10) is faster than Range(1,10) ? Anyone did some performance tests? Regards On Apr 3, 7:49 am, John Patterson jdpatter...@gmail.com wrote: Probably you should set an offset and limit instead for your paging. I believe cursors are really intended for processing a lot of data off- line. Remember there is no longer a 1000 result limit on fetches. On 3 Apr 2010, at 02:57, Arny wrote: Hi, Is there a way to get a cursor to page back to a previous page? If not, whats the point of paging forward only? I'm not building an ajax page. Regards -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en . -- 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-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] [Newbie ask] Setting JSESSIONID expire date ?
The issue isn't the expiration date. the issue here is that you are using a cookie-less seesion If you would like to keep users logged in you should try doing the session persistent Saludos On 4/3/10, hendra.herviawan putrak...@gmail.com wrote: Hallo, can anyone tell my how to set expire date for JSESSIONID. my problem is my app always ask username login after user close the browser. I belive if i can set JSESSIONID expire date i can solve this problem. Sory for my stupid question ^_^ Hendra, thank in advance -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Sent from my mobile device Gabriel Sosa Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine Beginner + JDO beginner... Strange issue with Query
Here is the Espace.java, When you see comment it means that i have try other alternative that doesn't work too : package com.phonitive.isalon.model; import java.util.Date; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import org.codehaus.jackson.annotate.JsonIgnore; import com.google.appengine.api.datastore.Key; @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Espace { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) // private Key key; private Long key; @Persistent private String coordonnee; @Persistent private String forme; @Persistent private String nom; @Persistent private Date update; public boolean equals(Espace obj) { return (obj.coordonnee.equalsIgnoreCase(this.coordonnee) obj.forme.equalsIgnoreCase(this.forme) obj.nom.equalsIgnoreCase(this.nom)); } public Date getUpdate() { return update; } public void setUpdate(Date update) { this.update = update; } public String getCoordonnee() { return coordonnee; } public void setCoordonnee(String coordonnee) { this.coordonnee = coordonnee; } public String getForme() { return forme; } public void setForme(String forme) { this.forme = forme; } public String getNom() { return nom; } public void setNom(String nom) { this.nom = nom; } public Espace(String coordonnee, String forme, String nom) { super(); this.coordonnee = coordonnee; this.forme = forme; this.nom = nom; } @JsonIgnore public Long getKey() { return key; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((coordonnee == null) ? 0 : coordonnee.hashCode()); result = prime * result + ((forme == null) ? 0 : forme.hashCode()); result = prime * result + ((nom == null) ? 0 : nom.hashCode()); result = prime * result + ((update == null) ? 0 : update.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Espace other = (Espace) obj; if (coordonnee == null) { if (other.coordonnee != null) return false; } else if (!coordonnee.equals(other.coordonnee)) return false; if (forme == null) { if (other.forme != null) return false; } else if (!forme.equals(other.forme)) return false; if (nom == null) { if (other.nom != null) return false; } else if (!nom.equals(other.nom)) return false; if (update == null) { if (other.update != null) return false; } else if (!update.equals(other.update)) return false; return true; } /*public void setKey(Key key) { this.key = key; }*/ } On Mar 31, 6:05 pm, Jake jbrooko...@cast.org wrote: Hey Guit, Could you also post the data object class code (Espace.class)? In the meantime, you can also try some debugging alternatives withhttp://www.datanucleus.org/products/accessplatform_1_0/jdo/jdoql.html as your guide. Jake On Mar 30, 6:36 pm, Guit lemoin...@gmail.com wrote: Anybody ? Someone look at my class and say to me ot should work but it doesn t and i habe still no ide why ... Please :) On 30 mar, 00:09, Guit lemoin...@gmail.com wrote: Hi everybody, I am trying to build my application and i am facing a very strange issue : here is the code : PersistenceManager pm=PMF.get().getPersistenceManager(); Query query=pm.newQuery(Espace.class); //query.setFilter(nom == paramAuthor); //query.declareParameters(java.lang.String paramAuthor);
[appengine-java] Re: Update to GAE/J 1.3.2 - Project in Eclipse broken
Hi Jason, On 29 Mrz., 18:24, Jason Parekh jasonpar...@gmail.com wrote: Could you try the following: - In your project properties, could you see what the App Engine SDK is set to (right-click project Properties Google App Engine). Does it show an error on this page? If you click the Configure SDKs button, what is the path for the SDK? No matter what I do, the selected SDK is /webgallery-spring/war (wegallery-spring is the name of the project) (!!) It always automatically changes to that setting. As you might guess, there is no SDK at that location. My SDKs are at /Users/Moritz/Documents/Installation/Libraries/ appengine-java-sdk-1.3.2 (and -1.3.1, -1.3.0, …) The default SDK is appengine-java-sdk-1.3.2 but it never gets selected - or to be precise: the selection is never saved. - In your project properties, can you go to Java Build Path , then Libraries tab, and see if there are any leftover JARs on your classpath? If there are, could you take a screenshot of that dialog (hopefully tall enough so all the entries are visible)? Here: http://farm5.static.flickr.com/4025/4487531734_e7567c87e8_o.png Please note, that I have updated the Plugin normally with the Eclipse Update Manager, and downloaded the SDK from the Google Website, copied it to the usual location (see above). It still doesn't work yet! Any idea what could be wrong? Regards, Moritz -- 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: Update to GAE/J 1.3.2 - Project in Eclipse broken
Here is a screenshot of the project's appengine settings: http://farm3.static.flickr.com/2801/4486943539_41cbc3abe3_o.png I'm unable to change the settings. After OK the settings aren't saved and the SDK is always the specific SDK, which of course doesn't exist. Moritz. On 29 Mrz., 18:24, Jason Parekh jasonpar...@gmail.com wrote: Hi Moritz, Could you try the following: - In your project properties, could you see what the App Engine SDK is set to (right-click project Properties Google App Engine). Does it show an error on this page? If you click the Configure SDKs button, what is the path for the SDK? - In your project properties, can you go to Java Build Path , then Libraries tab, and see if there are any leftover JARs on your classpath? If there are, could you take a screenshot of that dialog (hopefully tall enough so all the entries are visible)? Thanks, jason On Mon, Mar 29, 2010 at 1:53 AM, Moritz mor...@cloudme.org wrote: I have the same problem: The App Engine SDK '/{project-root}/war' on the project's build path is not valid where {project-root} is the root directory of my project. When I create a new project, this error does not occur, but I cannot spot any differences in the configuration files of both projects, so I'm a bit stuck at the moment. On 29 Mrz., 04:07, Joa joachim.pfeif...@gmail.com wrote: I've tried to update GAE to 1.3.2. Now the project is broken and I seem to be not even able to revert back to 1.3.1. I've taken the following steps: - Trying to locate instructions. Couldn't find any, so this must be simple... - Updated Google plugin through Help - Check for updates. Checks out - Then downloaded GAE 1.3.2 for Java, unzip - Set Project Properties using Google App Engine. Use specific SDK set to 1.3.2. Now the project root in the Eclipse Package Explorer is marked with an error. The project won't start any longer without an error message and dumps stack traces. To my dismay, any changes in this panel do not seem to have an impact whatsoever now. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] Re: Spring 2.5 Transactions - anyone got this working?
Hi Objectuser, Thanks for the suggestions. Pointcut is correct (I think so - keep second guessing myself though trying to implement this). I changed the domain to something generic when posting the example. Can you please confirm the following is correct, ie that you inject the proxy into the transaction manager. bean id=txManager class=org.springframework.orm.jdo.JdoTransactionManager property name=persistenceManagerFactory ref=persistenceManagerFactoryProxy / /bean The Spring 2.5 reference documentation in section 12.3.4 (http:// static.springsource.org/spring/docs/2.5.x/reference/orm.html#orm-jdo) has only the persistence manager factory. But it looks to me like it not in the context of using the proxy for transaction management. Some operations will work if I only inject the persistenceManagerFactory but then some will not (however all fail for testcases) I cannot get a testcase to work using spring managed transactions. Interestingly if I inject just the persistenceManagerFactory into the txManager bean some operations work but no testcase will work. Setting up testcases for the datastore is a real pain and I have followed the directions as per the google doco. Will try taking out the close methods and see if that makes a difference. Will keep bashing my head against this appengine wall. Cheers, Carl. On Mar 31, 2:10 pm, objectuser kevin.k.le...@gmail.com wrote: Check your pointcut ... is com.myapp.dao... correct? If that's correct, then I don't see anything amiss; it looks really good. Are you even able to setup a test where it works? Or are you doing it from a test? Oh, and check the use of pm.close(). That should be taken care of bySpringI think. I don't do it in my app anyway. If those don't work, then I'll looks again. -- 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] Have to load many objects vs. getObjectById()
Hello, if I have the keys for many objects and want to retrieve these object from the datastore is there some kind of batch method? I guess if I have thousands of objects and have to use getObjectById for every single one separately that would take a while and possibly even to long. Thanks, Henning -- 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: Have to load many objects vs. getObjectById()
You can get many Entities by Key, check out http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#get(java.lang.Iterable) On Apr 3, 4:36 pm, Henning henning2...@hotmail.de wrote: Hello, if I have the keys for many objects and want to retrieve these object from the datastore is there some kind of batch method? I guess if I have thousands of objects and have to use getObjectById for every single one separately that would take a while and possibly even to long. Thanks, Henning -- 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] blobstoreService.getUploadedBlobs() returns null from deployed GAE app, but works in dev server
I'm building an android app that posts a picture to a GAE web service. I created the web service and tested it with a simple HTML form to submit a picture and a few other fields. This works perfectly. I then implemented everything for the android app and posting the image with the other form data to the web service works fine when testing against my local GAE dev server. When I test against my deployed GAE app, I get a NPE when trying to retrieve the blobkey for the request. The android app first obtains the URL that it can post to (I use a HttpGet to do this). Once it has the post URL, I create a HttpURLConnection based on that and write the image and the form fields. Has anyone run into this? Here is the relevant portion of my controllers: @Controller @RequestMapping(/listings) public class ListingController { private static final Logger logger = Logger.getLogger(ListingController.class.getName()); private final BlobstoreService blobstoreService = BlobstoreServiceFactory .getBlobstoreService(); private static final String BLOB_UPLOAD_PATH = /api/listings/post; private static final String BLOB_UPLOAD_REDIRECT = /api/listings/ listing/; private static final String IMAGE_INPUT_NAME = imageFile; private static final String LAT_LONG_SEPERATOR = ,; private static final String SPACE = ; private static final OutputEncoding IMAGE_FORMAT = OutputEncoding.JPEG; private static final int IMAGE_RESIZE_WIDTH = 800; private static final int IMAGE_RESIZE_HEIGHT = 600; private static final int THUMB_RESIZE_WIDTH = 100; private static final int THUMB_RESIZE_HEIGHT = 75; private static final char HASH_TAG_DELIM = '#'; @RequestMapping(value = /post/path, method = RequestMethod.GET) @ResponseBody public String postPath() { return gson.toJson(new Text(blobstoreService .createUploadUrl(BLOB_UPLOAD_PATH))); } @RequestMapping(value = /post, method = RequestMethod.POST) @ResponseBody public void post(@RequestParam(lat) String latitude, @RequestParam(lng) String longitude, @RequestParam(desc) String description, @RequestParam(categories) String[] categories, HttpServletRequest request, HttpServletResponse response) throws IOException { MapString, BlobKey blobs = blobstoreService.getUploadedBlobs(request); BlobKey blobKey = blobs.get(IMAGE_INPUT_NAME); logger.info(blob key=+blobKey); BlobInfoFactory bif = new BlobInfoFactory(); BlobInfo bi = bif.loadBlobInfo(blobKey); logger.info(blob size=+bi.getSize()); ImagesService imagesService = ImagesServiceFactory.getImagesService(); Image original = ImagesServiceFactory.makeImageFromBlob(blobKey); logger.info(original image= + original); Image originalForThumb = ImagesServiceFactory .makeImageFromBlob(blobKey); Transform resize = ImagesServiceFactory.makeResize(IMAGE_RESIZE_WIDTH, IMAGE_RESIZE_HEIGHT); Transform thumbnailResize = ImagesServiceFactory.makeResize( THUMB_RESIZE_WIDTH, THUMB_RESIZE_HEIGHT); Image resizedImage = imagesService.applyTransform(resize, original, IMAGE_FORMAT); Image resizedThumb = imagesService.applyTransform(thumbnailResize, originalForThumb, IMAGE_FORMAT); GeoPt location = new GeoPt(Float.valueOf(latitude), Float .valueOf(longitude)); Blob image = new Blob(resizedImage.getImageData()); Blob thumb = new Blob(resizedThumb.getImageData()); Text desc = new Text(description); String address = ; SetString tags = getTagsFromDesc(description); Listing l = new Listing(getCategories(categories), tags, new Date(), location, address, desc, image, thumb); l = listingDao.create(l); blobstoreService.delete(blobKey); response.sendRedirect(BLOB_UPLOAD_REDIRECT + KeyFactory.keyToString(l.getKey())); } } Thanks, Tristan -- 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
[appengine-java] appspot xmpp talk with jabber.org
hi, when i connect to gtalk, i able to talk with my bot in appspot. but when i login to jabber.org, i unable to talk with my bot? anything i need to configure? testetefsdf @ appspot.com p/s: the bot exist in my jabber.org roster and appear online thou -- 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: Have to load many objects vs. getObjectById()
getObjectsById(...) -- 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: blobstoreService.getUploadedBlobs() returns null from deployed GAE app, but works in dev server
Did you turn the billing on? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [google-appengine] Re: Accessing the datastore remotely with remote_api
That post is actually somewhat out of date, as there's now a native Java remote_api client: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Setting_Up_remote_api(see the tip in that section for details). Apologies for being misleading. :) -Nick Johnson On Fri, Apr 2, 2010 at 4:25 PM, Eli Jones eli.jo...@gmail.com wrote: Not sure what's so dismaying. The nice man you mention, Nick Johnson, has a post about exactly what you need to do (use bulkloader against a Java app): http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loading-for-Java http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loading-for-Java On Fri, Apr 2, 2010 at 11:13 AM, Benjamin bsaut...@gmail.com wrote: I suppose i'm looking at this thread with a little dismay http://groups.google.com/group/google-appengine/browse_thread/thread/e26ea1dd8b9a38f9/4924e3f20ed70bd1?lnk=gstq=java+bulk#4924e3f20ed70bd1 is it true that if i want to download all of my data, massage it, and re-upload it i need to make a small python app and upload it as a new version to my production system in order to use the remote api and bulk upload / download features? On Apr 2, 10:03 am, Benjamin bsaut...@gmail.com wrote: It's very important that I solve the task of downloading my data from an existing production data store and bulk load a modified version. My App is built in the Java SDK. So far I understand I needed to download the python SDK in order to use the bulk loader python scripts. They run just fine on the command line. It seems that i need to now publish a new version of my app to production that has the Remote_API available. I need some help understanding what I need to change. Based on Nick's great blog posting :http://code.google.com/appengine/articles/remote_api.htmlI don't see any problem creating a remote client on my pc - i just need to understand how to install the remote api on the server side for java. How do i configure Remote_API on a java app and how do i set up security so my client app can access the data store? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Appengine Apps Vs Google bot web crawler
i built an appengine web app http://cricket.hover.in. The web app consists of about 15k url's linked in it, But even after a long time of my launch, no pages are indexed on google. Any base link place on my root site http://hover.in are being indexed with in minutes. but i placed the same link home page of root site a long back. but its of no use. can any one analyse , if there is any issue with http://cricket.hover.in or if bots have any issues with Google app engine actually tested the url using labs app of webmaster tools of google there the return is fine and html is clear. but when tested the same (http://cricket.hover.in) at the following urls its showing different results of failure http://www.dnsqueries.com/en/googlebot_simulator.php http://www.smart-it-consulting.com/internet/google/googlebot-spoofer/ but if i test some of my php or word press links at the above url's the results are good and fine. please help me with this. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] How to generate a random session ID etc.?
Hi, I have a short question on a security aspect. To generate something like a session ID or other random strings that need to be secure and unpredictable, I would use a code like this one: # start of the script (will be called 1 time when instance is loaded?) import os import random import string random.seed(os.urandom(24)) # later in the code class Test(webapp.RequestHandler): def get(self): topsecret = u''.join([random.choice(string.digits+string.uppercase+string.lowercase ) for c in range(16)]) Is this secure? Or is topsecret predictable if you know previous values of topsecret that were generated by the same instance? -Ulrich -- 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 generate a random session ID etc.?
Or is it better to use something like: random = random.SystemRandom() because it does not use the Mersenne Twister? -Ulrich Ulrich wrote: Hi, I have a short question on a security aspect. To generate something like a session ID or other random strings that need to be secure and unpredictable, I would use a code like this one: # start of the script (will be called 1 time when instance is loaded?) import os import random import string random.seed(os.urandom(24)) # later in the code class Test(webapp.RequestHandler): def get(self): topsecret = u''.join([random.choice(string.digits+string.uppercase+string.lowercase ) for c in range(16)]) Is this secure? Or is topsecret predictable if you know previous values of topsecret that were generated by the same instance? -Ulrich -- 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] deployed my project to GAE,but The server encountered an error and could not complete your request
I run my project on my Eclipse,it's ok.But when I deploy it to GAE,and I visit the website,and then login.the error happens: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. I copy the logs from GAE 04-03 01:28AM 25.259 /Frame.jsp 500 62ms 38cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Chrome/5.0.335.1 Safari/533.1,gzip(gfe) 218.18.44.28 - - [03/Apr/2010:01:28:25 -0700] GET /Frame.jsp HTTP/ 1.1 500 0 http://mywebchat.appspot.com/; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Chrome/ 5.0.335.1 Safari/533.1,gzip(gfe) mywebchat.appspot.com W 04-03 01:28AM 25.312 /Frame.jsp java.lang.NullPointerException at com.google.appengine.runtime.Request.process- cf3c064e718becb0(Request.java) at org.apache.jsp.Frame_jsp._jspService(Frame_jsp.java:55) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 103) at com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java: 251) at com.google.apphosting.runtime.JavaRuntime $RpcRunnable.run(JavaRuntime.java:404) at java.lang.Thread.run(Unknown Source) C 04-03 01:28AM 25.315 Uncaught exception from servlet java.lang.NullPointerException at
[google-appengine] Please Delete Index that I can't delete
Hi. I am a Japanese developer. I have been trying to delete indexes, but I am not succeeding. Perhaps, because of Building status not finish. Please delete or stop building of TrackMsg index. [Execute command] kadota-akihiko-no-macbook-pro:googleappengine_pyhton mondenakihiko$ appcfg.py --force vacuum_indexes ./music-me/ /usr/local/bin/appcfg.py:41: DeprecationWarning: the sha module is deprecated; use the hashlib module instead os.path.join(DIR_PATH, 'lib', 'antlr3'), /Users/mondenakihiko/Downloads/GoogleAppEngineLauncher.app/Contents/ Resources/GoogleAppEngine-default.bundle/Contents/Resources/ google_appengine/google/appengine/tools/dev_appserver_login.py:33: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Application: music-me; version: 1. Server: appengine.google.com. Fetching index definitions diff. Deleting selected index definitions. 2010-04-03 09:29:41,276 WARNING appcfg.py:773 An index was not deleted. Most likely this is because it no longer exists. kind: TrackMsg properties: - name: artistId - direction: desc name: registDate kadota-akihiko-no-macbook-pro:googleappengine_pyhton mondenakihiko$ [Now All Index Status] RankMsg from ▲ , to ▲ , False ▲Deleting RankPlaytimes False ▲ , from ▼ Deleting from ▲ , to ▲ , False ▲ Deleting from ▲ , to ▲ , times ▼ Deleting Track artistName ▲ , trackName ▲ , registDate ▲ Deleting TrackMsg artistId ▲ , registDate ▼ Building - Building over few days trackId ▲ , registDate ▲ Deleting trackId ▲ , registDate ▼ Deleting [Account Info] Application: music-me Server: appengine.google.com. Email: ams.tran...@gmail.com Thank you, Monden -- 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 Supported Language
Hi I am new to Google App Engine. I know it is impossible for one to expect the App Engine to support all languages like C, C++, PHP, Perl etc etc. I would like to know why currently only Perl and Java is supported ? By only supporting Python and Java it is implicitly trying to ask developers to learn the above 2 languages exclusively. I have no arguments against Java but choosing Python over others make me wonder. Perl is quite established in it's own right so why didn't it make it into the list ? Python whitespace is getting on my nerves. I admit I am biased to Python due to my Perl leanings but shouldn't such an excellent language like Perl be considered to be on par with Python ? I don't want to start a flame war. I am just curious on the choice made to use Python instead. 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] Newbie: How to incorporate a html with .js to the index.html?
Happy Easter every1! For of all, FYI, I am a total newbie, I haven't done anything with AJAX before. I am trying to help my friend to get something done. I have the .py file, I set up the app.yaml so the index.html can run the py file. I used the googleapplauncher and it runs perfectly fine in the browser. However, I want to incorporate another html with .js into this index.html page. I wonder how to do it? Am I supposed to change the other html into .js and add another handler URL? Please help! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Stuck Index
My app (beneighbor-ly) has a stuck index. How long is typical to wait for an index to build? It has been a few hours now. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Google App Engine Supported Language
Hi, sohguanh! I think that GAE developers (Google) think that Python is better for this task -- building sandboxed run-time environment. And may be Python is better than Perl in other cases. On 3 апр, 12:28, sohguanh sohgu...@gmail.com wrote: Hi I am new to Google App Engine. I know it is impossible for one to expect the App Engine to support all languages like C, C++, PHP, Perl etc etc. I would like to know why currently only Perl and Java is supported ? By only supporting Python and Java it is implicitly trying to ask developers to learn the above 2 languages exclusively. I have no arguments against Java but choosing Python over others make me wonder. Perl is quite established in it's own right so why didn't it make it into the list ? Python whitespace is getting on my nerves. I admit I am biased to Python due to my Perl leanings but shouldn't such an excellent language like Perl be considered to be on par with Python ? I don't want to start a flame war. I am just curious on the choice made to use Python instead. 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] RedirectTooLongError
Greeting, I'd like thank GAE team for making a great product before I describe the error message. The error message I'm getting is RedirectTooLongError and its caused by Google Friend Connect. Did anyone else got a similar error or knows how to fix this? Here is the full message: /?container=friendconnectmid=0nocache=0view=profileparent=http%3A %2F%2Ffood-prints.appspot.com%2Furl=http%3A%2F%2Fwww.google.com %2Ffriendconnect%2Fgadgets %2Ffriendbar.xmlcommunityId=14391792993796922712caller=http%3A%2F %2Ffood-prints.appspot.com%2F%3Fcontainer%3Dfriendconnect%26mid %3D0%26nocache%3D0%26view%3Dprofile%26parent%3Dhttp%253A%252F%252Ffood- prints.appspot.com%252F%26url%3Dhttp%253A%252F%252Fwww.google.com %252Ffriendconnect%252Fgadgets%252Ffriendbar.xml%26communityId %3D14391792993796922712%26caller%3Dhttp%253A%252F%252Ffood- prints.appspot.com%252F%253Fcontainer%253Dfriendconnect%2526mid %253D0%2526nocache%253D0%2526view%253Dprofile%2526parent%253Dhttp %25253A%25252F%25252Ffood-prints.appspot.com%25252F%2526url%253Dhttp %25253A%25252F%25252Fwww.google.com%25252Ffriendconnect%25252Fgadgets %25252Ffriendbar.xml%2526communityId %253D14391792993796922712%2526caller%253Dhttp%25253A%25252F%25252Ffood- prints.appspot.com%25252F%25253Fcontainer%25253Dfriendconnect%252526mid %25253D0%252526nocache%25253D0%252526view%25253Dprofile%252526parent %25253Dhttp%2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F %252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.google.com %2525252Ffriendconnect%2525252Fgadgets%2525252Ffriendbar.xml %252526communityId%25253D14391792993796922712%252526caller%25253Dhttp %2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F %252526rpctoken%25253D738204277%2526rpctoken%253D1195246813%26rpctoken %3D94139494rpctoken=965785636 500 39ms 0cpu_ms 0kb Mozilla/5.0 (compatible; Konqueror/4.4; Linux) KHTML/4.4.0 (like Gecko) Fedora/ 4.4.0-9.fc12,gzip(gfe) See details 84.92.192.145 - - [16/Mar/2010:07:28:11 -0700] GET /? container=friendconnectmid=0nocache=0view=profileparent=http%3A%2F %2Ffood-prints.appspot.com%2Furl=http%3A%2F%2Fwww.google.com %2Ffriendconnect%2Fgadgets %2Ffriendbar.xmlcommunityId=14391792993796922712caller=http%3A%2F %2Ffood-prints.appspot.com%2F%3Fcontainer%3Dfriendconnect%26mid %3D0%26nocache%3D0%26view%3Dprofile%26parent%3Dhttp%253A%252F%252Ffood- prints.appspot.com%252F%26url%3Dhttp%253A%252F%252Fwww.google.com %252Ffriendconnect%252Fgadgets%252Ffriendbar.xml%26communityId %3D14391792993796922712%26caller%3Dhttp%253A%252F%252Ffood- prints.appspot.com%252F%253Fcontainer%253Dfriendconnect%2526mid %253D0%2526nocache%253D0%2526view%253Dprofile%2526parent%253Dhttp %25253A%25252F%25252Ffood-prints.appspot.com%25252F%2526url%253Dhttp %25253A%25252F%25252Fwww.google.com%25252Ffriendconnect%25252Fgadgets %25252Ffriendbar.xml%2526communityId %253D14391792993796922712%2526caller%253Dhttp%25253A%25252F%25252Ffood- prints.appspot.com%25252F%25253Fcontainer%25253Dfriendconnect%252526mid %25253D0%252526nocache%25253D0%252526view%25253Dprofile%252526parent %25253Dhttp%2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F %252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.google.com %2525252Ffriendconnect%2525252Fgadgets%2525252Ffriendbar.xml %252526communityId%25253D14391792993796922712%252526caller%25253Dhttp %2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F %252526rpctoken%25253D738204277%2526rpctoken%253D1195246813%26rpctoken %3D94139494rpctoken=965785636 HTTP/1.1 500 124 http://food- prints.appspot.com/? container=friendconnectmid=0nocache=0view=profileparent=http%3A%2F %2Ffood-prints.appspot.com%2Furl=http%3A%2F%2Fwww.google.com %2Ffriendconnect%2Fgadgets %2Ffriendbar.xmlcommunityId=14391792993796922712caller=http%3A%2F %2Ffood-prints.appspot.com%2F%3Fcontainer%3Dfriendconnect%26mid %3D0%26nocache%3D0%26view%3Dprofile%26parent%3Dhttp%253A%252F%252Ffood- prints.appspot.com%252F%26url%3Dhttp%253A%252F%252Fwww.google.com %252Ffriendconnect%252Fgadgets%252Ffriendbar.xml%26communityId %3D14391792993796922712%26caller%3Dhttp%253A%252F%252Ffood- prints.appspot.com%252F%253Fcontainer%253Dfriendconnect%2526mid %253D0%2526nocache%253D0%2526view%253Dprofile%2526parent%253Dhttp %25253A%25252F%25252Ffood-prints.appspot.com%25252F%2526url%253Dhttp %25253A%25252F%25252Fwww.google.com%25252Ffriendconnect%25252Fgadgets %25252Ffriendbar.xml%2526communityId %253D14391792993796922712%2526caller%253Dhttp%25253A%25252F%25252Ffood- prints.appspot.com%25252F%2526rpctoken%253D738204277%26rpctoken %3D1195246813rpctoken=94139494 Mozilla/5.0 (compatible; Konqueror/ 4.4; Linux) KHTML/4.4.0 (like Gecko) Fedora/4.4.0-9.fc12,gzip(gfe) food-prints.appspot.com 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