Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 522949897 for ; Fri, 31 Aug 2012 15:57:09 +0000 (UTC) Received: (qmail 5898 invoked by uid 500); 31 Aug 2012 15:57:08 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 5851 invoked by uid 500); 31 Aug 2012 15:57:08 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 5843 invoked by uid 99); 31 Aug 2012 15:57:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 15:57:08 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of k.petrauskas@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 15:57:04 +0000 Received: by qcab12 with SMTP id b12so2753109qca.32 for ; Fri, 31 Aug 2012 08:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XLmpMY+7R3xZ67gHb/iwzQB2pGficH1lxIvC+BFL1GE=; b=WePhMRNopZh+fvvBgk3P0ZnavGlq6vWrsz2b8IMJtr5KKzWIZZ0T4L83ZjCWiTQBc+ I1qy/5uZBOoHqH61GUi4eEgLj/PSV7nO8Ub1aGedNFBPSh5MSOFyi+AXw2aNl12wZzyO VkqwGbOytsI/rUDt5M+SYeLagQ7bpDB4p/jerxpSN7Glta09Piz7SEWK8SOdxHV9Fn9b MxWi3KQEbkwVq4UiLkhz+EDio80tpFKacSKSFO2I6f6rB3cBtZ3C0W50OKnYEvDp+3oG DQqK9wMKTiZrC2wp9w+w+qp0803IMPKoM/ZE0pHHeJ2S6n+o5mGGhhDucuUTW33XxvLz WpcA== MIME-Version: 1.0 Received: by 10.229.135.67 with SMTP id m3mr5133050qct.26.1346428603872; Fri, 31 Aug 2012 08:56:43 -0700 (PDT) Received: by 10.49.117.9 with HTTP; Fri, 31 Aug 2012 08:56:43 -0700 (PDT) In-Reply-To: References: <1346421685611-5718473.post@n5.nabble.com> Date: Fri, 31 Aug 2012 18:56:43 +0300 Message-ID: Subject: Re: Jetty component cuts response From: Karolis Petrauskas To: users@camel.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Have you tried to disable the chunking? It should be configurable via conduit of the "real" application. Best regards, Karolis On Fri, Aug 31, 2012 at 5:42 PM, Claus Ibsen wrote: > Hi > > There were some issues with that chunked true|false and some of the > http components, cutting data in binary or ascii mode. > There is possible some JIRA tickets you can find about this. > > And if possible try outside SMX with a pure Camel app, and then try > with the latest 2.9, or 2.10 release to see if its fixed for you. > > > On Fri, Aug 31, 2012 at 4:01 PM, gasius wrote: >> Hi, >> >> I created some proxy application using Jetty component (on ServiceMix >> v4.4.2, Camel version 2.8.5) and the problem is that larger responses are >> cut to 7601 bytes. For example my Camel route looks like this: >> >> from >> /jetty:http://0.0.0.0:9080/MyApplication/MyService?bridgeEndpoint=true&disableStreamCache=true&throwExceptionOnFailure=false&chunked=false&enableMultipartFilter=false/ >> to >> /jetty:http://127.0.0.1:9083/MyRealApplication/MyService?bridgeEndpoint=true&disableStreamCache=true&throwExceptionOnFailure=false/ >> >> Everything works as expected while response from MyRealApplication is under >> 7601 otherwise I receive only partial response. I tried to add httpBinding >> which prints header information of the response. Below are headers of 7657 >> bytes response (I took Exchange object in writeResponse method of >> HttpBinding): >> >> /Header CamelHttpCharacterEncoding: UTF-8 >> Header Content-Length: 7657 >> Header CamelHttpUri: /MyApplication/MyService >> Header CamelHttpServletResponse: HTTP/1.1 200 >> Content-Type: text/xml;charset=UTF-8 >> Server: Jetty(6.1.22) >> SOAPAction: "http://MyApplication/MyService/getDelegationList" >> User-Agent: Jakarta Commons-HttpClient/3.1 >> Accept-Encoding: gzip,deflate >> Host: myhost:9080 >> Content-Length: 7601 >> >> >> Header CamelHttpServletRequest: [POST MyApplication/MyService]@29566127 >> org.eclipse.jetty.server.Request@1c324af >> Header CamelHttpResponseCode: 200 >> Header Host: myhost:9080 >> Header Server: Jetty(6.1.22) >> Header SOAPAction: "http://MyApplication/MyService/getDelegationList" >> Header CamelHttpUrl: http://myhost:9080/MyApplication/MyService >> Header Accept-Encoding: gzip,deflate >> Header CamelHttpMethod: POST >> Header CamelHttpPath: /MyApplication/MyService >> Header Content-Type: text/xml; charset=utf-8 >> Header CamelHttpQuery: null >> Header User-Agent: Jakarta Commons-HttpClient/3.1/ >> >> So according headers information I see that component received full response >> (Content-Length: 7657) but CamelHttpServletResponse contains only 7601 bytes >> (Content-Length: 7601). What am I doing wrong? >> >> >> >> -- >> View this message in context: http://camel.465427.n5.nabble.com/Jetty-component-cuts-response-tp5718473.html >> Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cibsen@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen