Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3323

Ipojo composite throw ClassCastException when configuration is updated thru ConfigAdmin

    XMLWordPrintableJSON

    Details

      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

        Attachments

          Activity

            People

            • Assignee:
              clement.escoffier Clement Escoffier
              Reporter:
              dgay David GAY
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: