Service Virtualization

  • 1.  SSL Exception while posting a message using REST Step

    Posted May 29, 2016 11:57 PM

    I am trying to use REST step to post a message.  When I post it using SOAP UI or Advanced Rest client, I am able to
    post the message and getting successful response. However,
    When I post it using REST Step I am getting SSLException as
    mentioned below. The screen shots are attached. Could you please let me know if I have missed any inputs?

     

    ============================================================================

    | HTTP

    ============================================================================

    | Step:        http POST
    /Product/DCSDigitalProductTradeInfo

    ----------------------------------------------------------------------------

    | Message:     javax.net.ssl.SSLException:
    Received fatal alert: unexpected_message

    ----------------------------------------------------------------------------

    | Trapped Exception: Received fatal alert: unexpected_message

    | Trapped Message:   javax.net.ssl.SSLException:
    Received fatal alert: unexpected_message

     

     

    Full Error message

     

    ============================================================================
    | HTTP
    ============================================================================ |
    Step: http POST /Product/DCSDigitalProductTradeInfo
    ---------------------------------------------------------------------------- |
    Message: javax.net.ssl.SSLException: Received fatal alert: unexpected_message
    ---------------------------------------------------------------------------- |
    Trapped Exception: Received fatal alert: unexpected_message | Trapped Message:
    javax.net.ssl.SSLException: Received fatal alert: unexpected_message
    ----------------------------------------------------------------------------
    STACK TRACE javax.net.ssl.SSLException: Received fatal alert:
    unexpected_message 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.test.CommTrans.doSend(CommTrans.java:1026) at
    com.itko.lisa.test.CommTrans.send(CommTrans.java:815) at
    com.itko.lisa.test.CommTrans.sendPOST(CommTrans.java:793) at
    com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:214) at
    com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:168) at
    com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:362) at
    com.itko.lisa.test.TestNode.executeNode(TestNode.java:981) at
    com.itko.lisa.test.TestCase.execute(TestCase.java:1295) at
    com.itko.lisa.test.TestCase.execute(TestCase.java:1210) at
    com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195) at
    com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1057) at
    com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70) at
    com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:964) at
    com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194) at
    java.lang.Thread.run(Unknown Source)
    ============================================================================



  • 2.  Re: SSL Exception while posting a message using REST Step
    Best Answer

    Posted May 31, 2017 04:37 PM

    Does this endpoint expect any custom certificates (jks files) that you have not configured in DevTest?

     

    Try running the test from Workstation after enabling the HTTP / SSL debug setting.   

    A window will open at the bottom of Workstation and some SSL Handshake information will display when you run the test case. You might see something that helps in diagnosing the issue.  The output will contain things like:



  • 3.  Re: SSL Exception while posting a message using REST Step

    Broadcom Employee
    Posted Aug 28, 2017 11:01 AM

    Were you able to follow Joel's suggestion to get more detail on the error you are getting?



  • 4.  Re: SSL Exception while posting a message using REST Step

    Posted Apr 12, 2018 05:51 AM

    Yes i am getting same error  

    Can you please help me out on this issue?

     

     

    thanks 

    Kasi