简体   繁体   中英

AppEngine Error: java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add

Im using AppEngine SDK 1.7.0 in my webapp. Recently, errors was log as

Caused by: java.lang.NoSuchMethodError:
com.google.appengine.api.search.Index.add([Lcom/google/appengine/api/search/Document;)
Lcom/google/appengine/api/search/AddResponse;

The error just happened recently, it doesn't have the problem before.

I believe they(google) have changed Index.add() to Index.put(Document ...docs), regards to the latest version of API doc.

https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index

AddResponse was deprecated and removed from the SDK. http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes

You need to remove all reference to that class and then redeploy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM