hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy" <ol...@apache.org>
Subject Re: Exception Unable to establish route. (with a custom ssl socket factory)
Date Tue, 02 Dec 2008 22:30:26 GMT
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 :-) ).
>
> 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


Mime
View raw message