Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 44622 invoked from network); 14 Jan 2006 13:02:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jan 2006 13:02:35 -0000 Received: (qmail 83330 invoked by uid 500); 14 Jan 2006 13:02:35 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 83268 invoked by uid 500); 14 Jan 2006 13:02:34 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 83256 invoked by uid 99); 14 Jan 2006 13:02:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2006 05:02:34 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_ILLEGAL_IP,RCVD_IN_WHOIS_BOGONS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.140.2.69] (HELO aa002msg.fastwebnet.it) (213.140.2.69) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2006 05:02:33 -0800 Received: from ms002msg.fastwebnet.it (10.31.41.33) by aa002msg.fastwebnet.it (7.2.069.1) id 43C8E65E00003731 for dev@directory.apache.org; Sat, 14 Jan 2006 14:02:11 +0100 Received: from [1.94.30.75] (1.94.30.75) by ms002msg.fastwebnet.it (7.2.069.3) id 43B15C2F0064E81A for dev@directory.apache.org; Sat, 14 Jan 2006 14:02:11 +0100 Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Apache Directory Developers List From: Alessandro Torrisi Subject: [Mina] ByteBuffer and ByteBuffere Release Date: Sat, 14 Jan 2006 14:02:10 +0100 X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi ! For my protocol I have too read the input Object, cast it to a ByteBuffer, then read the string contained and process this string through a "ProtocolPipeline". This protocol pipeline can do different actions. One of this is "broadcasting" the input message to all the users. So I have done some static methods to send data to the users. When I enter in these methods I build for every user a ByteBuffer and then send it. So, from the discussions read in these days in this mailing list, I downloaded the latest patch for ByteBuffer from dirmina, suggested by fede, and then used a single ByteBuffer to send to all the users. With this new solution I have an exception with a message "ByteBuffer released too many times..." I'm wrong in something ? What's the cause of that message ? What I have to do ? Thanks in advance, best regards. Alessandro Torrisi.