循环身份验证错误



我正在使用recurlyclient maven依赖项,并且在recurlyclient.java中出现错误

错误提示

" java.lang.NoSuchMethodError:com.ning.http.client.AsyncHttpClientConfig Builder.setMaximumConnectionsPerHost美元(I) Lcom/宁/http/客户/美元AsyncHttpClientConfig Builder"

这是关于recurlyClient.open()

请帮我解决这个问题

这很可能是async-http-client库的版本不匹配。

运行时可用的async-http-client版本是什么?在v1.8.0(以及之前的版本)中,setMaximumConnectionsPerHost(int)方法在v1.9.0中被重命名为setMaxConnectionsPerHost(int)方法。

所以你使用的代码或某个库的特定版本被编码为v1.8.0或更少的async-http-client,但在运行时,你可以使用它的v1.9.0。查看Maven依赖树来解决这个问题。

最新更新