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=1.7.0.201806111251

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,
Patrick

Reply via email to