Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 90519 invoked from network); 21 Oct 2010 17:37:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Oct 2010 17:37:17 -0000 Received: (qmail 57177 invoked by uid 500); 21 Oct 2010 17:37:17 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 57117 invoked by uid 500); 21 Oct 2010 17:37:16 -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 57109 invoked by uid 99); 21 Oct 2010 17:37:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 17:37:16 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 17:37:10 +0000 Received: by qyk1 with SMTP id 1so3813041qyk.11 for ; Thu, 21 Oct 2010 10:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=D4eM1GNoqviFj+HmUgO1OhDUUlF8w23Rd/TKt+a0/yM=; b=WaSG+MbZ8ALsva0vCapSULJ6vSviG2qpV7A7yI4Bc3H4gQadh9mjfnOxTQkIQ/ZAcN Mpm2vWfxfC2OKpxxNVQcTVt0IOAPuaJlNKSP0/hNfPcVl1T5evKFaGVRfJEN9bHE/0/w RyIb2A97zvNkIxP0h5Qr6u0KQ3SU+wavrM4MA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=OVIBSfM/lMISyXD/KlKcPLt/c6ScyQMJghfgbw+JkWv0ueNbomVJbmLwQ3haHUUyPv OHZeYrtjS1IZldGkqvOy1arhCNmHY5bRYg/7FalOzNbFyrUrBhakR96peUDEQC2V1bVZ PiLhsZ0C7CtV7fJ5cXYY7c2W2M0NTul68l27c= Received: by 10.229.105.17 with SMTP id r17mr992951qco.187.1287682603691; Thu, 21 Oct 2010 10:36:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.13.168 with HTTP; Thu, 21 Oct 2010 10:36:23 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Thu, 21 Oct 2010 19:36:23 +0200 Message-ID: Subject: Re: 2 minor MINA bugs To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org So are you saying that you dont notice the WARN? That is a really high leve= l. On Thu, Oct 21, 2010 at 6:15 PM, Mark Webb wrote: > Here is the stack trace. =A0It is a WARN, not DEBUG. =A0Sorry about that. > > I cut out the "Hexdump" dump for brevity. > > =A0WARN | [/127.0.0.1:53690] Unexpected exception from exceptionCaught ha= ndler. > org.apache.camel.CamelException: > org.apache.mina.filter.codec.ProtocolDecoderException: > org.apache.mina.common.BufferDataException: Line is too long: 1973 > (Hexdump: 5C 3D 0D 0A) > =A0 =A0 =A0 =A0at org.apache.camel.component.mina.MinaConsumer$ReceiveHan= dler.exceptionCaught(MinaConsumer.java:91) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain$Ta= ilFilter.exceptionCaught(AbstractIoFilterChain.java:564) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain.ca= llNextExceptionCaught(AbstractIoFilterChain.java:345) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain.ac= cess$1000(AbstractIoFilterChain.java:53) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain$En= tryImpl$1.exceptionCaught(AbstractIoFilterChain.java:643) > =A0 =A0 =A0 =A0at org.apache.mina.filter.executor.ExecutorFilter.processE= vent(ExecutorFilter.java:224) > =A0 =A0 =A0 =A0at org.apache.mina.filter.executor.ExecutorFilter$ProcessE= ventsRunnable.run(ExecutorFilter.java:264) > =A0 =A0 =A0 =A0at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(= ThreadPoolExecutor.java:886) > =A0 =A0 =A0 =A0at java.util.concurrent.ThreadPoolExecutor$Worker.run(Thre= adPoolExecutor.java:908) > =A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:619) > Caused by: org.apache.mina.filter.codec.ProtocolDecoderException: > org.apache.mina.common.BufferDataException: Line is too long: 1973 > (Hexdump: 5C 3D 0D 0A) > =A0 =A0 =A0 =A0at org.apache.mina.filter.codec.ProtocolCodecFilter.messag= eReceived(ProtocolCodecFilter.java:165) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain.ca= llNextMessageReceived(AbstractIoFilterChain.java:299) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain.ac= cess$1100(AbstractIoFilterChain.java:53) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain$En= tryImpl$1.messageReceived(AbstractIoFilterChain.java:648) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain$He= adFilter.messageReceived(AbstractIoFilterChain.java:499) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain.ca= llNextMessageReceived(AbstractIoFilterChain.java:299) > =A0 =A0 =A0 =A0at org.apache.mina.common.support.AbstractIoFilterChain.fi= reMessageReceived(AbstractIoFilterChain.java:293) > =A0 =A0 =A0 =A0at org.apache.mina.transport.socket.nio.SocketIoProcessor.= read(SocketIoProcessor.java:228) > =A0 =A0 =A0 =A0at org.apache.mina.transport.socket.nio.SocketIoProcessor.= process(SocketIoProcessor.java:198) > =A0 =A0 =A0 =A0at org.apache.mina.transport.socket.nio.SocketIoProcessor.= access$400(SocketIoProcessor.java:45) > =A0 =A0 =A0 =A0at org.apache.mina.transport.socket.nio.SocketIoProcessor$= Worker.run(SocketIoProcessor.java:485) > =A0 =A0 =A0 =A0at org.apache.mina.util.NamePreservingRunnable.run(NamePre= servingRunnable.java:51) > =A0 =A0 =A0 =A0... 3 more > Caused by: org.apache.mina.common.BufferDataException: Line is too long: = 1973 > =A0 =A0 =A0 =A0at org.apache.mina.filter.codec.textline.TextLineDecoder.d= ecodeAuto(TextLineDecoder.java:188) > =A0 =A0 =A0 =A0at org.apache.mina.filter.codec.textline.TextLineDecoder.d= ecode(TextLineDecoder.java:112) > =A0 =A0 =A0 =A0at org.apache.mina.filter.codec.ProtocolCodecFilter.messag= eReceived(ProtocolCodecFilter.java:158) > =A0 =A0 =A0 =A0... 14 more > > > On Thu, Oct 21, 2010 at 10:14 AM, Claus Ibsen wro= te: >> On Thu, Oct 21, 2010 at 3:33 PM, Mark Webb wrote= : >>> First off, thanks for the work. =A0The more I use Camel, the more I lov= e >>> it. =A0Here are 2 'bugs' I have run across: >>> >>> 1. On the page http://camel.apache.org/mina.html, for the list of >>> configuration parameters you list "decorderMaxLineLength", this is a >>> typo and should be "decoderMaxLineLength". =A0I copy and pasted the wor= d >>> into my code and took me a few minutes to find the problem. >>> >> >> Fixed the typo. >> >> >>> 2. Secondly, I am sending long lines of data to the Camel-MINA >>> component and needed to increase the decoderMaxLineLength. =A0Until I >>> bumped the ActiveMQ log4j.properties file to "ALL", I did not see the >>> exception that stated the line was too long. =A0Shouldn't this exceptio= n >>> be logged as an error? =A0If so I would have seen it sooner. =A0IIRC ri= ght >>> now the exception is logged as a DEBUG. >>> >> >> Can you post the stacktrace? >> >> >>> Thank you, >>> Mark >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus