Page tree
Skip to end of metadata
Go to start of metadata

Introduction

This issue affects the version prior to 5.2.6.0 with the SAP Content server version 7.53.


Question or Problem

Scenario:

  • You try to upload originals to the SAP Content server.

Problem:

  • When uploading originals ECTR uses the HTTP "PUT" Method, the Content server does not always close the upload connection.
    ECTR then uses the same connection again but the Content server does not react to this upload.
  • You will find such an error in the log file:
[11:47:16.816] CNV                   Could not close streams. java.net.SocketException: Unexpected end of file from serverDie Datei konnte nicht hochgeladen werden: 'c:\temp\....pdf'
[11:47:16.816] CNV                   java.net.SocketException: Unexpected end of file from server
[11:47:16.816] CNV                   	at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
[11:47:16.816] CNV                   	at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
[11:47:16.816] CNV                   	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
...



Caused by

SAP Content version 7.53 with patch 919.

See note 3136489 - ICM and Web Dispatcher crash in function HttpPlugInHandleNetData


Workaround for Content server

Add the following line to the Content Server profile:
icm/HTTP/mod_0 = PREFIX=/, FILE=$(DIR_PROFILE)/mod_0.txt

Then, create the file mod_0.txt in the profile folder with the following content:
SetResponseHeader Connection Close

Restart the Content Server and test.

Workaround in ECTR

Set the following preference in the customize\config\default.txt.

With this change ECTR will use "POST" method for upload files which seems to not trigger this error in the content server.

plm.http.upload.usePostMethod = true

ECTR will change the standard method to "POST" in future because this method allows to upload files larger than 2GB.


Solution

See note 3163841 - Failure after PUT request when HTTP/1.1 is used (connection re-use)


See also

3069433 - SAP ECTR Frontend Read timed out error