AnsweredAssumed Answered

SSL Exception while posting a message using REST Step

Question asked by thira10 Employee on May 30, 2016
Latest reply on Apr 12, 2018 by kasina

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)
============================================================================

Attachments

Outcomes