<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/jconfig/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/jconfig/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/jconfig/bugs/</id><updated>2021-04-06T14:07:16.835000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#28 Save xml in default charset, but not in utf-8</title><link href="https://sourceforge.net/p/jconfig/bugs/28/?limit=25#5db8/3449" rel="alternate"/><published>2021-04-06T14:07:16.835000Z</published><updated>2021-04-06T14:07:16.835000Z</updated><author><name>Georg</name><uri>https://sourceforge.net/u/gskempes/</uri></author><id>https://sourceforge.net286cd4eb6b1413955554705b2ddaa70a8974f758</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No, the problem is still there, at least under Microsoft Windows. If I store a German umlaut like ä, ö, ü or ß, the file is corrupted using the XMLFileHandler.store() method. You can double check with Notepad++, etc. This file cannot be loaded, I get:&lt;br/&gt;
Uncaught exception occured at Tue Apr 06 16:03:50 CEST 2021:&lt;br/&gt;
org.jconfig.ConfigurationManagerException: The parser cannot parse the file: Invalid byte 2 of 3-byte UTF-8 sequence.&lt;br/&gt;
    at org.jconfig.handler.XMLFileHandler.load(XMLFileHandler.java:122)&lt;br/&gt;
    at org.jconfig.handler.XMLFileHandler.load(XMLFileHandler.java:78)&lt;/p&gt;
