From dev-return-11942-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Fri May 12 03:39:31 2006 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 41803 invoked from network); 12 May 2006 03:39:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 03:39:31 -0000 Received: (qmail 99339 invoked by uid 500); 12 May 2006 03:39:30 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 99290 invoked by uid 500); 12 May 2006 03:39:29 -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 99279 invoked by uid 99); 12 May 2006 03:39:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 20:39:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 20:39:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8382841000B for ; Fri, 12 May 2006 03:39:08 +0000 (GMT) Message-ID: <22831938.1147405148535.JavaMail.root@brutus> Date: Fri, 12 May 2006 03:39:08 +0000 (GMT+00:00) From: "Norbert Reilly (JIRA)" To: dev@directory.apache.org Subject: [jira] Created: (DIRSERVER-619) NamingException messages are thrown away by MessageHandlers 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 NamingException messages are thrown away by MessageHandlers ----------------------------------------------------------- Key: DIRSERVER-619 URL: http://issues.apache.org/jira/browse/DIRSERVER-619 Project: Directory ApacheDS Type: Bug Components: ldap Versions: 1.0-RC3 Environment: N/A Reporter: Norbert Reilly The LDAP MessageHandlers (e.g. org.apache.directory.server.ldap.support.AddHandler) throw away the messages attached to caught NamingExceptions before rethrowing their own newly created exceptions: catch ( NamingException e ) { String msg = "failed to add entry " + req.getEntry(); if ( log.isDebugEnabled() ) { msg += ":\n" + ExceptionUtils.getStackTrace( e ); } where I would like to see catch ( NamingException e ) { String msg = "failed to add entry " + req.getEntry() + ": " + e.getMessage(); instead. Without this fix all meaningful details about the problem are thrown away and can not be displayed in the LDAP client meaning that server log files have to be inspected immediately. In addition, this seems like a simple oversight as even in the debugging case only the server stacktrace is merged into the exception message and hence sent to the client where the original NamingException message is much more valuable for debugging then the stacktrace alone. -- 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