Hi David,

Please plugin the org.restlet.ext.net.jar to replace the default connector
with a more stable one. It will probably help.

Best regards,
Jerome
--
http://restlet.org
http://twitter.com/#!/jlouvel




2013/4/21 David Leangen <[email protected]>

>
> Hello!
>
> After a few weeks of absence, I am trying once again to set up restlet in
> my OSGi environment. Using version 2.2-M1.
>
> I am making a call like this:
>
>             final Client client = new Client( new Context(), Protocol.
> HTTPS );
>             final ClientResource clientResource = new ClientResource( url
>  );
>             clientResource.setNext( client );
>             final ChallengeResponse authentication = newChallengeResponse( 
> ChallengeScheme.
> HTTP_BASIC, "pwd", "" );
>             clientResource.setChallengeResponse( authentication );
>             final Representation r = clientResource.get();
>             r.write( System.out );
>             r.release();
>             client.stop();
>
> Sometimes I get back a valid reply, but most times I get back this error:
>
> Communication Error (1001) - The connector failed to complete the
> communication with the server
>
> What confuses me is why this would work sometimes, but not others. Any
> hints?
>
> Best regards,
> =David
>
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3053947

Reply via email to