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 032FCF42A for ; Wed, 21 Aug 2013 15:58:54 +0000 (UTC) Received: (qmail 2373 invoked by uid 500); 21 Aug 2013 15:58:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 1644 invoked by uid 500); 21 Aug 2013 15:58:49 -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 1634 invoked by uid 99); 21 Aug 2013 15:58:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 15:58:47 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 15:58:41 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VCAnI-00013W-Mw for users@camel.apache.org; Wed, 21 Aug 2013 08:58:00 -0700 Date: Wed, 21 Aug 2013 08:58:00 -0700 (PDT) From: milltj To: users@camel.apache.org Message-ID: <1377100680704-5737692.post@n5.nabble.com> In-Reply-To: References: <1376410207675-5737223.post@n5.nabble.com> <1377017757867-5737612.post@n5.nabble.com> Subject: Mina BufferDataException when using disconnectOnNoReply option MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ok, So I decided to go back to the drawing board and decided to run some tests. First, I implemented a very simple decoder that contains the following code: @Override protected boolean doDecode(IoSession is, IoBuffer ib, ProtocolDecoderOutput pdo) throws Exception { System.out.println("IoBuffer hasRemaining: " + ib.hasRemaining()); System.out.println("IoBuffer remaining: " + ib.remaining()); byte[] data = new byte[ib.remaining()]; ib.get(data); System.out.println("IoBuffer read: " + new String(data)); return true; } Then I implemented my route in the camel-context as... When I run this it will successfully read the input and output the received message to the console. However when I change the route to.. Then I get the following error message and it never calls the doDecode method.. org.apache.camel.CamelException: org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.core.buffer.BufferDataException: dataLength: 1347375948 (Hexdump: REMOVED FOR BREVITY) at org.apache.camel.component.mina2.Mina2Consumer$ReceiveHandler.exceptionCaught(Mina2Consumer.java:312) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:672) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:461) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:47) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:760) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:93) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:722) Not sure exactly why this is occurring. Is it the way I have configured my route? Or is this a bug in the Mina2 2.11.1 component? - Tim -- View this message in context: http://camel.465427.n5.nabble.com/Mina-Synchronous-Communication-tp5737223p5737692.html Sent from the Camel - Users mailing list archive at Nabble.com.