BucketManager的stat方法遇到报错,如何解决?
严重: Servlet.service() for servlet [Qiniu] in context with path [/wonjoy-management] threw exception [Handler processing failed; nested exception is java.lang.IncompatibleClassChangeError: Found class com.squareup.okhttp.Connection, but interface was expected] with root cause
java.lang.IncompatibleClassChangeError: Found class com.squareup.okhttp.Connection, but interface was expected
at com.qiniu.http.Client$1.intercept(Client.java:39)
at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:879)
at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:760)
at com.squareup.okhttp.Call.getResponse(Call.java:274)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:230)
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:201)
at com.squareup.okhttp.Call.execute(Call.java:81)
at com.qiniu.http.Client.send(Client.java:195)
at com.qiniu.http.Client.get(Client.java:85)
at com.qiniu.storage.BucketManager.get(BucketManager.java:278)
at com.qiniu.storage.BucketManager.rsGet(BucketManager.java:268)
at com.qiniu.storage.BucketManager.stat(BucketManager.java:126)
引入的jar包分别是 okio-1.3.0-SNAPSHOT.jar,okhttp-2.3.0-SNAPSHOT.jar,qiniu-java-sdk-7.0.8.jar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论