Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 57558 invoked from network); 13 Apr 2005 18:27:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 18:27:21 -0000 Received: (qmail 22613 invoked by uid 500); 13 Apr 2005 18:27:13 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 22561 invoked by uid 500); 13 Apr 2005 18:27:12 -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 22545 invoked by uid 99); 13 Apr 2005 18:27:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mailout07.sul.t-online.com (HELO mailout07.sul.t-online.com) (194.25.134.83) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 11:27:11 -0700 Received: from fwd29.aul.t-online.de by mailout07.sul.t-online.com with smtp id 1DLmZw-0000sx-02; Wed, 13 Apr 2005 20:27:08 +0200 Received: from [192.168.0.1] (EClrYaZeZelM9jrnDzKiNxhKjdJP+34H0Aodj0MmX7bsF5F2zPN2UY@[84.174.82.35]) by fwd29.sul.t-online.de with esmtp id 1DLmZq-0vQTFg0; Wed, 13 Apr 2005 20:27:02 +0200 Message-ID: <425D6492.4010709@t-online.de> Date: Wed, 13 Apr 2005 20:27:30 +0200 From: Oliver Heger User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [Configuration] References: <002d01c53fef$e22052f0$4a01a8c0@thedistillery.com.au> In-Reply-To: <002d01c53fef$e22052f0$4a01a8c0@thedistillery.com.au> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: EClrYaZeZelM9jrnDzKiNxhKjdJP+34H0Aodj0MmX7bsF5F2zPN2UY X-TOI-MSGID: 0b539c09-a6b6-4b19-8243-fa8117ec79f3 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Mi, this is indeed a bug. Thank you for spotting this. I opened a bugzilla ticket for this issue at http://issues.apache.org/bugzilla/show_bug.cgi?id=34442 I will have a look at it. Oliver Mi Zhang wrote: >Hi, > >I am using Configuration but having a problem. I used clear to clear >configuration in memory, and then loaded the configuration from file >again. After re-loading the XML configuration file, the attributes "mod" >of the configuration are all gone. What's the problem or how I can keep >the attributes. The following are my code and the output: > >System.out.println("----------- Before reload -------------"); > XMLConfiguration configuration = new XMLConfiguration(); > configuration.load(_configurationFile); > ByteArrayOutputStream os = new ByteArrayOutputStream(); > configuration.save(os); > System.out.println(os.toString()); > > configuration.clear(); > > System.out.println("----------- After reload -------------"); > configuration.load(_configurationFile); > os = new ByteArrayOutputStream(); > configuration.save(os); > System.out.println(os.toString()); > > >Ouput of the program: >----------- Before reload ------------- > > > > > >file > >proxy.thedistillery.com.au > >3128 > > > > > >toogletext > > > >change this > > > > > >console > > > > > > > > > >----------- After reload ------------- > > > > > >file > >proxy.thedistillery.com.au > >3128 > > > > > >toogletext > > > >change this > > > > > >console > > > > > > > > > > > >Thanks, >Mi > > >The Distillery Pty Limited >ABN 69 080 932 467 >PO Box 940, Dickson ACT 2602, AUSTRALIA >Phone: +61 2 6272 0200 >Fax: +61 2 6262 5151 >Web: www.thedistillery.com.au > >The Distillery Inc >2111 Wilson Blvd, Suite 700, >Arlington, Virginia 22201, USA >Phone: +1 703 351 5082 >Web: www.thedistilleryinc.com > >The Distillery (Europe) Ltd >53 Chandos Place London WC2N 4HS >Tel: +44 (0)20 7812 6692 >Fax: +44 (0)20 7812 6677 > > >--------------------------------------------------------------------- >The information contained in this email and any files attached may be >confidential and/or copyrighted information of The Distillery, Third >Parties and/or the intended recipient and may be the subject of legal >privilege or public interest immunity. You may only reproduce or >distribute the material if you are expressly authorised by us to do >so. If you are not the intended recipient, any use, disclosure, >copying, circulation, forwarding, printing or publication of this >message or attached files is strictly forbidden. > >If you have received this document in error or are not an intended >recipient, please notify the sender and delete from your Inbox and/or >system. > >The Distillery does not represent or warrant that files attached to >this e-mail are free from computer viruses or other defects and >liability is limited to the resupply (or cost of resupply) of the >attached files. >--------------------------------------------------------------------- > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org