Hi, I have the same problem with following code:

public static RService getOneService(String owner, String idService,
PersistenceManager pm)
        {
                List<RService> Services = new ArrayList<RService>();

                Query query = pm.newQuery(RService.class);
            query.setFilter("id==keyService && idOwner==keyOwner ");
            query.declareParameters("String keyService,String keyOwner ");

            query.setRange(0,1);

            Services = (List<RService>) query.execute(idService,owner);

            Iterator<RService> iterator = Services.iterator();
                if ( iterator.hasNext() ) return iterator.next();
                else return null;
        }

running that method cause me:

java.lang.IllegalArgumentException: __key__ filter value must be a Key
        at
com.google.appengine.api.datastore.DatastoreApiHelper.translateError
(DatastoreApiHelper.java:33)
        at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
(DatastoreApiHelper.java:60)
        at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:388)
        at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.asQueryResultList(DatastoreServiceImpl.java:318)
        at
org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery
(DatastoreQuery.java:355)
        at org.datanucleus.store.appengine.query.DatastoreQuery.executeQuery
(DatastoreQuery.java:265)

.....


id is an encoded string key, I am not using Key fields. I have other
simillar-designed classes and they are working fine with the same
query. Also above code was working as well two weeks ago....

Any ideas / solution mates?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to