felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre De Rop (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-5274) remove callback fails after manually removing dynamic dependencies
Date Sat, 24 Sep 2016 21:21:20 GMT

     [ https://issues.apache.org/jira/browse/FELIX-5274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pierre De Rop resolved FELIX-5274.
----------------------------------
    Resolution: Fixed

putting this issue to Fixed but feel free to reopen if any problems.

> 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
>            Assignee: Pierre De Rop
>
> 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)

Mime
View raw message