[appengine-java] Re: datastore
I think that you will have to put more effective effort into posing your question to get a useful reply. What datastore persistence interface do you want to use? What is your datastore design, using which you want to store a string? What web framework do you want to use, if any? Have you read some of the GAE/J documentation? If No, then you should. If Yes, then on which part(s) are you stuck? On 13 Mar, 06:37, chhavi tyagi chhavityag...@gmail.com wrote: plz give me a very simple example to save a name in datastore. like u have a text box in index.html and a button and wen u click on the button name gets saved on datastore. -- 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: getUploads() on blobstoreService not found
UPDATE: Found a solution here: http://stackoverflow.com/questions/9079431/appengine-blobstore-cant-upload-blobs-since-update-to-1-6-1-from-1-5-5-getuplo The files on my build path were fine but I needed to clear out the WEB-INF/lib folder of all of the old ones. Happy coding! Drew On Monday, 12 March 2012 13:11:52 UTC, Drew Spencer wrote: Having the same issue here. When I try to call the deprecated getUploadedBlobs() I get this error: WARNING: /_ah/upload/agx1c2F2aW50cmFuZXRyHAsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxiNAgw java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String at com.google.appengine.api.blobstore.BlobstoreServiceImpl.getUploadedBlobs(BlobstoreServiceImpl.java:132) at com.utilitiessavings.testapp1.server.UploadServiceImpl.doPost(UploadServiceImpl.java:39) and if I switch to getUploads() as recommended I get this error instead: WARNING: Error for /_ah/upload/agx1c2F2aW50cmFuZXRyHAsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxiOAgw java.lang.NoSuchMethodError: com.google.appengine.api.blobstore.BlobstoreService.getUploads(Ljavax/servlet/http/HttpServletRequest;)Ljava/util/Map; at com.utilitiessavings.testapp1.server.UploadServiceImpl.doPost(UploadServiceImpl.java:38) Can anyone shed any light on this? Cheers, Drew On Tuesday, 31 January 2012 13:13:44 UTC, roelanto wrote: Hi all, I'm trying to implement simple uploading. The beginning of upload callback code looks as follows: public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException { System.err.println(doPost on uploadImageFile); BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); blobstoreService.getUploads(request); Java then throws an exception on the getUploads(request)-line (which is lineno. 73): HTTP ERROR 500 Problem accessing /_ah/upload/ agZidHNvZXByHAsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxioBAw. Reason: com.google.appengine.api.blobstore.BlobstoreService.getUploads(Ljavax/ servlet/http/HttpServletRequest;)Ljava/util/Map; Caused by: java.lang.NoSuchMethodError: com.google.appengine.api.blobstore.BlobstoreService.getUploads(Ljavax/ servlet/http/HttpServletRequest;)Ljava/util/Map; at [my prefix].UploadImageFile.doPost(UploadImageFile.java:73) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 97) 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.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 78) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java: 384) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access $000(UploadBlobServlet.java:68) at com.google.appengine.api.blobstore.dev.UploadBlobServlet $1.run(UploadBlobServlet.java:111) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java: 108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 60) at
Re: [appengine-java] Re: datastore
Hi, I've sort of soft closed this group. I was supposed to put it into read-only mode a week ago, but I wanted to see if questions would still trickle in. This type of question seems pretty good for StackOverflow, where we're increasing our efforts to grow the community there. Try posting it and see? https://groups.google.com/forum/?fromgroups#!topic/google-appengine/Z6XN_64cA7w -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Mar 14, 2012 at 4:50 AM, Ian Marshall ianmarshall...@gmail.comwrote: I think that you will have to put more effective effort into posing your question to get a useful reply. What datastore persistence interface do you want to use? What is your datastore design, using which you want to store a string? What web framework do you want to use, if any? Have you read some of the GAE/J documentation? If No, then you should. If Yes, then on which part(s) are you stuck? On 13 Mar, 06:37, chhavi tyagi chhavityag...@gmail.com wrote: plz give me a very simple example to save a name in datastore. like u have a text box in index.html and a button and wen u click on the button name gets saved on datastore. -- 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] How to initialize class guestbook.PMF ?
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class guestbook.PMF Probably error in CLASSPATH, what this variable must contain, need example! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/5dBsAbIU0L4J. 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] How to initialize class guestbook.PMF ?
Hi, This might be a good question for StackOverflow. We're trying to migrate these types of questions over there: https://groups.google.com/forum/#!topic/google-appengine/Z6XN_64cA7w Likely: 1. It doesn't exist 2. You are importing it incorrectly -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Mar 14, 2012 at 12:58 PM, Vaso 81n...@gmail.com wrote: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class guestbook.PMF Probably error in CLASSPATH, what this variable must contain, need example! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/5dBsAbIU0L4J. 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: Unsupported method contains while parsing expression:
Hey Google, If that really is a mistake in the documentation that Ftaylor pointed out, can you take the 5 minutes and update it? That 5 minutes sure would pay lots of dividends on the other side in terms of saved minutes trying to figure out why things aren't working. The documentation is posted here: http://code.google.com/appengine/docs/java/datastore/jdo/queries.html#Introducing_Queries In the Query Filters section, the example shown contradicts the JDO spec according to Andy's response. Now, if the documentation is correct, then I'm just confused, and I'll just crawl back into my computer screen and continue beating my head against this stuff until it makes sense. However, if it's not correct, can we get someone to update that please? It's been 3 years now. :) Thanks, James On Thursday, January 28, 2010 4:45:26 AM UTC-8, Ftaylor wrote: Code: Class Page { ListString aliases; ... query = pm.newQuery(Page.class); query.setFilter(:aliases.contains(alias)); query.declareVariables(String alias); ListPage results = (ListPage)query.execute(alias); ... } I want to select Page objects where the aliases property contains a given alias String value. Is there any way to do this? I tried as above and got an exception: Problem with query SELECT FROM getimgs.Page WHERE :aliases.contains (alias) VARIABLES String alias: Unsupported method contains while parsing expression: InvokeExpression{[ParameterExpression {aliases}].contains(VariableExpression{alias})} If this cannot be done with JDOQL, the only solution I can think of is selecting every Page object, then looping through them and using Java's contains method, but this sucks somewhat. Anyone? Cheers, Finbarr -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/XQkJadTLIg4J. 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: Unsupported method contains while parsing expression:
Sorry, it was 2 years ago. I added wrong :) James On Wednesday, February 3, 2010 9:40:27 AM UTC-8, Ftaylor wrote: There actually seems to be a mistake in the documentation: // Give me all Employees with lastName equal to Smith or Jones Query query = pm.newQuery(Employee.class, :p.contains(lastName)); query.execute(Arrays.asList(Smith, Jones)); Surely it should be: // Give me all Employees with lastName equal to Smith or Jones Query query = pm.newQuery(Employee.class, p.contains(:lastName)); query.execute(Arrays.asList(Smith, Jones)); On Feb 2, 10:29 pm, Ikai L (Google) ika...@google.com wrote: Oy, this is what I get for not running code before posting it. Good looking out. On Tue, Feb 2, 2010 at 1:06 AM, datanucleus andy_jeffer...@yahoo.com wrote: query.setFilter(aliases == alias); That is invalid JDOQL syntax; the spec is the spec and JDOQL uses Java syntax. If you have a collection field then the filter should be aliases.contains(:alias) The poster put the colon in front of a field name (wrong), and declared a parameter as a variable (wrong). -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@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 Enginehttp:// 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 view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/k-5OJNQMQmUJ. 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: publishing html files
hie Jose Any coded sample for this for google app engine for java? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca jfmontesde...@google.com wrote: Vik, Working together with cloud storage sounds like a good solution to me. from app engine you can upload the file and define a public acl for the object using our Java API: http://code.google.com/appengine/docs/java/googlestorage/ After the file is uploaded to Google Cloud Storgae, it would be accesible by anyone from an URL with the following structure: https://sandbox.google.com/storage/*bucket*/*object* Best, Jose On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote: any thoughts on google cloud storage? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.uk wrote: Have a look at the blobstore documentation, that might help you. However I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the best way forward. On 28 February 2012 06:32, Vik vik@gmail.com wrote: Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote: Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://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 view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ. 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.