felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Patrick.Pus...@telekom.de>
Subject Felix-Resolver: Fragment was not selected for attachment
Date Tue, 24 Jul 2018 11:35:12 GMT
Hi all,

during resolving of several bundles with the felixResolver I get a ResolutionException: org.apache.felix.resolver.reason.ReasonException:
Fragment was not selected for attachment: com.xx.yy version=

But the unresolvedRequirments are 0 in the exception. This confuses me, why an exception is
thrown but no unresolved Req. are there?

I found the origin of the error in that class: https://github.com/eclipse/rt.equinox.framework/blob/eb0f2a037d2e03d66f0eca857b16838745bbb2a2/bundles/org.eclipse.osgi/felix/src/org/apache/felix/resolver/Candidates.java
but it's hard for me to understand the comment:
 // For any fragment that wasn't selected, remove the
 // current host as a potential host for it and remove it
 // as a dependent on the host. If there are no more
// potential hosts for the fragment, then mark it as
// unselected for later removal.

Could someone explain me what happens during resolving here or even explain the code comment
to me?

I tested with bndtools 3.5.0, 4.0.0 and 4.1.0-SNAPSHOT. All are producing the same ResolutionException.

Thanks and best regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message