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 1C3B610090 for ; Sun, 11 Jan 2015 09:55:37 +0000 (UTC) Received: (qmail 14837 invoked by uid 500); 11 Jan 2015 09:55:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 14783 invoked by uid 500); 11 Jan 2015 09:55:38 -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 14771 invoked by uid 99); 11 Jan 2015 09:55:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jan 2015 09:55:37 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-ig0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jan 2015 09:55:34 +0000 Received: by mail-ig0-f169.google.com with SMTP id z20so7695702igj.0 for ; Sun, 11 Jan 2015 01:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=vLV3kjipkPeyak1d1AtTGsicCgUApByTlICxoj5unJ4=; b=LQQADAMJfEsp7d40VxyYsne0HdAEO6CalhuvMdAMZDSa5jnbCPCsCfJ3dLX2+M8oP4 eUJ/tlYP4uKsmD5ldV9EjZWrv/WIaeQRxU7jbH6nruXSREfI1WjV7A+YXnLCHs2Tpozz j9Yy6kMmzhxAUj9Hmi2RKlQl1kGIoMhetJRD37QiV13HBT2bbjoXMNdilOxxJDaS0JUi tBjEBqp7behPIFxVlDbisAEhZ3AoesvD91G8q+Z9nIdz6Agy9ByB60EIUDt2rAB0Etbg h76S6ROEQNdYnqzSr4kEemLYxA9xJXcnyOo/bUf84/YvZFQ8puNOndX5U4Av+NJbKzXF cP2Q== X-Received: by 10.50.129.74 with SMTP id nu10mr10183556igb.1.1420969978504; Sun, 11 Jan 2015 01:52:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.115.100 with HTTP; Sun, 11 Jan 2015 01:52:38 -0800 (PST) In-Reply-To: <1420812329018-5761530.post@n5.nabble.com> References: <1420812329018-5761530.post@n5.nabble.com> From: Claus Ibsen Date: Sun, 11 Jan 2015 10:52:38 +0100 Message-ID: Subject: Re: Rest DSL: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 20000 millis To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Not sure what is wrong there. But setting exchangePattern=InOnly works in unit tests. You could try setting disableReplyTo=true as a workaround On Fri, Jan 9, 2015 at 3:05 PM, Ettoregia wrote: > Hi All, > > I'm facing a problem which I guess stems from the usage of MEP. > > Actually when I hit the http://localhost:8082/user/ by using a PUT verb, the > client hangs for > 20 millis and then an exception is raised (see below). I thought that by > specifying the exchangePattern=InOnly > Camel should return a response back straight away. > > Any ideas? > > -------------------------------------------------------------------------------------------------------------- > restConfiguration().component("jetty").bindingMode(RestBindingMode.json) > .host("localhost").port(8082); > > rest("/user").description("User rest service").consumes("application/json") > > .put().description("Updates or create a user") > .route() > .choice() > .when(header("firstInvocation")) > .to("activemq:queue1?exchangePattern=InOnly") > .log("######### Order received from browser rest client #########") > .otherwise() > .log("######### All done #########") > .to("mock:result") > .endChoice().endRest() > > ----------------------------------------------------------------------------------------------------------- > org.apache.camel.ExchangeTimedOutException: The OUT message was not received > within: 20000 millis due reply message with correlationID: > corrID0111111111111111111111111 not received. Exchange[Message: > {replyQueue1=replyQueue1, height=46, weight=34, age=29}] > at > org.apache.camel.component.jms.reply.ReplyManagerSupport.processReply(ReplyManagerSupport.java:133) > at > org.apache.camel.component.jms.reply.TemporaryQueueReplyHandler.onTimeout(TemporaryQueueReplyHandler.java:61) > at > org.apache.camel.component.jms.reply.CorrelationTimeoutMap.onEviction(CorrelationTimeoutMap.java:54) > at > org.apache.camel.component.jms.reply.CorrelationTimeoutMap.onEviction(CorrelationTimeoutMap.java:30) > at > org.apache.camel.support.DefaultTimeoutMap.purge(DefaultTimeoutMap.java:212) > at > org.apache.camel.support.DefaultTimeoutMap.run(DefaultTimeoutMap.java:162) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > ----------------------------------------------------------------------------------------------------------------------- > > Regards, > Ettore. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Rest-DSL-org-apache-camel-ExchangeTimedOutException-The-OUT-message-was-not-received-within-20000-mis-tp5761530.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/