Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 91081200BB1 for ; Thu, 3 Nov 2016 13:18:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8F94A160AFF; Thu, 3 Nov 2016 12:18:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D783F160AFE for ; Thu, 3 Nov 2016 13:18:10 +0100 (CET) Received: (qmail 53217 invoked by uid 500); 3 Nov 2016 12:18:09 -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 53205 invoked by uid 99); 3 Nov 2016 12:18:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 12:18:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B58D818030C for ; Thu, 3 Nov 2016 12:18:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.693 X-Spam-Level: * X-Spam-Status: No, score=1.693 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id k7kFZQmfBWMs for ; Thu, 3 Nov 2016 12:18:06 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id EE4885F24F for ; Thu, 3 Nov 2016 12:18:05 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id t79so96955613wmt.0 for ; Thu, 03 Nov 2016 05:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=jDk2IkptioAKwbPVID7rYK9ov5LOEKYunpbW7VG7o48=; b=peARqIF/hjLtbOisjZ0Eva2m2z/wfL75UD7V6NLStQRcro63+dp8zUGOOGY7HoC8AK R4XYqEcAF9tZDl32irt0LMB9Al+SKwuPK1MCOcejjtCh3h9VweRBfyYHV0eES1aDYsTh P5dUDuEnNihurS/hR6onLnPi69ysJv0yTvNJCGyhoB5Uofw9JmCSkgz8/owRS5Rh5HO4 c9DDNLHvZlkPTaUo9zE3/0tENHSeUi8Z/vUEoL2e+vIMG3C3rDhIVvhm5N5Z0fk65489 NEO6ls9YQsXUo1/GnysBuERmCbCjlxLEIZaGMjdu0iJxyqupdi81Qq4h3gfoaHkOSo9z oxdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=jDk2IkptioAKwbPVID7rYK9ov5LOEKYunpbW7VG7o48=; b=ATn3cfQmL3y9Q3ySGjj54NH88pR7Oo4z96MYoyewdkBGI2idRcT4mxSGzwfb0QTXLu bLvtlgUYF7C9m+agynxL9tyBbZjWaSaClOvEuYYgUOe2JUVg/wnA0hSgtJYAd+hXWBzQ AO946SUCL1AeL4uvmwryyfUO5yvhnH+bqCL/SR7K5t/T+9tSUiV0bFoz6D8j0j/qAYIz YhyraO0TOiZRN6yvbeel/kXASe9BgsKZuQTdGTh/qCYAPjwc7ruFJSm1Gkj2G/GKo/IF e64IAhOOk/e0Eb5+X4qFVhNfPTFhMjUle5zLnliq+EyypMH1fj1nCMbIPoP1QNRXgfXe Pf7A== X-Gm-Message-State: ABUngvcIMqX7B+hB6uIDFhOPT30lFde8wVRRSLNidHaFke0Uw2Kn8TWrqqQD/Yy5lmIgTQ== X-Received: by 10.28.14.65 with SMTP id 62mr1719153wmo.3.1478175484779; Thu, 03 Nov 2016 05:18:04 -0700 (PDT) Received: from [10.36.226.98] ([80.169.137.53]) by smtp.googlemail.com with ESMTPSA id w1sm8236336wje.36.2016.11.03.05.18.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2016 05:18:04 -0700 (PDT) Subject: Re: cxf rs deadlock waiting for response To: users@camel.apache.org References: <1478163954391-5789687.post@n5.nabble.com> <1478168207088-5789692.post@n5.nabble.com> From: Sergey Beryozkin Message-ID: Date: Thu, 3 Nov 2016 12:18:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478168207088-5789692.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit archived-at: Thu, 03 Nov 2016 12:18:11 -0000 Hi You are right, it is a new code which was added to avoid some synchronization issues in case of the async client invocations. FYI, the existing CXF RS oneway tests still work with this code but only because the client does set a oneway CXF exchange status before the invocation, in case of the proxy it is done if a CXF @OneWay method annotation is available, in case of WebClient if a 'OnewayRequest' HTTP header is set. I'm going to fix it shortly: https://issues.apache.org/jira/browse/CXF-7113 Cheers, Sergey On 03/11/16 10:16, Preben.Asmussen wrote: > I debugged a bit to get closer. > > The root problem is in org.apache.cxf.jaxrs.client.AbstractClient as the > threaddump shows > > the block in line 564 gets activated > > if (ex == null && !exchange.isOneWay()) { > synchronized (exchange) { > while (exchange.get("IN_CHAIN_COMPLETE") == null) { > exchange.wait(cfg.getSynchronousTimeout()); > } > } > } > > The exchange.isOneWay returns false. Shouldn't it return true since it's a > inonly exchange ??? > And the while loop continues infinite since IN_CHAIN_COMPLETE is allways > null > > /Preben > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/cxf-rs-deadlock-waiting-for-response-tp5789687p5789692.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/