Return-Path: X-Original-To: apmail-mina-users-archive@www.apache.org Delivered-To: apmail-mina-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 AF6B4F58F for ; Wed, 3 Apr 2013 16:03:03 +0000 (UTC) Received: (qmail 95778 invoked by uid 500); 3 Apr 2013 16:03:03 -0000 Delivered-To: apmail-mina-users-archive@mina.apache.org Received: (qmail 95749 invoked by uid 500); 3 Apr 2013 16:03:02 -0000 Mailing-List: contact users-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@mina.apache.org Delivered-To: mailing list users@mina.apache.org Received: (qmail 95725 invoked by uid 99); 3 Apr 2013 16:03:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 16:03:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of addedsparkle@gmail.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 16:02:57 +0000 Received: by mail-lb0-f176.google.com with SMTP id y8so1760987lbh.35 for ; Wed, 03 Apr 2013 09:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=wHoKSkXJRydAPlIxCNch7911j4wckH8WyacKEwoxXlY=; b=DXpuqIwOo9p1Izn+wSdcY29UytDIHwTkLYRvBlQY1pj0O7IuQSNq+Phnmvhu0q0bgM HaZO6sui8Mb6latZ+TzwyFyH60cLF3fyHgVyBQngP6uwuyJubXiBI6nBdpxTDQxm5EVi AoSLePltJUR1WrNxKMrPnzU9gUZOjDWDXA37E4CKYOKDywscS0p8O+/Mu0UY2A1YPi0x b3ZRZwJJRd4Ub2rmNjLIqWG0njcyap6w1TrvzVUIP1r04Mvgq+mhBo09vWZI8fdBEPVG 6WYv9BwtdtjOlHnlt/0pBjG3UfhfnTE8i3Ua4JqNlUEwSijEb2X3c+55YXKs/Igb2bo2 7HsA== MIME-Version: 1.0 X-Received: by 10.112.144.6 with SMTP id si6mr1401195lbb.85.1365004956100; Wed, 03 Apr 2013 09:02:36 -0700 (PDT) Received: by 10.112.81.200 with HTTP; Wed, 3 Apr 2013 09:02:35 -0700 (PDT) In-Reply-To: <515C4D4A.1060709@gmail.com> References: <515C4264.2080606@gmail.com> <515C4D4A.1060709@gmail.com> Date: Wed, 3 Apr 2013 17:02:35 +0100 Message-ID: Subject: Re: Unexpected connection closure by server From: Jennifer Cumming To: users@mina.apache.org Content-Type: multipart/alternative; boundary=047d7b34363a86700904d976fb71 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b34363a86700904d976fb71 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Added and nothing. exceptionCaught is not getting called. Even tried putting a breakpoint in and debugging and it's not getting hit. On 3 April 2013 16:39, Emmanuel L=E9charny wrote: > Le 4/3/13 5:15 PM, Jennifer Cumming a =E9crit : > > Thanks for answering Emmanuel. > > > > I do have an exceptionCaught handler: > > > > @Override > > public void exceptionCaught(IoSession session, Throwable cause) > > { > > if > > (cause.getClass().getName().equalsIgnoreCase("ProtocolDecoderException"= )) > > { > > session.write(""); > > logger.debug("ProtocolDecoderException:", cause); > > } > > logger.error("Error:", cause); > > } > > > > but I don't see anything in the log that might be the result of > > exceptionCaught being called. Do I need something in my encoder/decoder > as > > well to handle exceptions? > No. They will be caught. > > One possibility is that the Log4j version you are using is not the rght > version. > > Could you just add a printstackTrace in your exceptionCaught method, and > see what you get ? > > > -- > Regards, > Cordialement, > Emmanuel L=E9charny > www.iktek.com > > --047d7b34363a86700904d976fb71--