It's all about the answers!

Ask a question

Issue with HttpClient in RTC 4.0.2


Chris Rowan (1146) | asked Jun 05 '13, 9:23 a.m.
I am seeing what I believe is a know bug with the Apache HttpClient, version 1.4.2, which I have confirmed is the version in my RTC4.0.2 installation. Here is a link to the issue: https://issues.apache.org/jira/browse/HTTPCLIENT-1118

It's not clear from that link which release this is fixed in. Is it possible to determine that, and upgrade the version packaged with RTC 4? Is there a way I could deploy version 1.4.1 as a workaround? Please advise how I would do this.

For reference, here is the exception I am getting in my installation:
java.net.UnknownHostException: usfdeveloper
        at java.net.InetAddress.getAllByName0(InetAddress.java:1274)
        at java.net.InetAddress.getAllByName(InetAddress.java:1196)
        at java.net.InetAddress.getAllByName(InetAddress.java:1118)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:242)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:130)
        at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)

It produces this error message:
javax.net.ssl.SSLException: hostname in certificate didn't match: <usfdeveloper/9.24.239.218> != <usfdeveloper>

Thanks

4 answers



permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered Jun 05 '13, 9:40 a.m.
Hi Chris,
I found similar defect on jazz.net https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=196230. Anyway it seems to be already fixed. I would recomment you to create new defect on jazz.net for that if you want to have it fixed.
By the way, how are you using http client library? Are you writing any extension on top of jazz.net? Or you have any issue with CLM applications usage?
Best regards,
Krzysztof Kazmierczyk

permanent link
Chris Rowan (1146) | answered Jun 05 '13, 9:43 a.m.
Sorry, plugin version number should be 4.1.2, not 1.4.2.

permanent link
Chris Rowan (1146) | answered Jun 05 '13, 9:47 a.m.
Krzysztof,

I have a plugin developed for my application which uses HttpClient. That plugin is experiencing this problem. It's not a problem for any native Jazz functionality that I have encountered to date.

Do you know if it's possible to revert to an older version of the plugin in my current 4.0.2 installation?
Regards,
Chris

permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered Jun 05 '13, 12:01 p.m.
Hello Chris,
I don't think that you can revert the version of HttpClient library. This version is used by many other components.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.