[
https://issues.apache.org/jira/browse/FELIX-4495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14376054#comment-14376054
]
Guillaume Nodet commented on FELIX-4495:
----------------------------------------
I'm not really trying to do anything.
It's just that this is a valid call to the FrameworkBundleWiring coming from
karaf commands : we have a command to resolve bundles, and if I use it
specifying a single bundle, which is an already attached fragment, it leads to
the NPE i pasted above.
> Candidates from already resolved fragments get ignored if no new hosts are
> available
> ------------------------------------------------------------------------------------
>
> Key: FELIX-4495
> URL: https://issues.apache.org/jira/browse/FELIX-4495
> Project: Felix
> Issue Type: Bug
> Components: Resolver
> Affects Versions: resolver-1.0.0
> Reporter: Thomas Watson
> Assignee: Guillaume Nodet
> Fix For: resolver-1.2.0
>
> Attachments: org.apache.felix.resolver.patch
>
>
> org.apache.felix.resolver.Candidates.populateResource(ResolveContext,
> Resource) gets called for fragments even if they are already resolved so that
> we can attach them to more hosts as needed.
> The issue is that this method will throw a ResolutionException if the
> fragment cannot attach to any new hosts during the current resolve process.
> This has the effect of removing any candidate capabilities provided by
> already resolved fragments.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)