[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 durand.did...@gmail.com wrote: Hello,

[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: ListGroup groups = (ListGroup) q.execute(group_keys); Thanks, Jason On Sep 30, 3:41 am, Cyrille Vincey crll...@gmail.com wrote: Try : Key k =

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 hendrix.ja...@gmail.com a

[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 crll...@gmail.com wrote: As far as I know, the execute() method does not work with arrays

[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: ListGroup groups = (ListGroup) q.execute(group_keys); to this: ListGroup groups = (ListGroup) q.execute(Arrays.asList(group_keys)); Thanks, Jason On Oct 2, 5:55 pm, hendrix.jason hendrix.ja...@gmail.com wrote: group_keys is

[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