hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Exception Unable to establish route. (with a custom ssl socket factory)
Date Tue, 02 Dec 2008 23:11:35 GMT
Olivier Lamy wrote:
> 2008/12/2 Oleg Kalnichevski <olegk@apache.org>:
>> Olivier Lamy wrote:
>>> Hi,
>>> I'm trying to write a custom ssl socket to handle self signed
>>> certificates).
>>>
>>> I have the following exception :
>>> Caused by: java.lang.IllegalStateException: Unable to establish route.
>>> planned = HttpRoute[{}->https://localhost:443]
>>> current = HttpRoute[{s}->https://localhost:443]
>>> Any ideas ?
>>>
>>> Thanks,
>>> --
>>> Olivier
>>>
>> Hi Olivier
>>
>> Apparently there is a mismatch in the security level of expected and
>> effective routes.
>>
>> I _assume_ there is something wrong with the custom socket factory you are
>> using. Does the socket factory implement LayeredSocketFactory interface?
> 
> I have implemented this interface and all works fine now.
> Thansk !
> 
>> A code snippet or a debug / wire log would be quite handy.
> 
> Commit is here : http://svn.apache.org/viewvc?view=rev&revision=722631
> (If any comment do not hesitate :-) ).
>>

Hi Olivier,

It is no longer necessary to override #hashCode() / #equals(). Otherwise 
looks all right.

Cheers

Oleg




  Oleg
>>
>>
>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
> 
> --
> Olivier
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message