[appengine-java] Getting an object whitout key. Is it possible?

2011-02-28 Thread Andrea
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

[appengine-java] Re: Getting an object whitout key. Is it possible?

2011-02-28 Thread Didier Durand
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,

[appengine-java] Re: handle 1 not found error

2011-02-28 Thread Didier Durand
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

[appengine-java] Re: Getting an object whitout key. Is it possible?

2011-02-28 Thread Andrea
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

[appengine-java] Re: Getting an object whitout key. Is it possible?

2011-02-28 Thread Andrea
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

[appengine-java] Re: Getting an object whitout key. Is it possible?

2011-02-28 Thread Charms Styler
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

[appengine-java] SystemProperty.applicationId.get() returns s~[APP-ID]

2011-02-28 Thread Charms Styler
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~?

Re: [appengine-java] GAE (Java) integration with OAuth (facebook, twitter, etc.)

2011-02-28 Thread Ben Carlson
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

[appengine-java] can not find created folder under war

2011-02-28 Thread 王宇辉
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 =

[appengine-java] Re: SystemProperty.applicationId.get() returns s~[APP-ID]

2011-02-28 Thread Simon Knott
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

[appengine-java] Re: can not find created folder under war

2011-02-28 Thread Didier Durand
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

Re: [appengine-java] Re: SystemProperty.applicationId.get() returns s~[APP-ID]

2011-02-28 Thread Charms Styler
*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

Re: [appengine-java] Re: can not find created folder under war

2011-02-28 Thread 王宇辉
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,

Re: [appengine-java] Re: SystemProperty.applicationId.get() returns s~[APP-ID]

2011-02-28 Thread Simon Knott
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

[appengine-java] Ayuda Help java.lang.NoClassDefFoundError: Could not initialize class ognl.OgnlRuntime

2011-02-28 Thread Frankeke
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

[appengine-java] Reverse proxy won't allow Google Accounts sign in

2011-02-28 Thread GoSharp Lite
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

Re: [appengine-java] Re: URLFetchService

2011-02-28 Thread cyberalgo rythms
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

Re: [appengine-java] Re: URLFetchService

2011-02-28 Thread Philippe Beaudoin
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

[appengine-java] Re: setPayload does not pass password field

2011-02-28 Thread cyberalgorythms
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!

[appengine-java] Re: setPayload does not pass password field

2011-02-28 Thread cyberalgorythms
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.

[appengine-java] Google SQL Service Trusted Testers Signup

2011-02-28 Thread Amit Agarwal
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

[appengine-java] Re: Collection object not being updated

2011-02-28 Thread Cosmin Stefan
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)

[appengine-java] Re: Google SQL Service Trusted Testers Signup

2011-02-28 Thread Marcel Overdijk
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

Re: [appengine-java] Re: Google SQL Service Trusted Testers Signup

2011-02-28 Thread Amit Agarwal
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

[appengine-java] why two regsitered caches share same space

2011-02-28 Thread QkQk
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:

Re: [appengine-java] Re: SystemProperty.applicationId.get() returns s~[APP-ID]

2011-02-28 Thread Charms Styler
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

[appengine-java] How to make Simple Join query return children objects

2011-02-28 Thread hairinwind
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

[appengine-java] bulk download lost parent key...

2011-02-28 Thread hairinwind
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:

[appengine-java] Re: GAE (Java) integration with OAuth (facebook, twitter, etc.)

2011-02-28 Thread Marcel Overdijk
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