Hi people,

I constantly encountered this error
"com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found.. " when I am using the app which has been
deployed. I don't get this error when I use it locally.

I checked through the possible solutions. I have manually edited the
"datastore-indexes.xml", writing all the fields of all the classes,
and upload it, either by clicking the "deploy" button in Eclipse, or
using the command line "appcfg.cmd update_indexes <my-war-location>"
to update the index.

Now the current condition is: in some way when I change the code, the
Data Store Indexes in Admin Console display

"Course  courses_INTEGER_IDX ▲  Includes ancestors  Serving
Evaluation  evaluations_INTEGER_IDX ▲  Includes ancestors Serving"

Yup "Course" and "Evaluation" are indeed some of my Java Persistent
Classes. But what about other data classes? I did defined them in the
datastore-indexes.xml

Then when I tried to create a new object Student. The above error
appears. But after the error, the Data Store Indexes in Admin Console
now display

"Course  courses_INTEGER_IDX ▲  Includes ancestors  Serving
Evaluation  evaluations_INTEGER_IDX ▲  Includes ancestors Serving
Student team ▲ , googleAccount ▲        Serving"

with Student kind lacking some fields.

Then no matter how I change the code or the datastore-indexes.xml
file, no more other kinds are created. And the
"DatastoreNeedIndexException" constantly occurs.

I would like to ask how does the server generate all these indexes and
kinds? I have already defined my own indexes, why can't it follow my
definition? (auto-generate also does not work) Sometimes I was
doubting if my updated indexes file has been uploaded or not, as
there's no place for me to check.

Could anyone help me understand this? My project has been stuck here
for quite a few days:-(

-- 
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