[
https://issues.apache.org/jira/browse/KARAF-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
svs updated KARAF-1147:
-----------------------
Description:
When I update a configuration value (with webconsole) an ClassCastException
occure in the cellar code and the configuration is distributed to the other
nodes.
How to reproduce:
- Start karaf 2.2.5;
- Execute commands:
o features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.2.2/xml/features
o features:install cellar
o features:install cellar-webconsole
- http://localhost:8181/system/console/configMgr
- Select "Apache Felix Web Console Event Plugin";
- Change maximum event and Save;
Result:
1. In the Web Console log service:
- Unexpected problem delivery configuration event to
[org.osgi.service.cm.ConfigurationListener .....] java.lang.ClassCastException:
java.lang.Integer cannot be cast to java.lang.String
2. In the ./data/log/karaf.log file:
2012-01-05 12:44:50,627 | ERROR | l.PluginServlet) | configadmin
| ? ? | 5 -
org.apache.felix.configadmin - 1.2.8 | Unexpected problem delivery
configuration event to [org.osgi.service.cm.ConfigurationListener, id=209,
bundle=75]
java.lang.ClassCastException: java.lang.Integer cannot be cast to
java.lang.String
at
org.apache.karaf.cellar.config.ConfigurationSupport.filterDictionary(ConfigurationSupport.java:119)[75:org.apache.karaf.cellar.config:2.2.2]
at
org.apache.karaf.cellar.config.LocalConfigurationListener.push(LocalConfigurationListener.java:87)[75:org.apache.karaf.cellar.config:2.2.2]
at
org.apache.karaf.cellar.config.LocalConfigurationListener.configurationEvent(LocalConfigurationListener.java:63)[75:org.apache.karaf.cellar.config:2.2.2]
at
org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1832)[5:org.apache.felix.configadmin:1.2.8]
at
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)[5:org.apache.felix.configadmin:1.2.8]
at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
was:
When I update a configuration value (with webconsole) an ClassCastException
occure in the cellar code and the configuration is distributed to the other
nodes.
How to reproduce:
- Start karaf 2.2.5;
- Execute commands:
o features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.2.2/xml/features
o features:install cellar
o features:install cellar-webconsole
- http://localhost:8181/system/console/configMgr
- Select "Apache Felix Web Console Event Plugin";
- Change maximum event and Save;
Result:
1. In the Web Console log service:
- Unexpected problem delivery configuration event to
[org.osgi.service.cm.ConfigurationListener .....] java.lang.ClassCastException:
java.lang.Integer cannot be cast to java.lang.String
2. In the ./data/log/karaf.log file:
2012-01-05 12:44:50,627 | ERROR | l.PluginServlet) | configadmin
| ? ? | 5 -
org.apache.felix.configadmin - 1.2.8 | Unexpected problem delivery
configuration event to [org.osgi.service.cm.ConfigurationListener, id=209,
bundle=75]
java.lang.ClassCastException: java.lang.Integer cannot be cast to
java.lang.String
at
org.apache.karaf.cellar.config.ConfigurationSupport.filterDictionary(ConfigurationSupport.java:119)[75:org.apache.karaf.cellar.config:2.2.2]
at
org.apache.karaf.cellar.config.LocalConfigurationListener.push(LocalConfigurationListener.java:87)[75:org.apache.karaf.cellar.config:2.2.2]
at
org.apache.karaf.cellar.config.LocalConfigurationListener.configurationEvent(LocalConfigurationListener.java:63)[75:org.apache.karaf.cellar.config:2.2.2]
at
org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1832)[5:org.apache.felix.configadmin:1.2.8]
at
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)[5:org.apache.felix.configadmin:1.2.8]
at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
> ClassCastException using cellar when update configuration fields.
> -----------------------------------------------------------------
>
> Key: KARAF-1147
> URL: https://issues.apache.org/jira/browse/KARAF-1147
> Project: Karaf
> Issue Type: Bug
> Components: cellar-config
> Affects Versions: cellar-2.2.2
> Environment: Windows, karaf 2.2.5, cellar 2.2.2 and webconsole
> installed.
> Reporter: svs
> Fix For: cellar-2.2.3
>
>
> When I update a configuration value (with webconsole) an ClassCastException
> occure in the cellar code and the configuration is distributed to the other
> nodes.
> How to reproduce:
> - Start karaf 2.2.5;
> - Execute commands:
> o features:addurl
> mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.2.2/xml/features
> o features:install cellar
> o features:install cellar-webconsole
> - http://localhost:8181/system/console/configMgr
> - Select "Apache Felix Web Console Event Plugin";
> - Change maximum event and Save;
> Result:
> 1. In the Web Console log service:
> - Unexpected problem delivery configuration event to
> [org.osgi.service.cm.ConfigurationListener .....]
> java.lang.ClassCastException: java.lang.Integer cannot be cast to
> java.lang.String
> 2. In the ./data/log/karaf.log file:
> 2012-01-05 12:44:50,627 | ERROR | l.PluginServlet) | configadmin
> | ? ? | 5 -
> org.apache.felix.configadmin - 1.2.8 | Unexpected problem delivery
> configuration event to [org.osgi.service.cm.ConfigurationListener, id=209,
> bundle=75]
> java.lang.ClassCastException: java.lang.Integer cannot be cast to
> java.lang.String
> at
> org.apache.karaf.cellar.config.ConfigurationSupport.filterDictionary(ConfigurationSupport.java:119)[75:org.apache.karaf.cellar.config:2.2.2]
>
> at
> org.apache.karaf.cellar.config.LocalConfigurationListener.push(LocalConfigurationListener.java:87)[75:org.apache.karaf.cellar.config:2.2.2]
>
> at
> org.apache.karaf.cellar.config.LocalConfigurationListener.configurationEvent(LocalConfigurationListener.java:63)[75:org.apache.karaf.cellar.config:2.2.2]
>
> at
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1832)[5:org.apache.felix.configadmin:1.2.8]
>
> at
> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)[5:org.apache.felix.configadmin:1.2.8]
> at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira