Differences
This shows you the differences between two versions of the page.
classcastexception_configurationadmin [2014/01/08 11:17] |
classcastexception_configurationadmin [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ClassCastException on ConfigurationAdmin ====== | ||
+ | If you got a ClassCastException on the ConfigurationAdmin class during a start of a bundle which uses declarative services then it might be that the start order of the bundles is not correct. | ||
+ | |||
+ | Exception: | ||
+ | org.apache.felix.cm.impl.ConfigurationAdminImpl cannot be cast to org.osgi.service.cm.ConfigurationAdmin | ||
+ | |||
+ | The following bundle levels provide a working configuration on my system: | ||
+ | g! lb apache | ||
+ | START LEVEL 10 | ||
+ | | ||
+ | 0|Active | ||
+ | | ||
+ | | ||
+ | | ||
+ | 177|Resolved | ||
+ | 205|Active | ||
+ | 242|Active | ||
+ | 269|Installed | ||
+ | 294|Active | ||
+ | 309|Active | ||
+ | 315|Active | ||
+ | 318|Active | ||
+ | 319|Active | ||
+ | 322|Active | ||
+ | 325|Active | ||
+ | 327|Active | ||
+ | 331|Active | ||
+ | 332|Active | ||
+ | 336|Active | ||
+ | 337|Active | ||
+ | 339|Active | ||
+ | 340|Active | ||
+ | 341|Active | ||
+ | 342|Resolved | ||
+ | 343|Active | ||
+ | 344|Active | ||
+ | |||
+ | < | ||
+ | |||
+ | {{tag> |