Hi,

On Wed, Jun 5, 2019 at 2:12 AM Yuta Higuchi <[email protected]> wrote:
>
> Hi,
>
> I'm trying to find a way to properly handle error using jetty client
> and I'm facing an issue that I cannot get the root cause
> when the error is caused by certificate error.
>
> Small reproducer code:
> https://gist.github.com/YutaHiguchi-bsn/c76dfd60ac4c2c711fcaddbf6b267f3b
>
> Expectation was, Throwable I can get from the listener will be
> SSLHandshakeException, etc.
> but instead I am getting error as early EOFException.
>
> So from the client code, I cannot know that it was certificate issue.
>
> Is there proper way to get information about the root cause?
>
> I'm currently using jetty-client 9.4.18.v20190429

I tried your reproducer and it works for me, yielding correctly the
SslHandshakeException.
JDK version?

-- 
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://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to