AnsweredAssumed Answered

Way to set non-http standard code like 701, 702 etc.

Question asked by AVSDevTest on Jun 6, 2016
Latest reply on Jun 6, 2016 by AVSDevTest

Hi All,

I have recorded a transaction which is sending non-standard http code as 701 and 702 etc. When I deploy my virtual service and trying to access it using DevTest testcase, it is throwing error as org.apache.http.NoHttpResponseException. It seems Virtual HTTP/S Responder step is VSM causing this problem by validating HTTP response headers.

 

============================================================================
| java.lang.RuntimeException: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=701
============================================================================
| 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=701
----------------------------------------------------------------------------
| Trapped Exception: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=701
| Trapped Message: java.lang.RuntimeException: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=701
----------------------------------------------------------------------------
STACK TRACE
java.lang.RuntimeException: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=701
at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.setResponseInfo(HttpRespondStep.java:310)
at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.setupResponseInfoHeaderAndContent(HttpRespondStep.java:174)
at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.respond(HttpRespondStep.java:125)
at com.itko.lisa.vse.stateful.BaseRespondStep.execute(BaseRespondStep.java:231)
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.test.TestCase.executeTest(TestCase.java:1136)
at com.itko.lisa.coordinator.Instance.run(Instance.java:204)

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

 

Thanks.

Outcomes