&lt;p&gt;Under Linux the config file is written correctly including German umlauts. Doesn't matter if you use set the handler encoding, the configuration encoding or both to "UTF-8" or none of them.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CM should not add multiple listeners to same config</title><link href="https://sourceforge.net/p/jconfig/bugs/36/" rel="alternate"/><published>2008-04-06T08:14:56Z</published><updated>2008-04-06T08:14:56Z</updated><author><name>Guy Rouillier</name><uri>https://sourceforge.net/u/guyr/</uri></author><id>https://sourceforge.net138dfc823111bf2d6a2da1fec3a45a2d69eead6d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The load method of ConfigurationManager has this:&lt;/p&gt;
&lt;p&gt;if(configurationHandler instanceof AbstractHandler) {&lt;br /&gt;
((AbstractHandler)configurationHandler).addFileListener(new ConfigurationFileListener(configurationName));&lt;br /&gt;
}&lt;br /&gt;
if (config != null) {&lt;br /&gt;
//config.setConfigName(configurationName);&lt;br /&gt;
configurations.put(configurationName, config);&lt;br /&gt;
handlerMapping.put(configurationName, configurationHandler);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Since configurations is a hashmap, if the same configuration is loaded multiple times, one will overwrite the other.  That's a good thing; you maintain just one config of given name.  However, the first condition doesn't check for that, but blindly adds a new listener every time the load function is called.  The result is that if the load method is called 10 times for the same config, you end up with 1 config (good) but 10 listeners (bad).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Variables do not work within categories of XML file</title><link href="https://sourceforge.net/p/jconfig/bugs/35/" rel="alternate"/><published>2008-02-19T22:02:57Z</published><updated>2008-02-19T22:02:57Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netca314da58fa74bf7b458b264bacb55fbb96d770e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We have found that the variables feature does not work correctly when variables are referenced within categories inside the XML file.  To be more specific, the issue exists when variables are read using the following API method:&lt;/p&gt;
&lt;p&gt;Configuration.getProperties()&lt;/p&gt;
&lt;p&gt;The issue is inside of this method:&lt;/p&gt;
&lt;p&gt;DefaultCategory.getProperties()&lt;/p&gt;
&lt;p&gt;This method does not use variable replacement when returning the Properties object.  However if the method getProperty() is used, variable replacment works fine.  We have fixed this bug locally by updating the DefaultCategory.getProperties() method to use the "getProperty()" method instead of simply returning the Properties object.  Here is fixed code:&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
* Return all properties related to this category&lt;br /&gt;
*&lt;br /&gt;
* @since 2.2&lt;br /&gt;
* @return The Properties&lt;br /&gt;
*/&lt;br /&gt;
public Properties getProperties() {&lt;/p&gt;
&lt;p&gt;// iterate over the properties,&lt;br /&gt;
// do variable replacement and return them&lt;br /&gt;
if (properties != null &amp;amp;&amp;amp; properties.isEmpty() == false)&lt;br /&gt;
{&lt;br /&gt;
Properties propertiesReturn = new Properties();&lt;br /&gt;
String propName;&lt;br /&gt;
String propValue;&lt;/p&gt;
&lt;p&gt;for (Enumeration e = properties.propertyNames(); e.hasMoreElements(); )&lt;br /&gt;
{&lt;br /&gt;
propName = (String) e.nextElement();&lt;br /&gt;
propValue = this.getProperty(propName);&lt;br /&gt;
propertiesReturn.put(propName, propValue);              &lt;br /&gt;
}&lt;br /&gt;
return propertiesReturn;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
return properties;&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>parameter for url in URLHandler</title><link href="https://sourceforge.net/p/jconfig/bugs/34/" rel="alternate"/><published>2007-05-21T13:36:16Z</published><updated>2007-05-21T13:36:16Z</updated><author><name>Farisola</name><uri>https://sourceforge.net/u/farisola/</uri></author><id>https://sourceforge.net30053f6051f8b514000d24da246eff2a7f86cbc6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi,&lt;br /&gt;
in the class URLHandler is a bug:&lt;/p&gt;
&lt;p&gt;In method:&lt;/p&gt;
&lt;p&gt;protected Configuration load(&lt;br /&gt;
String theURL,&lt;br /&gt;
String configName) &lt;br /&gt;
throws ConfigurationManagerException {&lt;br /&gt;
ConfigurationParser parser =&lt;br /&gt;
ConfigurationParserFactory.getParser(configName);&lt;/p&gt;
&lt;p&gt;// the line repaired with the correct parameter theURL:&lt;br /&gt;
return load(theURL, configName,parser); // correct &lt;br /&gt;
// the line with error with the wrong parameter getURL():&lt;br /&gt;
//return load(getURL(), configName,parser); // wrong&lt;br /&gt;
}&lt;br /&gt;
ciao fred&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>inheritance problem in Configuration Server</title><link href="https://sourceforge.net/p/jconfig/bugs/33/" rel="alternate"/><published>2007-02-09T07:44:39Z</published><updated>2007-02-09T07:44:39Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netcb5f6f70ea8594bf20c1eb5f2cb221b086f38f90</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have two configuration files in config server.&lt;/p&gt;
&lt;p&gt;B_config.xml extends A_config.xml&lt;/p&gt;
&lt;p&gt;But configuration server does not return the configs from  A_config.xml.&lt;/p&gt;
&lt;p&gt;I recognized that when i put A_config.xml to local side, it returns the values from local file.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tuncay Senturk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Exception while trying configuration server</title><link href="https://sourceforge.net/p/jconfig/bugs/32/" rel="alternate"/><published>2007-01-22T11:19:58Z</published><updated>2007-01-22T11:19:58Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net55afe4188dac9530737327b168b69c71651b73b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i get "Problem with URL handling/connection/validating: unknown protocol: jconfig" error while trying configuration server.&lt;/p&gt;
&lt;p&gt;i am getting error at the below line &lt;/p&gt;
&lt;p&gt;// prepare URL, open the connection and grab stream for parsing&lt;br /&gt;
jcfURL = new java.net.URL( theURL );&lt;/p&gt;
&lt;p&gt;at class org.jconfig.handler.URLHandler&lt;/p&gt;
&lt;p&gt;URLhandler' s load() method gets "theURL" method parameter as &lt;a href="http://127.0.0.1:8765/config" rel="nofollow"&gt;http://127.0.0.1:8765/config&lt;/a&gt;, &lt;br /&gt;
but URLHandler' s instance variable "url" stay' s jconfig://127.0.0.1:8765/config. &lt;/p&gt;
&lt;p&gt;protected Configuration load(String theURL,String configName) throws ConfigurationManagerException {&lt;br /&gt;
ConfigurationParser parser = ConfigurationParserFactory.getParser(configName);&lt;br /&gt;
return load(getURL(), configName,parser);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;And getURL() method returns this "url" instance variable. So overloaded load() method uses "url" instance variable instead of theURL method() parameter.&lt;/p&gt;
&lt;p&gt;When i put a debug point and change the value of theURL from "jconfig://127.0.0.1:8765/config" to "http://127.0.0.1:8765/config" it works fine.&lt;/p&gt;
&lt;p&gt;Is there anything that i miss?&lt;/p&gt;
&lt;p&gt;I may attach project files (Eclipse 3.1) so that you can reproduce the error&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Tuncay Senturk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bean mapping problem with nested category</title><link href="https://sourceforge.net/p/jconfig/bugs/31/" rel="alternate"/><published>2006-11-20T15:26:51Z</published><updated>2006-11-20T15:26:51Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1481502d993fbb383125ca5314aac3495e311591</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When I initialize NestedConfigParser, getProperties () used in mapBean() returns null.&lt;/p&gt;
&lt;p&gt;I'll attach the test project(Eclipse WTP 3.2) that lets you reproduce the error.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ali Sadik Kumlali&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>getProperties doesn't expand env vars</title><link href="https://sourceforge.net/p/jconfig/bugs/30/" rel="alternate"/><published>2006-11-07T13:13:16Z</published><updated>2006-11-07T13:13:16Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net242b1bca4a5067985cb53ed2a1488f4bbd024940</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Configuration.getProperties doesn't expand any env vars&lt;br /&gt;
in the configuration i.e. if I do:&lt;/p&gt;
&lt;p&gt;Properties props = conf.getProperties(destSystem);&lt;/p&gt;
&lt;p&gt;and the destSystem catagory contains this:&lt;/p&gt;
&lt;p&gt;&amp;lt;property name="atlas.dao.password"&lt;br /&gt;
value="${env:GFIPUB_TETRIS_DB_PASS}"/&amp;gt;&lt;/p&gt;
&lt;p&gt;then props.getProperty("atlas.dao.password")&lt;br /&gt;
returns "${env:GFIPUB_TETRIS_DB_PASS}" and not the&lt;br /&gt;
environment variable value of GFIPUB_TETRIS_DB_PASS&lt;/p&gt;
&lt;p&gt;Cheers, Richard.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>config file not found</title><link href="https://sourceforge.net/p/jconfig/bugs/29/" rel="alternate"/><published>2006-06-09T08:22:15Z</published><updated>2006-06-09T08:22:15Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0747715b84572dab986314da53077d6790b60769</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;br /&gt;
my config file is not found,&lt;/p&gt;
&lt;p&gt;I get the error:&lt;/p&gt;
&lt;p&gt;java.io.FileNotFoundException:&lt;br /&gt;
C:\Programme\Tomcat%205.0\webapps\paneltool\WEB-INF\classes\config.xml&lt;br /&gt;
(Das System kann den angegebenen Pfad nicht finden)&lt;/p&gt;
&lt;p&gt;It seems the problem is the space between Tomcat and&lt;br /&gt;
5.0 in my tomcat installation folder!&lt;/p&gt;
&lt;p&gt;I use Windows XP, and jdk 1.5.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Save xml in default charset, but not in utf-8</title><link href="https://sourceforge.net/p/jconfig/bugs/28/" rel="alternate"/><published>2006-02-13T09:49:59Z</published><updated>2006-02-13T09:49:59Z</updated><author><name>Igorek</name><uri>https://sourceforge.net/u/userid-921445/</uri></author><id>https://sourceforge.net3f38f85523d0116f571d14054eb31bb55f1bc644</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Save xml in default charset, but need utf-8.&lt;/p&gt;
&lt;p&gt;to configuration i write russian text.&lt;/p&gt;
&lt;p&gt;my code: &lt;/p&gt;
&lt;p&gt;XMLFileHandler handler = new &lt;br /&gt;
XMLFileHandler(fileConfiguration.getAbsolutePath());&lt;br /&gt;
handler.setEncoding("UTF-8");&lt;br /&gt;
handler.store(configuration);&lt;/p&gt;
&lt;p&gt;after save file, i try load him:&lt;/p&gt;
&lt;p&gt;org.jconfig.ConfigurationManagerException: The parser &lt;br /&gt;
cannot parse the file: Invalid byte 2 of 2-byte UTF-8 &lt;br /&gt;
sequence.&lt;br /&gt;
at org.jconfig.handler.XMLFileHandler.&lt;br /&gt;
load(XMLFileHandler.java:115)&lt;br /&gt;
at org.jconfig.handler.XMLFileHandler.&lt;br /&gt;
load(XMLFileHandler.java:69)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>