[appengine-java] Re: Is it safe for one ancestor to have millions of children in one List object?

2012-02-17 Thread hendrix.jason
even if this having millions of children > entities for one ancestor is theoretically feasible, you'll hit a > write performance issue when you generate those entities : only 1 > write / second in one given entity group (ancestor). > > On 17 fév, 03:16, "hendrix.jason&

[appengine-java] Is it safe for one ancestor to have millions of children in one List object?

2012-02-16 Thread hendrix.jason
If I have a @PersistenceCapable class that contains a List of another @PersistenceCapable class, and that List is millions of items in size, is that OK? Does that exceed a maximum for Java's List size? What is the best way for a parent to have millions of children and still have it easy to add ne

[appengine-java] HTTP ERROR: 400 BAD_REQUEST only in IE

2011-12-10 Thread hendrix.jason
If a user clicks this type of link: Sign in with a Google Account Then logs in with their Google account, everything works ok with Firefox or Chrome but not with IE. See the requests and responses below. Note the difference between the two GET headers... FF does not contain the "../" but IE does

[appengine-java] Re: Securing cron urls / task urls using UserService and not using web.xml

2011-12-09 Thread hendrix.jason
There is probably a better way, but you could look at the user agent string (I see in my logs that the user agent string for pages launched by cron look like "AppEngine-Google; (+http://code.google.com/ appengine)". Also, cron jobs are executed as admin. You may be able to use the "userService.is

[appengine-java] Re: datastore.delete() not deleting objects and not generating exceptions

2011-12-09 Thread hendrix.jason
Have you tried surrounding the select and delete queries in once transaction? See: http://code.google.com/appengine/docs/java/datastore/transactions.html There is no reason it shouldn't work otherwise, but it may be worth a shot. Also, with it being the same 213 objects, maybe those particular ob

[appengine-java] Error forcing a logout and redirect

2011-12-09 Thread hendrix.jason
I'm trying to force a logout and redirect by using this code from a jsp page: pageContext.forward(userService.createLogoutURL("../pageName.jsp")); This works in the dev environment, but not on the GAE servers. There I get this error: Error: NOT_FOUND I get the same error if I change "../pageName

[appengine-java] Re: JDOCursorHelper.getCursor always returns NULL

2011-10-19 Thread hendrix.jason
or = JDOCursorHelper.getCursor(AllGameDataResults); > > This is what I do. I seem to remember that by using your equivalent of > List the method JDOCursorHelper.getCursor(...) did not > work for me. > > Enjoy? > > On Oct 19, 3:18 am, "hendrix.jason" wrote:

[appengine-java] JDOCursorHelper.getCursor always returns NULL

2011-10-18 Thread hendrix.jason
When I execute: Cursor newCursor = JDOCursorHelper.getCursor(); newCursor is always null even though there are valid results returned and there are more in the datastore that fit the query. Since I am filtering multiple times on the same property, is this query getting treated as an "IN" query (a

[appengine-java] simple joins with multiple conditions

2010-11-03 Thread hendrix.jason
This page shows how to do "simple joins" http://gae-java-persistence.blogspot.com/2010/03/executing-simple-joins-across-owned.html However, is there a way to join the same child element twice to check for a child element that contains 2 specific items, like I'm trying to do here but failing/return

[appengine-java] Subquery question

2010-11-02 Thread hendrix.jason
Can anyone help with this subquery issue? http://pastebin.com/swSWJ5iD How can the last query return a record when q3b returned 0 records? -- 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 go

[appengine-java] Datastore query for embedded classes

2010-10-18 Thread hendrix.jason
I have two @PersistenceCapable classes: Document.java: http://pastebin.com/3MbEk8qw DocumentSearchKeyValue.java http://pastebin.com/QuUzZrLf How would I create a query that would return all "Document" objects that, in their "documentSearchKeyValues" field, contain a "documentSearchKeyValue" havi

[appengine-java] Re: ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-10-02 Thread hendrix.jason
FYI... This issue was resolved by changing the last line from this: List groups = (List) q.execute(group_keys); to this: List groups = (List) q.execute(Arrays.asList(group_keys)); Thanks, Jason On Oct 2, 5:55 pm, "hendrix.jason" wrote: > group_keys is an array containing several

[appengine-java] Re: ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-10-02 Thread hendrix.jason
es not work with arrays arguments. > Modify the declaration of your 'group_keys' from 'Key[]' to 'Key'. > By the way, all query errors happen to be assigned to the 'execute' line in > debug mode. > > Le 2 oct. 2010 à 19:41, "hendrix.jason

[appengine-java] Re: ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-10-02 Thread hendrix.jason
ateKey(User.class.getSimpleName(), Key.getId()); > > Instead of : > Key k = KeyFactory.createKey(User.class.getSimpleName(), > Long.parseLong(Key)); > > On 30/09/10 01:16, "hendrix.jason" wrote: > > > > > > > > >What could this error mean: > > >jav

[appengine-java] Re: ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-10-02 Thread hendrix.jason
. > > one possibility that 1 see: a change of type / format that you made to > some prop of your object and you access old entities in the datastore > with the new code. This may generate such an exception if DS cannot > convert old format to new one. > > didier > > On Sep

[appengine-java] ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-09-29 Thread hendrix.jason
What could this error mean: java.lang.ClassCastException: [Lcom.google.appengine.api.datastore.Key; cannot be cast to com.google.appengine.api.datastore.Key It's happening on the last line of this code: PersistenceManager pm2 = PMF.get().getPersistenceManager(); Key k = KeyFactor

[appengine-java] POST a Binary file from blobstore to a web service

2010-08-21 Thread hendrix.jason
i have a binary (pdf) file stored in the blobstore. i can read it using the blobviewer, so i know it is in there correctly. i want to POST the file contents to a webservice. to test, i am just putting the results of blobstoreService.fetchData(blobKey, 0, bi.getSize()),content_type) in to the body

[appengine-java] Re: Restrict which google accounts can access the app

2010-02-02 Thread hendrix.jason
I think this is what you are looking for: http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication On Jan 31, 2:55 pm, Scott wrote: > I read that you can make people login to their google account in order > gain access to your app, but is there a way to restrict