From dev-return-38539-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Tue Jul 5 13:22:40 2011 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5CB041F1 for ; Tue, 5 Jul 2011 13:22:39 +0000 (UTC) Received: (qmail 19116 invoked by uid 500); 5 Jul 2011 13:22:39 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 18833 invoked by uid 500); 5 Jul 2011 13:22:38 -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 18823 invoked by uid 99); 5 Jul 2011 13:22:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 13:22:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 13:22:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C0A1743C5C for ; Tue, 5 Jul 2011 13:22:16 +0000 (UTC) Date: Tue, 5 Jul 2011 13:22:16 +0000 (UTC) From: "Pierre-Arnaud Marcelot (JIRA)" To: dev@directory.apache.org Message-ID: <1326616252.579.1309872136785.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <312322405.571.1309871896588.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DIRAPI-48) Improve error reporting when an UnresolvedAddressException is thrown while connecting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRAPI-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre-Arnaud Marcelot resolved DIRAPI-48. ------------------------------------------ Resolution: Fixed Fixed at revision 1143043. http://svn.apache.org/viewvc?rev=1143043&view=rev > Improve error reporting when an UnresolvedAddressException is thrown while connecting > ------------------------------------------------------------------------------------- > > Key: DIRAPI-48 > URL: https://issues.apache.org/jira/browse/DIRAPI-48 > Project: Directory Client API > Issue Type: Improvement > Affects Versions: 1.0.0-M5 > Reporter: Pierre-Arnaud Marcelot > Assignee: Pierre-Arnaud Marcelot > Priority: Minor > Fix For: 1.0.0-M6 > > > Improve error reporting when an UnresolvedAddressException is thrown while connecting. > Currently the current exception is thrown: > org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server: null > Unfortunately the wrapped UnresolvedAddressException has no associated message, thus the 'null' value. > This is not very helpful to the user. > Something like this could help the user a lot more: > org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server: Hostname 'ldap.example.com' could not be resolved. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira