Ipojo composite throw ClassCastException when configuration is updated thru 
ConfigAdmin
---------------------------------------------------------------------------------------

                 Key: FELIX-3323
                 URL: https://issues.apache.org/jira/browse/FELIX-3323
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
    Affects Versions: iPOJO-1.8.0
         Environment: Windows 7 - Felix 4.0.2 - Java 1.6.0_26
            Reporter: David GAY


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


--
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

        

Reply via email to