There are too many posts on this issue. I have tried almost everything and it works beautifully when I am running it on spark local.
But if I pass the url from config as a param and running on spark client, than its failing with the error
"java.lang.IllegalArgumentException: host parameter is null"
Here is what I am doing
HttpClient client = new HttpClient();
client.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
client.getHttpConnectionManager().getParams().setSoTimeout(5000);
PostMethod method = new PostMethod("https://myurl/dir/dirb");
client.executeMethod(method);
What else i am missing to make it work ?