Update: I get the following error when I try to access the datastore
index link again:

Server Error
A server error has occurred.

I am not sure if this error is related to the index problem, or to
exceeding quota.  Please note that the quota was not exceeded when I
post the last error / exception message.  It is very strange now as I
was able to click into the datastore index page/link when I posted the
last error, but now I can't even access it anymore.

And I am having trouble deploying the modified application.  I get
errors saying it failed to upload / create the index at the server.  I
wonder if something is wrong with the index on the server right now?
Is anyone else having similar problems?

Any light would be appreciated.

Tommy




On 7月6日, 上午11時28分, GArchitect <[email protected]> wrote:
> Hi, I got the following exception in a method executing a query:
>
> C 07-05 07:23PM 42.069
> Uncaught exception from servlet
> com.google.appengine.api.datastore.DatastoreNeedIndexException: no
> matching index found.
>         at
> com.google.appengine.api.datastore.DatastoreApiHelper.translateError
> (DatastoreApiHelper.java:34)
>         at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
> (DatastoreApiHelper.java:55)
>         at com.google.appengine.api.datastore.DatastoreServiceImpl
> $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:310)
>         at com.google.appengine.api.datastore.DatastoreServiceImpl
> $PreparedQueryImpl.access$100(DatastoreServiceImpl.java:240)
>         at com.google.appengine.api.datastore.DatastoreServiceImpl
> $PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:269)
>         at
> org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iter­ator
> (RuntimeExceptionWrappingIterable.java:42)
>         at org.datanucleus.store.appengine.query.StreamingQueryResult.<init>
> (StreamingQueryResult.java:72)
>         at
> org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery
> (DatastoreQuery.java:253)
>         at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute
> (DatastoreQuery.java:220)
>         at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
> (JDOQLQuery.java:85)
>         at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
> (JDOQLQuery.java:31)
>         at org.datanucleus.store.query.Query.executeQuery(Query.java:1466)
>         at org.datanucleus.store.query.Query.executeWithArray(Query.java:
> 1340)
>         at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:240)
>         at
> com.solveware.gwt.sample.stockwatcher.server.HistoricalQuote.getAllQuotesOn­Symbol
> (HistoricalQuote.java:130)
> ...
>
> However, according to the admin console, the required index is up and
> running
>
> HistoricalQuote
> id ▲ , symbol ▲ , date ▲  Serving
>
> And the code for executing the query:
>
>           public static List<HistoricalQuote> getAllQuotesOnSymbol(String
> symbol) {
>                     PersistenceManager pm = PMF.get().getPersistenceManager();
>                     Query query = pm.newQuery(HistoricalQuote.class);
>                     query.setFilter("symbol == userSubmittedSymbol");
>                     query.setOrdering("date ASC");
>                     query.declareParameters("String userSubmittedSymbol");
>                     List<HistoricalQuote> entries = (List<HistoricalQuote>)
> query.execute(symbol);
>                     return entries;
>           }
>
> So I wonder if anyone can shed some light on why this is happening?
> Is it a problem on the GAE side that is waiting to be fixed?
>
> Any help is appreciated.  Thanks.
>
> Best,
>
> Tommy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to