[英]AppEngine Error: java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add
Im using AppEngine SDK 1.7.0 in my webapp. 我在webapp中使用AppEngine SDK 1.7.0。 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. 我相信他们(google)已将Index.add()更改为Index.put(Document ... docs),以了解API文档的最新版本。
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index
AddResponse was deprecated and removed from the SDK. 不推荐使用AddResponse并将其从SDK中删除。 http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes
http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes
You need to remove all reference to that class and then redeploy. 您需要删除所有对该类的引用,然后重新部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.