Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 68182 invoked from network); 15 Apr 2005 06:52:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2005 06:52:22 -0000 Received: (qmail 21613 invoked by uid 500); 15 Apr 2005 06:52:08 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 21598 invoked by uid 500); 15 Apr 2005 06:52:08 -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 21581 invoked by uid 99); 15 Apr 2005 06:52:08 -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 mailhost.netspeed.com.au (HELO mailhost.netspeed.com.au) (203.31.48.33) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Apr 2005 23:52:06 -0700 Received: from bard.thedistillery.com.au (unverified [203.22.237.146]) by netspeed.com.au (SurgeMail 3.0d) with ESMTP id 32678787 for ; Fri, 15 Apr 2005 16:50:44 +1000 Received: from d613c81s[192.168.1.74] by bard.thedistillery.com.au; Fri, 15 Apr 2005 16:50:20 +1000 Reply-To: From: "Mi Zhang" To: "'Jakarta Commons Users List'" Subject: RE: [Configuration] Date: Fri, 15 Apr 2005 16:41:21 +1000 Organization: The Distillery Message-ID: <003201c54186$2383a3e0$4a01a8c0@thedistillery.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <425D6C80.5090105@t-online.de> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Server: High Performance Mail Server - http://surgemail.com X-DNS-Paranoid: DNS lookup didn't match (203.22.237.146)->(standby.fcsonline.com.au)->() X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Oliver, I have tried the nightly build and it works fine. Thank you for the fix. Thanks, Mi -----Original Message----- From: Oliver Heger [mailto:oliver.heger@t-online.de] Sent: Thursday, 14 April 2005 5:01 AM To: Jakarta Commons Users List Subject: Re: [Configuration] 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 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