Grails:org.codehaus.groovy.runtime.InvokerInvocationException:java.lang.NoSuchMethodError:org / apache / http / protocol / BasicHttpContext。<init>()V </init>

时间:2013-05-01 19:15:16

标签: rest grails rest-client

我正在使用grails restclient插件(':rest:0.7')来使用rest grails rest services。

这是我的代码:

    def restClient = new RESTClient(ServiceURL)
    def httpResponseDecorator = restClient.get(query: requestMessage)
    pdfData = handleServiceResponse(httpResponseDecorator)

但是得到了以下错误:

  

java.lang.NoSuchMethodError:   org / apache / http / protocol / BasicHttpContext。()V at   org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)     在   org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)     在org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)     在   org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)     在   org.apache.jk.common.ChannelSocket $ SocketConnection.runIt(ChannelSocket.java:898)     在java.lang.Thread.run(Thread.java:736)引起:   org.codehaus.groovy.runtime.InvokerInvocationException:   java.lang.NoSuchMethodError:   组织/阿帕奇/ HTTP /协议/ BasicHttpContext。()V

知道如何解决此问题吗?

0 个答案:

没有答案