Premature end of Content-Length delimited message body expected: 1998116; received: 209998

book

Article ID: 223624

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Getting the below error at the client side when a request is sent to the customized virtual service. 

------------------------
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1998116; received: 209998 -------------------------------------
Trapped Exception: Premature end of Content-Length delimited message body (expected: 1998116; received: 209998)
-----------------

Cause

The HTTP Responder step is ending and not looping to HTTP Listener step caused the issue.

Environment

Release : 10.x

Component : DevTest Virtual Service

Resolution

In VSM workflow, changing the HTTP Responder step to goto HTTP Listener step instead of End step should resolve the issue.