Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
iPOJO-1.8.0
-
Windows 7 - Felix 4.0.2 - Java 1.6.0_26
Description
1- Declare an iPojo composite
2- Create a configuration in ConfigAdmin for the composite
3- Update the configuration in ConfigAdmin
A ClassCastException is raised when the configuration is updated, for example :
ERROR [org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory, id=38, bundle=14]: Unexpected problem updating Configuration PID=foo.compo.26ec176f-6860-4100-a538-b5fb523d4a1f, fac
toryPID=foo.compo, bundleLocation=file:../foo-composite/target/foo-composite-1.0.0-SNAPSHOT.jar
java.lang.ClassCastException: org.apache.felix.ipojo.composite.CompositeManager cannot be cast to org.apache.felix.ipojo.InstanceManager
at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:627)
at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1567)
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)
at java.lang.Thread.run(Unknown Source)
A complete test project is available to reproduce the problem in this message : http://old.nabble.com/iPojo-Composite-to33188907.html