Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 35964 invoked from network); 27 Jan 2005 14:59:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jan 2005 14:59:33 -0000 Received: (qmail 40968 invoked by uid 500); 27 Jan 2005 14:59:26 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 40950 invoked by uid 500); 27 Jan 2005 14:59:26 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 40937 invoked by uid 99); 27 Jan 2005 14:59:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of stephen.duncan@gmail.com designates 64.233.170.195 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.195) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 27 Jan 2005 06:59:24 -0800 Received: by rproxy.gmail.com with SMTP id f1so265540rne for ; Thu, 27 Jan 2005 06:59:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hYqjcE1I4NDGFD3fcQw+qVDuFE9fKgT8AsSKHUUbVAS557h9f7QlrXMl25aPFRi6Z9HFM/qDeR5l7CJBek38Y2tYp3ddY8EVHS+XPfk43P/6de4bBlmF9BXLXF/fMa7tfX1kX59HtLAAv1YEFG6KA26PRwVPw5y/TIBVV153KAI= Received: by 10.38.162.16 with SMTP id k16mr54291rne; Thu, 27 Jan 2005 06:59:21 -0800 (PST) Received: by 10.38.24.40 with HTTP; Thu, 27 Jan 2005 06:59:21 -0800 (PST) Message-ID: Date: Thu, 27 Jan 2005 09:59:21 -0500 From: Stephen Duncan Reply-To: Stephen Duncan To: Jakarta Commons Users List Subject: Re: [Configuration] - List of Size 1 In-Reply-To: <41F90022.3070508@med.uni-marburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41F90022.3070508@med.uni-marburg.de> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I just started testing it. It should be 1.0. I'll try to put together a minimal test. On Thu, 27 Jan 2005 15:52:18 +0100, Oliver Heger wrote: > Any chance that you provide a test case which demonstrates this > behavior? Best way is to open an error report in our bug tracking system > bugzilla (http://issues.apache.org/bugzilla/) and attach your test code. > This makes it easier for us to reproduce the problem. > > I will have a look at it. Btw, which version of [configuration] do you use? > > Oliver > > Stephen Duncan wrote: > > > I'm using the hierarchicalXml configuration. > > > > I have an element that will appear in my congifuration one or more > > times. If there are two or more, config.getList() returns the list as > > I expect. However, if there's only of these elements, then I get an > > empty list. > > > > Is there a way to fix this/get around this? If not, what's the best > > practice to deal with this? Check for size 0 and do a simple retrieve > > instead? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > -- Stephen Duncan Jr www.stephenduncanjr.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org