Error: Premature end of Content-Length delimited message body (expected: xxxx ; received: xxxx)
search cancel

Error: Premature end of Content-Length delimited message body (expected: xxxx ; received: xxxx)

book

Article ID: 12528

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Is there any limitation with Access Gateway (SPS) with regard to file size?

When trying to download large files, we are getting the following:

[ERROR][sm-ProxyAgent-00100] Exception caught. Message is: Exception writing to response output stream : org.apache.http.ConnectionClosedException Premature end of Content-Length delimited message body (expected: xxxx ; received: xxxx)

SPS does not start to download the file, it fails during at the beginning of the transfer.

Environment

Release: 12.8.x
Component: SMSPS

Resolution

At the beginning of the transfer, AG does an internal check to compare the entity.getContentLength and Integer.MAX_VALUE

>> Integer.MAX_VALUE = 2147483647 = 2Gb.

Checking with fiddler traces, we were able to get the entity.ContentLength header : Content-Length: xxxx 

So, SPS is not able to GET/POST files that are more than 2Gb length.