Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 64910 invoked from network); 5 Dec 2005 07:53:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Dec 2005 07:53:55 -0000 Received: (qmail 81966 invoked by uid 500); 5 Dec 2005 07:53:53 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 81908 invoked by uid 500); 5 Dec 2005 07:53:53 -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 81893 invoked by uid 99); 5 Dec 2005 07:53:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 23:53:53 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2DD9D126 for ; Mon, 5 Dec 2005 08:53:32 +0100 (CET) Message-ID: <1192068731.1133769212177.JavaMail.jira@ajax.apache.org> Date: Mon, 5 Dec 2005 08:53:32 +0100 (CET) From: "Julien Vermillard (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRMINA-135) exception during a connector.connect() aren't caught by filters In-Reply-To: <1696259823.1133360669885.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRMINA-135?page=all ] Julien Vermillard closed DIRMINA-135: ------------------------------------- > exception during a connector.connect() aren't caught by filters > --------------------------------------------------------------- > > Key: DIRMINA-135 > URL: http://issues.apache.org/jira/browse/DIRMINA-135 > Project: Directory MINA > Type: Bug > Versions: 0.8.1, 0.8, 0.8.2 > Environment: MINA 0.8 and a SocketConnector > Reporter: Julien Vermillard > Assignee: Trustin Lee > Priority: Minor > Fix For: 0.9 > > I try to do a reconnection filter, automaticly connecting and reconnecting a connector until it works. > if theinitial connector.connect(...) fail, and exception is thrown, but it's not caught by IoFilter chain. It's not really a bug I think but I added a simple fix : > in SocketConnector class in the connect method : > public IoSession connect( SocketAddress address, SocketAddress localAddress, > int timeout, IoHandler handler ) throws IOException > I changed : > .... > if( request.exception != null ) > { > ExceptionUtil.throwException( request.exception ); > } > .... > into > .... > if( request.exception != null ) > { > filters.exceptionCaught(null,request.exception ); > ExceptionUtil.throwException( request.exception ); > } > .... > and now my filters get the exception normaly, perhaps it's an idea to add it to MINA 0.8 ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira