[appengine-java] Getting an object whitout key. Is it possible?
Hi all , i'm pretty new to GAE ! I'm trying to retrieve an object from datastore without know its primary key or ID . Is it possible? Can you help me? -- 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: Getting an object whitout key. Is it possible?
Hello, Yes, it is possible: you have to query it via another of its properties, GAE will return you 1 or n entities having this value for the property. Very much like an sql cursor. Which DS api do you use: low-level, JDO, JPA, Objectify ? (to point you to examples) regards didier On Feb 28, 10:35 am, Andrea rampado.and...@gmail.com wrote: Hi all , i'm pretty new to GAE ! I'm trying to retrieve an object from datastore without know its primary key or ID . Is it possible? Can you help me? -- 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: handle 1 not found error
Hi, Are you running this locally or in the prod env ? If locally, you should use this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/1cc4851560f198bc I had once the exact same problem as you: did the cleanup as in the above thread and that solved it. regards didier On Feb 28, 6:49 am, JaySicks jaysi...@gmail.com wrote: thanks, for your reply. In fact yes, I use task queues. The error comes up when I loop through database objects, and try to persist to the database as well. I want to generate an object for a subset of objects in the database, and store them in the datastore. So my logic is: get an iterator of the objects from the datastore, iterate through them one-by-one, and persist the new object. It may not be a good thing to persist while iterating through a query but the workaround is a bit messy, I think. And I'm not even sure, what exactly the root cause is... On Feb 28, 2:26 pm, Didier Durand durand.did...@gmail.com wrote: Hi, I rather had such messages when using task queues and doing mistakes with them. Do you use task queues (or cron jobs) ? regards didier On Feb 27, 5:56 am, JaySicks jaysi...@gmail.com wrote: Hi, I'm getting the error: com.google.appengine.api.datastore.DatastoreFailureException: handle 1 not found (the number may vary) I looked up, and I found, that it's related to transactions. And I should get the error, when the too much time passes from the start of the transaction to the commit. (Am I right?) So, my problem is, that .. I'm not using transactions.. Is it normal, to get the error without using transactions? Thanks -- 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: Getting an object whitout key. Is it possible?
i'm using JDO -- 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: Getting an object whitout key. Is it possible?
i can query it with Query query = pm.newQuery(SELECT FROM + Request.class.getName() + WHERE name == + name); but i cannot understand how to get the object by this query , and example would be very helpful, thank you! -- 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: Getting an object whitout key. Is it possible?
I suggest you have a look at the appengine docs.. http://code.google.com/appengine/docs/java/datastore/jdo/queries.html -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] SystemProperty.applicationId.get() returns s~[APP-ID]
Hi, My objective is to retrieve the application AppId through code. SystemProperty.applicationId.get() I use the above code snippet to achieve that but after deploying to App-spot I am receiving my application Id as s~myAppId while on my local machine it returns myAppId. whats with the s~? any ideas? Regards, Charms -- 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] GAE (Java) integration with OAuth (facebook, twitter, etc.)
I haven't tried it myself, but http://www.janrain.com looks like something that might solve all or part of your issue. I'm thinking about using it for http://www.liink.it -Ben Sent from my iPhone On Feb 27, 2011, at 12:37 PM, irrdev emailkur...@gmail.com wrote: By searching Google, it's possible to come up with several home-grown solutions for gaining OAuth authentication to specific websites such as Facebook and Twitter. Unfortunately, most these methods are outdated and/or are site-specific. Considering that many of today's online apps seek social api integration, what is the best generic way to get this done? I'm seeking a method or library that works with all OAuth apis. I understand, of course, that once authenticated, every api is unique. However, it's the OAuth session variables that seemingly make it so difficult to integrate with GAE. It really shouldn't be that difficult, as this is a very necessary feature for today's cloud applications. Has anyone found a solution to this problem? -- 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] can not find created folder under war
Hi guys, I created a folder download under war, then deployed it to the server, but can't find the folder in the server, I tried to enum the folders under war by code, and found only the download folder has disappeared. the code I used is: File fileDownload = new File(); String[] files = fileDownload.list(); for (int i = 0;i files.length;i ++) { logger.info(files[i]); } other folders like css are all exists, except the download folder. can anyone tell me why? -- Best regards, Yuhui -- 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. attachment: Screen shot 2011-02-28 at 5.38.40 PM.png
[appengine-java] Re: SystemProperty.applicationId.get() returns s~[APP-ID]
That prefix is present for all High Replication applications. -- 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: can not find created folder under war
Hi, Did you configure the static / resource files: see http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files that could be the cause. regards didier On Feb 28, 12:45 pm, 王宇辉 yuhui.w...@gmail.com wrote: Hi guys, I created a folder download under war, then deployed it to the server, but can't find the folder in the server, I tried to enum the folders under war by code, and found only the download folder has disappeared. the code I used is: File fileDownload = new File(); String[] files = fileDownload.list(); for (int i = 0;i files.length;i ++) { logger.info(files[i]); } other folders like css are all exists, except the download folder. can anyone tell me why? -- Best regards, Yuhui Screen shot 2011-02-28 at 5.38.40 PM.png 8KViewDownload -- 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: SystemProperty.applicationId.get() returns s~[APP-ID]
*so if we replace s~ , it'l solve the issue but is there a more cleaner way to get it? * On Mon, Feb 28, 2011 at 5:20 PM, Simon Knott knott.si...@gmail.com wrote: That prefix is present for all High Replication applications. -- 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: can not find created folder under war
Yes, I saw this page, and found it says: By default, all files in the WAR are treated as both static files and resource files, except for JSP files. Also I tried to config the download file as resource files, or static files, neither can make the folder visible. I also tried to rename the folder, or delete and re-create it, or deploy the application to a new version, none can solve the problem. so weird. 2011/2/28 Didier Durand durand.did...@gmail.com Hi, Did you configure the static / resource files: see http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files that could be the cause. regards didier On Feb 28, 12:45 pm, 王宇辉 yuhui.w...@gmail.com wrote: Hi guys, I created a folder download under war, then deployed it to the server, but can't find the folder in the server, I tried to enum the folders under war by code, and found only the download folder has disappeared. the code I used is: File fileDownload = new File(); String[] files = fileDownload.list(); for (int i = 0;i files.length;i ++) { logger.info(files[i]); } other folders like css are all exists, except the download folder. can anyone tell me why? -- Best regards, Yuhui Screen shot 2011-02-28 at 5.38.40 PM.png 8KViewDownload -- 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. -- Best regards, Yuhui -- 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: SystemProperty.applicationId.get() returns s~[APP-ID]
I don't believe there is a cleaner way to get it - this only impacts HR applications in Production, so I guess it's not that big a deal. -- 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] Ayuda Help java.lang.NoClassDefFoundError: Could not initialize class ognl.OgnlRuntime
Hi, after deploy my app this was success: Uncaught exception from servlet java.lang.NoClassDefFoundError: Could not initialize class ognl.OgnlRuntime at OgnlSolution.OgnlListener.contextInitialized(OgnlListener.java:18) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java: 548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java: 191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java: 168) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 123) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 261) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $2.handleRequest(RuntimePb.java:8440) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 454) at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java: 572) at com.google.tracing.TraceContext$TraceContextRunnable $1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java: 688) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java: 326) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java: 318) at com.google.tracing.TraceContext $TraceContextRunnable.run(TraceContext.java:446) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1110) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Unexpected exception from servlet: java.lang.NoClassDefFoundError: Could not initialize class ognl.OgnlRuntime what can i do? I have deployed some times ago and its works fine. I´m Using Struts 2 -- 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] Reverse proxy won't allow Google Accounts sign in
In order to give users in China access to http://gochild2009.appspot.com , a reverse proxy has been set up at http://50.56.75.253 using Nginx. When I try to sign in from http://50.56.75.253 , Google Accounts will re-direct back to http://50.56.75.253 without sign in. Is it possible to have a reverse proxy and a working Google Accounts sign in service? p.s. Sign in link is currently disable in http://50.56.75.253 in order not to confuse users. -- 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: URLFetchService
Hello again: I just want to thank you again for the super help! I am now able to remote login using GAE for java. I am able to retrieve the information from the pages I want. Instead of using the POST method I use the GET method to login and call the method as many times as I need with new URLs to fetch the pages I want but definitely the help on how to get the cookie header and use it in the subsequent fetches was precious so thanks again for the super google help. ;-) best regards! On Fri, Feb 25, 2011 at 6:51 PM, cyberalgo rythms cyberalgoryt...@gmail.com wrote: Hi: The URL which comes in the response variable is the login page. All the fields there are populated according to setPayload field values but the password does not get populated ? I posted a new thread for this as it might not be related to this one. Thank you On Fri, Feb 25, 2011 at 6:22 PM, Philippe Beaudoin philippe.beaud...@gmail.com wrote: I don't know about that... Have you tried checking the URL accessed when you manually fill the form and click submit? Cheers, Philippe On Fri, Feb 25, 2011 at 9:30 AM, cyberalgo rythms cyberalgoryt...@gmail.com wrote: Thank you for the super help. It is first time I using this interface. I did use your code and modified a bit and I believe got the cookie working. Why i say that because after accessing the second fetch and in the view source code of the page somewhere inside uses the PHPSESSID i have retrieved from the login URL page. That indicates me i succeed in tracking the session id used. The cookie and the value I send back to the server looks like this but may de different for other servers. Cookie: PHPSESSID=sfs3892jhfsdkfsldfjsldkfjdfsdfjdfkdfdf Code now: // BEGIN URLFetchService urlFetchService= URLFetchServiceFactory.getURLFetchService(); URL url = new URL(https://www.somename.com/login.php;); HTTPRequest httpRequest = new HTTPRequest(url,HTTPMethod.POST, validateCertificate()); HTTPResponse response = urlFetchService.fetch(httpRequest); // Get site cookie // ... String cookies=null; for (HTTPHeader header : response.getHeaders()) { if (header.getName().equalsIgnoreCase(set-cookie)) { cookies = header.getValue().substring(0,42); // gets only PHPSESSID=value32characters for my server URL // prepare second HTTP request with cookie set httpRequest.setHeader(new HTTPHeader(Cookie, cookies)); } } // ... // prepare second HTTP request with cookie set httpRequest.setPayload(lang=enlogin=dm2vdfTpassword=vjfgdaction=login.getBytes()); response = urlFetchService.fetch(httpRequest); // END -- The problem I am facing now is that it populates the login and lang fields but the password value is left blank but i do have it in the setPayload function. So i don't understand why it does not read it ? Should the password value be sent differently from the other fields ? Thanks again for you help! On Thu, Feb 24, 2011 at 5:51 PM, Philippe Beaudoin philippe.beaud...@gmail.com wrote: My guess is that the JSESSIONID (or whichever session cookie used by the service) that is received in the HTTPResponse of your first fetch() is not sent back with your second fetch. As a consequence, the service does not know you're logged in. Here is how I would solve it (I did not test that code): // ... HTTPResponse response = urlFetchService.fetch(httpRequest); ListHTTPHeader headers = response.getHeaders(); String cookies; for (HTTPHeader header : headers) if (Set-Cookie.equals(header.getName()) cookies = header.getValue(); httpRequest = new HTTPRequest(url,HTTPMethod.POST, validateCertificate()); if (cookies != null) httpRequest.setHeader(new HTTPHeader(Cookie, cookies)); // ... You may run into the following issues, though: http://code.google.com/p/googleappengine/issues/detail?id=1704 http://code.google.com/p/googleappengine/issues/detail?id=3379 Hope it helps, Philippe -- 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
Re: [appengine-java] Re: URLFetchService
You're very welcome! This community is great, and so is Google (although I don't work for them. ;)) Cheers, Philippe On Mon, Feb 28, 2011 at 7:55 AM, cyberalgo rythms cyberalgoryt...@gmail.com wrote: Hello again: I just want to thank you again for the super help! I am now able to remote login using GAE for java. I am able to retrieve the information from the pages I want. Instead of using the POST method I use the GET method to login and call the method as many times as I need with new URLs to fetch the pages I want but definitely the help on how to get the cookie header and use it in the subsequent fetches was precious so thanks again for the super google help. ;-) best regards! On Fri, Feb 25, 2011 at 6:51 PM, cyberalgo rythms cyberalgoryt...@gmail.com wrote: Hi: The URL which comes in the response variable is the login page. All the fields there are populated according to setPayload field values but the password does not get populated ? I posted a new thread for this as it might not be related to this one. Thank you On Fri, Feb 25, 2011 at 6:22 PM, Philippe Beaudoin philippe.beaud...@gmail.com wrote: I don't know about that... Have you tried checking the URL accessed when you manually fill the form and click submit? Cheers, Philippe On Fri, Feb 25, 2011 at 9:30 AM, cyberalgo rythms cyberalgoryt...@gmail.com wrote: Thank you for the super help. It is first time I using this interface. I did use your code and modified a bit and I believe got the cookie working. Why i say that because after accessing the second fetch and in the view source code of the page somewhere inside uses the PHPSESSID i have retrieved from the login URL page. That indicates me i succeed in tracking the session id used. The cookie and the value I send back to the server looks like this but may de different for other servers. Cookie: PHPSESSID=sfs3892jhfsdkfsldfjsldkfjdfsdfjdfkdfdf Code now: // BEGIN URLFetchService urlFetchService= URLFetchServiceFactory.getURLFetchService(); URL url = new URL(https://www.somename.com/login.php;); HTTPRequest httpRequest = new HTTPRequest(url,HTTPMethod.POST, validateCertificate()); HTTPResponse response = urlFetchService.fetch(httpRequest); // Get site cookie // ... String cookies=null; for (HTTPHeader header : response.getHeaders()) { if (header.getName().equalsIgnoreCase(set-cookie)) { cookies = header.getValue().substring(0,42); // gets only PHPSESSID=value32characters for my server URL // prepare second HTTP request with cookie set httpRequest.setHeader(new HTTPHeader(Cookie, cookies)); } } // ... // prepare second HTTP request with cookie set httpRequest.setPayload(lang=enlogin=dm2vdfTpassword=vjfgdaction=login.getBytes()); response = urlFetchService.fetch(httpRequest); // END -- The problem I am facing now is that it populates the login and lang fields but the password value is left blank but i do have it in the setPayload function. So i don't understand why it does not read it ? Should the password value be sent differently from the other fields ? Thanks again for you help! On Thu, Feb 24, 2011 at 5:51 PM, Philippe Beaudoin philippe.beaud...@gmail.com wrote: My guess is that the JSESSIONID (or whichever session cookie used by the service) that is received in the HTTPResponse of your first fetch() is not sent back with your second fetch. As a consequence, the service does not know you're logged in. Here is how I would solve it (I did not test that code): // ... HTTPResponse response = urlFetchService.fetch(httpRequest); ListHTTPHeader headers = response.getHeaders(); String cookies; for (HTTPHeader header : headers) if (Set-Cookie.equals(header.getName()) cookies = header.getValue(); httpRequest = new HTTPRequest(url,HTTPMethod.POST, validateCertificate()); if (cookies != null) httpRequest.setHeader(new HTTPHeader(Cookie, cookies)); // ... You may run into the following issues, though: http://code.google.com/p/googleappengine/issues/detail?id=1704 http://code.google.com/p/googleappengine/issues/detail?id=3379 Hope it helps, Philippe -- 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
[appengine-java] Re: setPayload does not pass password field
Hello! I end up not using POST but instead the GET method with a cookie to first login into the web server and then subsequently access the pages I needed. The method to get the webserver cookie as well the code sample I used can be found here. Hope it helps! (http://code.google.com/appengine/forum/java-forum.html?place=topic %2Fgoogle-appengine-java%2F9npf4itjxHc%2Fdiscussion) I would though be interested in a working sample where the POST method is used to access an HTTPS web server. best regards! On Feb 25, 6:46 pm, cyberalgorythms cyberalgoryt...@gmail.com wrote: Hi: I am trying to use POST HTTP method to populate a login form with details below and all fields get populated except the password field. I know this because when I render the html page i am trying to fill in responseBytes the password field is the only not populated. I would appreciate any help on this. best regards. This is the code I am using: httpRequest.setPayload(lang=enlogin=DEyO1vjKVypassword=vjKVTaction=logi n.getBytes()); response = urlFetchService.fetch(httpRequest); final byte[] responseBytes = response.getContent(); -- 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: setPayload does not pass password field
Hello! Regarding this issue I have ended up using the GET method with a cookie to pass the password field instead of the POST method and make subsequent accesses to the pages I needed. Follow the link below to get the sample code on how to get the cookie sent by web server. http://http://code.google.com/appengine/forum/java-forum.html?place=topic/google-appengine-java/9npf4itjxHc/discussion I would be though interested in a working sample code on how to use the POST method and the setPayload method. Thank you! Best coding! On Feb 25, 6:46 pm, cyberalgorythms cyberalgoryt...@gmail.com wrote: Hi: I am trying to use POST HTTP method to populate a login form with details below and all fields get populated except the password field. I know this because when I render the html page i am trying to fill in responseBytes the password field is the only not populated. I would appreciate any help on this. best regards. This is the code I am using: httpRequest.setPayload(lang=enlogin=DEMO2vjKVTpassword=vjKVTaction=logi n.getBytes()); response = urlFetchService.fetch(httpRequest); final byte[] responseBytes = response.getContent(); -- 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 SQL Service Trusted Testers Signup
Hello everyone, We have been working on enabling SQL support for Google App Engine. Many of you have been testing this service and many more of you are in the queue. For those of you in the queue, we will soon be sending you the invites to try out this service. If you would like to try out Google SQL Service please sign-up herehttps://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enformkey=dHBwRmpHV2VicFVVNi1PaFBvUGgydXc6MA#gid=0 . thanks Amit -- Amit Agarwal | Product Manager | Google SQL Service -- 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: Collection object not being updated
So no ideea anyone? On Feb 25, 11:42 pm, Cosmin Stefan cosmin.stefandob...@gmail.com wrote: Hey, I have an issue while trying to update one object in a collection, using JDO. Here are the facts: o i have a class (let's call it BigClass), that has an embedded class(SmallClass) containing an ArrayList. o I DONT use/need a transaction o I query the database to get a List of BigClass items that should be modified. I iterate through each of them and I... o I remove an element from the list in the SmallClass embedded in the current BigClass, the changes are not ALWAYS persisted o if I print (log) the object after the change, it looks modified, but if i check the DataViewer, the object was not updated o i even tried using JDOHelper.makeDirty on the BigClass, with the fieldName SmallClass, and it still doesn't work. Some relevant code: Query q = pm.newQuery(BigClass.class,id==:ids); ListBigClass participatingUsers=(ListBigClass) q.execute(participantIDs); //Update the participants ListIteratorBigClass it=participatingUsers.listIterator(); BigClass participant; boolean modified; while(it.hasNext()) { participant=it.next(); participant.list.remove(smth); JDOHelper.makeDirty(participant,collection); } modify other objects pm.close() Another thing is that some of the changes I make after this part are persisted... So, if you have any suggestions, shoot pls! Cosmin -- 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: Google SQL Service Trusted Testers Signup
Is there more information available about the SQL support? Will it only be available for 'App Engine for Business'? And will pricing be simalar as BigTable datastore? On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote: Hello everyone, We have been working on enabling SQL support for Google App Engine. Many of you have been testing this service and many more of you are in the queue. For those of you in the queue, we will soon be sending you the invites to try out this service. If you would like to try out Google SQL Service please sign-up herehttps://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo... . thanks Amit -- Amit Agarwal | Product Manager | Google SQL Service -- 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: Google SQL Service Trusted Testers Signup
Hi Marcel, Comments inline. On Mon, Feb 28, 2011 at 1:05 PM, Marcel Overdijk marceloverd...@gmail.comwrote: Is there more information available about the SQL support? I am not sure what information you looking for. If there are general questions please do let me know. SQL Service is currently under trusted testers and if you are looking for details about the service it is available once you have signed up for the service. Will it only be available for 'App Engine for Business'? Currently we plan to make it available for all App Engine users And will pricing be simalar as BigTable datastore? We are still working on the pricing. thanks Amit On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote: Hello everyone, We have been working on enabling SQL support for Google App Engine. Many of you have been testing this service and many more of you are in the queue. For those of you in the queue, we will soon be sending you the invites to try out this service. If you would like to try out Google SQL Service please sign-up here https://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo... . thanks Amit -- Amit Agarwal | Product Manager | Google SQL Service -- 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. -- Amit Agarwal | Product Manager | Google SQL Service -- 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] why two regsitered caches share same space
Hi, I am running jcache apps in junit testing under AppEngine sdk 1.4.0 development mode. I have created two caches , ex, cache1, cache2, and using registerecache to register these to cacheManager. There is a problem of using same key in two caches. pseudo code as follows: cache1.put(counterXYZ, value); if (cache2.get(counterXYZ) != null ) { cache2.remove(counterXYZ); } .. why this will remove cache1's counterXYZ as well ? I seems to me that two caches share the same physical space in GAE. -- 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: SystemProperty.applicationId.get() returns s~[APP-ID]
Thanks for the insight. ;) -- 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 make Simple Join query return children objects
The article here only has the example to return the parent object. http://gae-java-persistence.blogspot.com/2010/03/executing-simple-joins-across-owned.html?showComment=1298589845909#c7562859098617623831 Here is what I want to do -- get the children objects. -- two search criteria, one from parent, one from child For example: select child from Child c JOIN c.parent p where c.field1= 'something1' AND p.field2='something2'; It returns empty results to me... How to make it work? Thanks! -- 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] bulk download lost parent key...
Here is part of config.yml transformers: - kind: ItemNextAlarm connector: csv connector_options: # TODO: Add connector options here--these are specific to each connector. property_map: - property: __key__ external_name: key export_transform: transform.key_id_or_name_as_string ... If I view data by console, I can see the key is Decoded entity key: Item: id=167002 ItemNextAlarm: id=1 Entity key: agx5YW9kb25nYWxhcm1yHwsSBEl0ZW0Y2pgKDAsSDUl0ZW1OZXh0QWxhcm0YAQw but after bulk download, here is the data in csv userName,active,VERSION,nextDueDate,needNotify,key,ITEM_ID robin@gmail.com,True,1,2012-01-01T05:09:45,True,1, The key only contains the info of the child, it lost the info of its parent. what is 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE (Java) integration with OAuth (facebook, twitter, etc.)
Just use http://code.google.com/p/janrain4j/ The demo app http://janrain4j.appspot.com/ is even hosted on Google App Engine. Integration with Spring and Spring Security is also included out of the box (if needed). On Feb 28, 12:36 pm, Ben Carlson bencarl...@gmail.com wrote: I haven't tried it myself, buthttp://www.janrain.comlooks like something that might solve all or part of your issue. I'm thinking about using it forhttp://www.liink.it -Ben Sent from my iPhone On Feb 27, 2011, at 12:37 PM, irrdev emailkur...@gmail.com wrote: By searching Google, it's possible to come up with several home-grown solutions for gaining OAuth authentication to specific websites such as Facebook and Twitter. Unfortunately, most these methods are outdated and/or are site-specific. Considering that many of today's online apps seek social api integration, what is the best generic way to get this done? I'm seeking a method or library that works with all OAuth apis. I understand, of course, that once authenticated, every api is unique. However, it's the OAuth session variables that seemingly make it so difficult to integrate with GAE. It really shouldn't be that difficult, as this is a very necessary feature for today's cloud applications. Has anyone found a solution to this problem? -- 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.