Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 70267 invoked from network); 13 Apr 2005 19:01:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 19:01:12 -0000 Received: (qmail 1861 invoked by uid 500); 13 Apr 2005 19:01:01 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 1840 invoked by uid 500); 13 Apr 2005 19:01:01 -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 1812 invoked by uid 99); 13 Apr 2005 19:01:01 -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 mailout06.sul.t-online.com (HELO mailout06.sul.t-online.com) (194.25.134.19) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 12:00:59 -0700 Received: from fwd25.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1DLn6f-0005cO-00; Wed, 13 Apr 2005 21:00:57 +0200 Received: from [192.168.0.1] (rIY1CZZcweCHFUq62qfG-LRwRSxAwmxb1tSq9WIUjgMW+1cmUTTi6a@[84.174.82.35]) by fwd25.sul.t-online.de with esmtp id 1DLn6Y-24qmrA0; Wed, 13 Apr 2005 21:00:50 +0200 Message-ID: <425D6C80.5090105@t-online.de> Date: Wed, 13 Apr 2005 21:01:20 +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> <425D6492.4010709@t-online.de> In-Reply-To: <425D6492.4010709@t-online.de> 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: rIY1CZZcweCHFUq62qfG-LRwRSxAwmxb1tSq9WIUjgMW+1cmUTTi6a X-TOI-MSGID: 7b9d14ae-45ec-4081-91c8-f134272bf073 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I was able to commit a fix to SVN, it should be in the next nighlty builds. Could you try again with the new version and let us know if it now works for you? Thanks! Oliver Oliver Heger wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org