Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jeresy "handshake_failure" error  RSS feed

Priyanka Padukone
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a script that would hit a web service using Jersey (input to the web service call is a Json request). It was working fine until the Mutual Authentication was implemented and my script needed to handle the exchange of certs. Inputting the VM parameters in the eclipse (, etc ) did not work because I realized the jersey client version (1.14) was unable to read them. So I upgraded my jersey client to 2.12 and used the script below but I am getting the exception listed.

My current script that I am trying to run – Looks like its failing at the get() part of the code ( in the last line). Can someone help me out ?

SslConfigurator sslConfig = SslConfigurator.newInstance().trustStoreFile("C:\\Program Files (x86)\\Java\\jre6\\lib\\security\\cacerts").trustStorePassword("changeit")



SSLContext sslContext = sslConfig.createSSLContext();


Client client = (Client) ClientBuilder.newBuilder().sslContext(sslContext).build();"https://sl73dmtreapq001:8443/hadoopws/analytics/dmreplay/v1/jobs/").request().get();

Exception that I am getting - Received fatal alert: handshake_failure

at org.glassfish.jersey.client.HttpUrlConnector.apply(

at org.glassfish.jersey.client.ClientRuntime.invoke(

at org.glassfish.jersey.client.JerseyInvocation$

at org.glassfish.jersey.client.JerseyInvocation$

at org.glassfish.jersey.internal.Errors.process(

at org.glassfish.jersey.internal.Errors.process(

at org.glassfish.jersey.internal.Errors.process(

at org.glassfish.jersey.process.internal.RequestScope.runInScope(

at org.glassfish.jersey.client.JerseyInvocation.invoke(

at org.glassfish.jersey.client.JerseyInvocation$Builder.method(
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!