AnsweredAssumed Answered

Facing "javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure" exception while hitting a https endpoint.

Question asked by yaduvanshi_pankaj on Jan 13, 2016
Latest reply on Apr 3, 2017 by monasharma

Use case: soap request works fine in soap ui without any extra configuration, Only by adding Wss Username/password in SOAP header.but same request throws below error when tried from LISA,

 

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <soapenv:Body>

    <soapenv:Fault>

      <faultcode>soapenv:Server.userException</faultcode>

      <faultstring>javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure</faultstring>

      <detail>

        <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

  at sun.security.ssl.Alerts.getSSLException(Unknown Source)

  at sun.security.ssl.Alerts.getSSLException(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

  at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535)

  at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)

  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)

  at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)

  at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)

  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)

  at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

  at com.itko.lisa.ws.axis.LisaHTTPSender.doInvoke(LisaHTTPSender.java:497)

  at com.itko.lisa.ws.axis.LisaHTTPSender.invoke(LisaHTTPSender.java:274)

  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

  at org.apache.axis.client.Call.invokeEngine(Call.java:2837)

  at org.apache.axis.client.Call.invoke(Call.java:2820)

  at com.itko.lisa.ws.nx.NxWSStep.executeCall(NxWSStep.java:383)

  at com.itko.lisa.ws.nx.NxWSStep.execute(NxWSStep.java:287)

  at com.itko.lisa.ws.nx.ui.NxWSStepEditor$6.run(NxWSStepEditor.java:599)</ns1:stackTrace>

        <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">LP-480FCF01EB03</ns2:hostname>

      </detail>

    </soapenv:Fault>

  </soapenv:Body>

</soapenv:Envelope>

Outcomes