Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 42605 invoked from network); 7 Mar 2007 09:46:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2007 09:46:16 -0000 Received: (qmail 88061 invoked by uid 500); 7 Mar 2007 09:46:24 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 88037 invoked by uid 500); 7 Mar 2007 09:46:24 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 88028 invoked by uid 99); 7 Mar 2007 09:46:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 01:46:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.70.33.37] (HELO lists.levonline.com) (217.70.33.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 01:46:14 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by lists.levonline.com (Postfix) with ESMTP id 0E03D29C0AB for ; Wed, 7 Mar 2007 10:45:53 +0100 (CET) Received: from lists.levonline.com ([127.0.0.1]) by localhost (lists.levonline.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31809-01 for ; Wed, 7 Mar 2007 10:45:51 +0100 (CET) Received: from ormen1.djurnet.levonline.com (ormen1.djurnet.levonline.com [192.168.17.31]) by lists.levonline.com (Postfix) with ESMTP id C6A9F29C050 for ; Wed, 7 Mar 2007 10:45:51 +0100 (CET) Received: from [192.168.0.138] (1-1-2-45a.gan.gbg.bostream.se [82.182.102.93]) (authenticated bits=0) by ormen1.djurnet.levonline.com (8.12.11.20060308/8.12.11) with ESMTP id l279jpNL004087 for ; Wed, 7 Mar 2007 10:45:51 +0100 Message-ID: <45EE89CF.7020701@trillian.se> Date: Wed, 07 Mar 2007 10:45:51 +0100 From: Niklas Therning User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: dev@mina.apache.org Subject: Re: sending empty HeapBuffers References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: By http://levonline.com - free virus scanning for all customers X-Virus-Checked: Checked by ClamAV on apache.org Csaba Endre Simon wrote: > Hi All, > > Running the org.apache.mina.example.sumup example, I got exactly the > same behavior. Logs attached for the client and the server. > > Mina version is 1.0.2. > > This is a bug? Should I open a JIRA? This is normal MINA behavior when using ProtocolCodecFilter. The empty ByteBuffer you're seeing is just a marker which MINA uses to keep track of the original message you wrote before it was encoded into a ByteBuffer by your ProtocolEncoder. Without it ProtocolCodecFilter won't be able to call messageSent() properly. -- Niklas Therning www.spamdrain.net