Service Virtualization

 View Only
Expand all | Collapse all

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

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

    Posted Jan 13, 2016 06:09 AM

    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>



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

    Posted Jan 20, 2016 11:54 PM

    Any Help for me?



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

    Posted Feb 04, 2016 01:35 AM

    Hi Pankaj,

     

    Is the above issue resolved for you? If yes, can you please post the implemented solution. We are also facing the same issue while testing a secure service through LISA 8.2 Test.

     

    Thanks,

    Sonak



  • 4.  Re: Facing "javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure" exception while hitting a https endpoint.
    Best Answer

    Posted Feb 10, 2016 10:59 PM

    Resolved! It was Devtest Certificate issue, Got new webserver.jks file and it is working fine now



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

    Posted Apr 03, 2017 02:02 PM

    Hello,


    Can you please tell me where did you get the webserver.jks file from?