Your error message says that the current app engine API doesn't
support 'OR', and
the docs state:

    'An entity must match all filters to be a result. In the JDOQL
string syntax, multiple filters are specified separated by && (logical
"and"). Other logical combinations of filters (logical "or", "not")
are not supported.'

So it looks like you'll have to assert your conditions on the fetched
result set.
If the returned results are too many in number, you can use the query
operation setRange
to reduce the number returned...

On Nov 6, 4:30 pm, Java Java <passionjavaj...@gmail.com> wrote:
> Can you please any one help me.I am using Good Data store in my
> application. when i try to write the query in JDO like this
>  select from " + Address.class.getName()+" where designation=="+search
> +" || suburb=="+suburb
>
> It is not working and display the error message in console :
>
> 06/11/2009 11:42:59 PM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: /addressInfo
> org.datanucleus.store.appengine.query.DatastoreQuery
> $UnsupportedDatastoreOperatorException: Problem with query <SELECT
> FROM com.matchmaking.Address WHERE designation=='doc' || suburb==''>:
> App Engine datastore does not support operator  OR
>         at
> org.datanucleus.store.appengine.query.DatastoreQuery.checkForUnsupportedOpe 
> rator
> (DatastoreQuery.java:1197)
>         at org.datanucleus.store.appengine.query.DatastoreQuery.addExpression
> (DatastoreQuery.java:706)
>         at org.datanucleus.store.appengine.query.DatastoreQuery.addFilters
> (DatastoreQuery.java:663)
>         at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute
> (DatastoreQuery.java:214)
>         at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
> (JDOQLQuery.java:84)
>         at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
>         at org.datanucleus.store.query.Query.executeWithArray(Query.java:
> 1371)
>         at org.datanucleus.store.query.Query.execute(Query.java:1344)
>         at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221)
>         at com.matchmaking.ContactDAOImpl.listContacts(ContactDAOImpl.java:
> 29)
>         at com.matchmaking.AddressInfo.listContacts(AddressInfo.java:174)
>         at com.matchmaking.AddressInfo.doPost(AddressInfo.java:103)
>         at com.matchmaking.AddressInfo.doGet(AddressInfo.java:28)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:342)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:313)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
> (HttpConnection.java:830)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
--~--~---------~--~----~------------~-------~--~----~
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 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to