Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 53935 invoked from network); 25 Aug 2010 16:02:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Aug 2010 16:02:12 -0000 Received: (qmail 93167 invoked by uid 500); 25 Aug 2010 16:02:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 93123 invoked by uid 500); 25 Aug 2010 16:02:11 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 93115 invoked by uid 500); 25 Aug 2010 16:02:11 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 93112 invoked by uid 99); 25 Aug 2010 16:02:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 16:02:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 16:02:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7PG1laj007632 for ; Wed, 25 Aug 2010 16:01:47 GMT Message-ID: <25595293.16131282752107360.JavaMail.jira@thor> Date: Wed, 25 Aug 2010 12:01:47 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-3081) netty timeout exception In-Reply-To: <23976843.16091282751147324.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61418#action_61418 ] Claus Ibsen commented on CAMEL-3081: ------------------------------------ See the release notes for Camel 2.4.0 http://camel.apache.org/camel-240-release.html It explains that you must set the timeout to 0 as it doesnt work in Camel 2.4. Try using 2.5-SNAPSHOT > netty timeout exception > ----------------------- > > Key: CAMEL-3081 > URL: https://issues.apache.org/activemq/browse/CAMEL-3081 > Project: Apache Camel > Issue Type: Bug > Components: camel-netty > Affects Versions: 2.4.0 > Environment: tomcat > Reporter: Anand > Priority: Critical > > eventhough message was received by netty procuder, it thows a timeout exception after 30 secs. here is the route and log. as this is a basic functionality I think this is critical priority. > from("netty:tcp://localhost:6205?textline=true&sync=true").process(new Processor() { > int i=0; > public void process(Exchange exchange) throws Exception { > String body = exchange.getIn().getBody(String.class); > Thread.sleep(5000); > exchange.getOut().setBody("Bye 1" + body); > // if(i++%2==1) throw new IOException("custom exception"); > } > }); > from("file:///test/test/response") > .convertBodyTo(String.class) > .threads(1) > .to(ExchangePattern.InOut,"netty:tcp://localhost:6205?textline=true&sync=true") > .to("log:+++ reply++++"); > 2010-08-25 11:33:29,963 [1 - file:///test/test/response] FileConsumer DEBUG Total 1 files to consume > 2010-08-25 11:33:29,963 [1 - file:///test/test/response] FileConsumer DEBUG About to process file: GenericFile[C:\test\test\response\hello1.txt] using exchange: Exchange[GenericFileMessage with file: GenericFile[C:\test\test\response\hello1.txt]] > 2010-08-25 11:33:31,510 [ Camel Thread 6 - Threads] SendProcessor DEBUG >>>> Endpoint[tcp://localhost:6205] Exchange[GenericFileMessage with body: hello1] > 2010-08-25 11:33:31,682 [ Camel Thread 6 - Threads] NettyProducer DEBUG Creating connector to address: localhost:6205 > 2010-08-25 11:33:31,682 [ Camel Thread 6 - Threads] NettyProducer DEBUG Writing body: hello1 > 2010-08-25 11:33:31,697 [ New I/O client worker #1-1] NettyProducer DEBUG Operation complete org.jboss.netty.channel.DefaultChannelFuture@944dbd > 2010-08-25 11:33:31,697 [ New I/O server worker #1-1] ServerChannelHandler DEBUG Incoming message: hello1 > 2010-08-25 11:33:36,697 [ New I/O server worker #1-1] ServerChannelHandler DEBUG Writing body: Bye 1hello1 > 2010-08-25 11:33:36,697 [ New I/O client worker #1-1] ClientChannelHandler DEBUG Message received: Bye 1hello1 > 2010-08-25 11:33:36,697 [ New I/O client worker #1-1] SendProcessor DEBUG >>>> Endpoint[log://+++ reply++++] Exchange[GenericFileMessage with body: Bye 1hello1] > 2010-08-25 11:33:36,713 [ New I/O client worker #1-1] +++ reply++++ INFO Exchange[ExchangePattern:InOut, BodyType:String, Body:Bye 1hello1] > 2010-08-25 11:33:36,713 [ New I/O client worker #1-1] GenericFileOnCompletion DEBUG Done processing file: GenericFile[C:\test\test\response\hello1.txt] using exchange: Exchange[GenericFileMessage with body: Bye 1hello1] > 2010-08-25 11:33:36,713 [ New I/O client worker #1-1] FileUtil DEBUG Tried 1 to delete file: C:\test\test\response\hello1.txt.camelLock with result: true > 2010-08-25 11:33:36,713 [ New I/O client worker #1-1] nericFileRenameProcessStrategy DEBUG Renaming file: GenericFile[C:\test\test\response\hello1.txt] to: GenericFile[C:\test\test\response\.camel\hello1.txt] > 2010-08-25 11:33:36,713 [ New I/O client worker #1-1] FileUtil DEBUG Tried 1 to rename file: C:\test\test\response\hello1.txt to: C:\test\test\response\.camel\hello1.txt with result: true > 2010-08-25 11:34:06,886 [ Hashed wheel timer #1] DefaultErrorHandler DEBUG Failed delivery for exchangeId: f5eb372d-a214-4418-a60f-62c0557768d2. On delivery attempt: 0 caught: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[GenericFileMessage with body: Bye 1hello1] > 2010-08-25 11:34:06,886 [ Hashed wheel timer #1] DefaultErrorHandler ERROR Failed delivery for exchangeId: f5eb372d-a214-4418-a60f-62c0557768d2. Exhausted after delivery attempt: 1 caught: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[GenericFileMessage with body: Bye 1hello1] > org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[GenericFileMessage with body: Bye 1hello1] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.