Hi Shakila,

Shall we try disable chunking. [1] However this is to check if this is due
to that and original issue needs to be fixed.

@Senduran -  I guess we have done some logic when building message with
content-length. Can this be due to that?

[1]
https://docs.wso2.com/display/ESB490/HTTP+Transport+Properties#HTTPTransportProperties-DISABLE_CHUNKING

On Tue, Jun 21, 2016 at 5:07 PM, Shakila Sivagnanarajah <[email protected]>
wrote:

> Hi,
>
> I am testing the initMultipartUpload method of amazon s3 with ESB 5.0.0.
> Backend sends response to the ESB. But the ESB responds with empty payload.
> Please refer the log [1]. It is working with ESB 4.9.0 see the log [2].
> What could be the reason?
>
> [1]
> [2016-06-21 16:48:04,748] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "POST /testFile1.txt?uploads HTTP/1.1[\r][\n]"
> [2016-06-21 16:48:04,748] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "x-amz-date: Tue, 21 Jun 2016 11:18:04 GMT[\r][\n]"
> [2016-06-21 16:48:04,748] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Accept-Language: en-US,en;q=0.8[\r][\n]"
> [2016-06-21 16:48:04,748] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Cookie: lang=en[\r][\n]"
> [2016-06-21 16:48:04,748] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Authorization: xxxxxxxx[\r][\n]"
> [2016-06-21 16:48:04,748] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Action: urn:initMultipartUpload[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Accept-Encoding: gzip, deflate[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Content-Type: application/xml; charset=UTF-8[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Accept: */*[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Cache-Control: no-cache[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Transfer-Encoding: chunked[\r][\n]"
> [2016-06-21 16:48:04,749] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Host: 1466507117851testconbkt2.s3-us-west-2.amazonaws.com[\r][\n]"
> [2016-06-21 16:48:04,750] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "Connection: Keep-Alive[\r][\n]"
> [2016-06-21 16:48:04,750] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2016-06-21 16:48:04,750] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "[\r][\n]"
> [2016-06-21 16:48:04,750] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "0[\r][\n]"
> [2016-06-21 16:48:04,750] DEBUG - wire HTTP-Sender I/O dispatcher-2 <<
> "[\r][\n]"
> [2016-06-21 16:48:05,053] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "HTTP/1.1 200 OK[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "x-amz-id-2:
> swWN4ioLBfq+UI0dG/Q5JNZiO3kF0WUtQFcPHdXNbwBZTQWCHe+UVBofLziUN+Kx1KCqIcnzIWI=[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "x-amz-request-id: 30C4DB66CC48AD91[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "Date: Tue, 21 Jun 2016 11:18:05 GMT[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "Transfer-Encoding: chunked[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "Server: AmazonS3[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "[\r][\n]"
> [2016-06-21 16:48:05,054] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "16c[\r][\n]"
> [2016-06-21 16:48:05,055] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "<?xml version="1.0" encoding="UTF-8"?>[\n]"
> [2016-06-21 16:48:05,055] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "<InitiateMultipartUploadResult xmlns="
> http://s3.amazonaws.com/doc/2006-03-01/
> "><Bucket>1466507117851testconbkt2</Bucket><Key>testFile1.txt</Key><UploadId>wz7KY6utQJR7xt1fyIbLbp.xs6Rfbbp71Ngxo8kZ1jNJEZDIMTdLvtMQ.F1CqNXkboQC8PNmKhEmaSuXVMpvm.a2RfRo56efGkBV__pRFw7tNA5hmxSch9fKw1Q8Krr9</UploadId></InitiateMultipartUploadResult>[\r][\n]"
> [2016-06-21 16:48:05,055] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "0[\r][\n]"
> [2016-06-21 16:48:05,055] DEBUG - wire HTTP-Sender I/O dispatcher-2 >>
> "[\r][\n]"
> [2016-06-21 16:48:05,059] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "HTTP/1.1 200 OK[\r][\n]"
> [2016-06-21 16:48:05,060] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "Content-Type: application/xml; charset=UTF-8[\r][\n]"
> [2016-06-21 16:48:05,060] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "Date: Tue, 21 Jun 2016 11:18:05 GMT[\r][\n]"
> [2016-06-21 16:48:05,060] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "Transfer-Encoding: chunked[\r][\n]"
> [2016-06-21 16:48:05,060] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "Connection: keep-alive[\r][\n]"
> [2016-06-21 16:48:05,060] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "[\r][\n]"
> [2016-06-21 16:48:05,061] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "0[\r][\n]"
> [2016-06-21 16:48:05,061] DEBUG - wire HTTP-Listener I/O dispatcher-1 <<
> "[\r][\n]"
>
> [2]
>
>
> [2016-06-21 16:51:12,774]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,774] DEBUG - wire << "POST /testFile1.txt?uploads
> HTTP/1.1[\r][\n]"
> [2016-06-21 16:51:12,774]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,774] DEBUG - wire << "x-amz-date: Tue, 21 Jun 2016
> 11:21:12 GMT[\r][\n]"
> [2016-06-21 16:51:12,774]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,774] DEBUG - wire << "Authorization: xxxxxxxx[\r][\n]"
> [2016-06-21 16:51:12,774]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,774] DEBUG - wire << "Action:
> urn:initMultipartUpload[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,774] DEBUG - wire << "Accept-Charset: UTF-8[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "Content-Type: application/xml;
> charset=UTF-8[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "Accept: text/html, image/gif,
> image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "Host:
> 1466508070689testconbkt2.s3-us-west-2.amazonaws.com:80[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "User-Agent:
> Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2016-06-21 16:51:12,775]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "[\r][\n]"
> [2016-06-21 16:51:12,776]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,775] DEBUG - wire << "0[\r][\n]"
> [2016-06-21 16:51:12,776]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:12,776] DEBUG - wire << "[\r][\n]"
> [2016-06-21 16:51:13,069]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,069] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
> [2016-06-21 16:51:13,069]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,069] DEBUG - wire >> "x-amz-id-2:
> w0azHoqQl6/VDsj1EHxRjSrA7Y5oz6KQ4lkNiByA+SytEVYSXAZHGrVqNcv2424NE+tomA2TRl0=[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "x-amz-request-id:
> 105A8CFB808D7670[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "Date: Tue, 21 Jun 2016 11:21:13
> GMT[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "Transfer-Encoding:
> chunked[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "Server: AmazonS3[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "16c[\r][\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "<?xml version="1.0"
> encoding="UTF-8"?>[\n]"
> [2016-06-21 16:51:13,070]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,070] DEBUG - wire >> "<InitiateMultipartUploadResult
> xmlns="http://s3.amazonaws.com/doc/2006-03-01/
> "><Bucket>1466508070689testconbkt2</Bucket><Key>testFile1.txt</Key><UploadId>Wp97InORPAJ.OqTsyncwizBbByUw1nZJ7SThkchnS_X.d.YPvLoR7aCB53TuT7uiB7ylbjd8OnX69bGRWFt6oBM_4lXMw5HFqLmh0si_RyJT3iKlV_lZ69RtpOfKBhE3</UploadId></InitiateMultipartUploadResult>[\r][\n]"
> [2016-06-21 16:51:13,074]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,074] DEBUG - wire >> "0[\r][\n]"
> [2016-06-21 16:51:13,074]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,074] DEBUG - wire >> "[\r][\n]"
> [2016-06-21 16:51:13,077]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,077] DEBUG - wire << "HTTP/1.1 200 OK[\r][\n]"
> [2016-06-21 16:51:13,077]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,077] DEBUG - wire << "Date: Tue, 21 Jun 2016 11:21:12
> GMT[\r][\n]"
> [2016-06-21 16:51:13,077]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,077] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2016-06-21 16:51:13,077]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,077] DEBUG - wire << "Connection: keep-alive[\r][\n]"
> [2016-06-21 16:51:13,078]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,078] DEBUG - wire << "[\r][\n]"
> [2016-06-21 16:51:13,078]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,078] DEBUG - wire << "16c[\r][\n]"
> [2016-06-21 16:51:13,078]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,078] DEBUG - wire << "<?xml version="1.0"
> encoding="UTF-8"?>[\n]"
> [2016-06-21 16:51:13,078]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,078] DEBUG - wire << "<InitiateMultipartUploadResult
> xmlns="http://s3.amazonaws.com/doc/2006-03-01/
> "><Bucket>1466508070689testconbkt2</Bucket><Key>testFile1.txt</Key><UploadId>Wp97InORPAJ.OqTsyncwizBbByUw1nZJ7SThkchnS_X.d.YPvLoR7aCB53TuT7uiB7ylbjd8OnX69bGRWFt6oBM_4lXMw5HFqLmh0si_RyJT3iKlV_lZ69RtpOfKBhE3</UploadId></InitiateMultipartUploadResult>[\r][\n]"
> [2016-06-21 16:51:13,078]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,078] DEBUG - wire << "0[\r][\n]"
> [2016-06-21 16:51:13,078]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2016-06-21 16:51:13,078] DEBUG - wire << "[\r][\n]"
>
> Thanks
>
> --
> Shakila Sivagnanarajah
> Software Engineer
> Mobile :+94 (0) 768 856837
> [email protected]
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>



-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to