![](https://secure.gravatar.com/avatar/752348b72a0f4331f256a1caf28eed29.jpg?s=120&d=mm&r=g)
On Tue, Oct 12, 2010 at 10:18 PM, David Kirkman <dkirkman@ucsd.edu> wrote:
I don't have httpcomponents, so this is not tested ...
But your problem is probably that (jmethod client-class "execute") is looking for a zero argument execute method, and the class does not have one. Based on the api docs (and your attempted method call), I think you want
(jmethod client-class "execute" "org.apache.http.client.methods.HttpUriRequest")
Or if you don't mind paying a certain runtime penalty on each invocation, you can use the shorter (jcall "execute" client-obj get-obj) and let ABCL figure out the exact method to call. Also you can use url directly if it's a Lisp string because ABCL will convert it to a Java string automatically when you pass it to a Java method. hth, Alessio