You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bram Pouwelse (JIRA)" <ji...@apache.org> on 2016/06/02 05:48:59 UTC

[jira] [Created] (FELIX-5274) remove callback fails after manually removing dynamic dependencies

Bram Pouwelse created FELIX-5274:
------------------------------------

             Summary: remove callback fails after manually removing dynamic dependencies
                 Key: FELIX-5274
                 URL: https://issues.apache.org/jira/browse/FELIX-5274
             Project: Felix
          Issue Type: Bug
          Components: Dependency Manager
    Affects Versions: org.apache.felix.dependencymanager-r8
            Reporter: Bram Pouwelse


When dynamic instance bound dependencies are removed in the component destroy dm fails to call the remove callback. 

I use an adapter service like 
{code}
manager.add(createAdapterService(ApplicationService.class, null, "onAdd", "onChange", "onRemove")
  .setInterface(Servlet.class.getName(), null)
  .setImplementation(WinkServlet.class)
  .setCallbacks("dmInit", "dmStart", "dmStop", "dmDestroy")
  );
{code}

In the WinkServlet init callback an additional dependency is added and this is removed in the destroy callback. When the component is removed I get log messages like

{code}
ERROR org.amdatu.web.rest.wink - [main] "onRemove" callback not found on component instances []
{code}

[http://www.mail-archive.com/users%40felix.apache.org/msg17300.html]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)