VSE response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=null

book

Article ID: 8378

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)

Issue/Introduction

When I create a RRPairs VS using SOAP, the request matches but response is not sent back to the client. You get the below error in the inspection view 
| java.lang.RuntimeException: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=null 
============================================================================ 
| Step: Virtual HTTPS Responder 
---------------------------------------------------------------------------- 
| Message: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=null 
------------------------------- 


If  I create the VSM in the Workstation, I don't face this issue. 

Cause

This issue happens only when you record the VSM/SI  using RR pairs in the Portal. The reason is that , the VSI response Meta Data is missing 2 tags as displayed below. 

Http-Response-Code 
Http-Response-Code-Text 

Environment

DevTest release 10.1

Resolution

We may have a patch to address your issue. Please open a support ticket and reference DE303932.

We will be happy to provide you the fix if it matches your issue.

Additional Information

Workaround:

1.  Edit the VSI in the Portal. Click on the Advanced mode and Click on the Response Metadata tab. 

Using the + sign add the 2 values as below

HTTP-Response-Code=200 
HTTP-Response-Code-Text=OK

Close the VSI. Redeploy the Service and then try to test it again

 
2. Use the sidecar files along with the RR pairs.  The side car files are named as meta-rsp.properties. This file should contain the below properties. 
 
HTTP-Response-Code=200 
HTTP-Response-Code-Text=OK