Hi,

On Sun, Jul 2, 2017 at 4:29 PM, Alexander Farber
<[email protected]> wrote:
> Hello Simone, when I have these lines -
>
>     private static final SslContextFactory sFactory = new
> SslContextFactory();
>     private static final HttpClient sHttpClient = new HttpClient(sFactory);
>
> then it works. But when I have
>
>     private static final HttpClient sHttpClient = new HttpClient();
>
> in
> https://github.com/afarber/jetty-newbie/blob/master/FcmNotRegistered/src/main/java/de/afarber/fcmnotregistered/Main.java
>
> then it reports "java.net.NoRouteToHostException: No route to host"
>
> So I should have read the docs more carefully,
> but the reported error seems a bit misleading to me...

It's not an error that is reported by Jetty, it is reported by the
JVM. Jetty only forwards it.
It should not matter whether you use TLS or not, this is a lower level problem.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to