Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 39795 invoked from network); 15 Mar 2011 21:20:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Mar 2011 21:20:52 -0000 Received: (qmail 43078 invoked by uid 500); 15 Mar 2011 21:20:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 43026 invoked by uid 500); 15 Mar 2011 21:20:51 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 43018 invoked by uid 99); 15 Mar 2011 21:20:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 21:20:51 +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, 15 Mar 2011 21:20:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 918B03ABE36 for ; Tue, 15 Mar 2011 21:20:29 +0000 (UTC) Date: Tue, 15 Mar 2011 21:20:29 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: <1616194515.5019.1300224029592.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <841171123.5359.1298997337010.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (CONFIGURATION-438) JNDIConfiguration logs Exception when prefix does not exist 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/CONFIGURATION-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger resolved CONFIGURATION-438. ---------------------------------------- Resolution: Fixed Fix Version/s: 1.7 Patch applied in revision 1081926. A unit test was added, too. Many thanks! > JNDIConfiguration logs Exception when prefix does not exist > ----------------------------------------------------------- > > Key: CONFIGURATION-438 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-438 > Project: Commons Configuration > Issue Type: Bug > Components: Events & Notifications > Affects Versions: 1.6, Nightly Builds > Reporter: Mike Noordermeer > Assignee: Oliver Heger > Priority: Trivial > Fix For: 1.7 > > Attachments: namenotfoundexception-correct.patch, namenotfoundexception.patch > > > A JNDIConfiguration logs an exception when it's prefix does not exist and getKeys() is called. This is for instance the case when a JNDIConfiguration is used in a DefaultConfigurationBuilder. It does not log an exception when a key does not exist when using getProperty() (that was fixed in issue #44). This seems like an inconsistency to me. Attached patch fixes the problem by ignoring the NameNotFoundException. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira