[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 "Key" values.

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

2010-10-02 Thread hendrix.jason
group_keys is an array containing several "Key" values. I want to perform a query that returns all "Group" items that have a key value that exists in the array "group_keys". On Oct 2, 5:24 pm, Cyrille Vincey wrote: > As far as I know, the execute() method does not work with arrays arguments. > M

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

2010-10-02 Thread Cyrille Vincey
As far as I know, the execute() method does 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" a écrit : > Cryille, >

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

2010-10-02 Thread hendrix.jason
Cryille, Using debug mode, I can see that the group_keys array is being populated correctly. The error is appearing on the last line: List groups = (List) q.execute(group_keys); Thanks, Jason On Sep 30, 3:41 am, Cyrille Vincey wrote: > Try : > Key k = KeyFactory.createKey(User.class.getSimple

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

2010-10-02 Thread hendrix.jason
Didier, Thanks for the suggestion, but I have deleted the datastore and tried again with a fresh datastore, and the same thing happens. Thanks, Jason On Sep 29, 10:23 pm, Didier Durand wrote: > Hello, > > Readhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html... > > one poss

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

2010-09-29 Thread Didier Durand
Hello, Read http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Object_Fields_and_Entity_Properties 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