jira-client icon indicating copy to clipboard operation
jira-client copied to clipboard

JiraClient(HttpClient httpClient, String uri, ICredentials creds) method is not available in published 0.5 Version

Open sarathimca opened this issue 8 years ago • 2 comments

Hi ,

I do not get a method to set proxy for JiraClient on 0.5 Version. Can you make sure this is to avaiable ? Please do the needfull ASAP.

sarathimca avatar Nov 28 '16 07:11 sarathimca

@sarathimca I guess, in order to use a proxy server, we can pass a JVM argument to use proxy server for some hosts.

JAVA_FLAGS=-Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8800
java ${JAVA_FLAGS} ...

Also, if you don't want to use proxy for some hosts (like localhost, 127.0.0.1, etc), then use the following in addition to the above.

-Dhttp.nonProxyHosts="localhost|127.0.0.1|10.*.*.*|*.foo.com‌​|etc"

I got this answer from this thread in Stack Overflow: http://stackoverflow.com/a/120802

Please let me know how it goes.

vivganes avatar Nov 28 '16 13:11 vivganes

@vivganes Thanks for your response. Yeah I tired this method and I passed arguments to JVM with Proxy Settings. But those things are not helps to me and I'm getting below stacktrace message

Passed Arguments: -Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=0000 (And I tried with nonProxyHosts also)

Console Message: Nov 28, 2016 7:23:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Malformed reply from SOCKS server Nov 28, 2016 7:23:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: Retrying connect Nov 28, 2016 7:28:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Malformed reply from SOCKS server Nov 28, 2016 7:28:21 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: Retrying connect

sarathimca avatar Nov 28 '16 13:11 sarathimca