Community
Participate
Working Groups
Build Identifier: 3.5.2 When a bundle cannot be resolved due to unsatisfied constraints, the exception which is thrown does not contain the name of the bundle, which cannot be resolved. Reproducible: Always Steps to Reproduce: 1. Install the sample bundle 2. Try to start it 3. See that the BundleException message does not contain the name of the bundle
Created attachment 165740 [details] Sample bundle to reproduce the problem. Sample bundle whose manifest contains an import, which cannot be wired.
Created attachment 165741 [details] Proposition for a patch for the problem. Patch which adds the name of the bundle to the exception's message.
Thanks. I released the patch with a small change to use AbstractBundle.toString instead of BundleDescription.toString to get the information on the bundle. I also quoted the bundle information in the message.
Comment on attachment 165741 [details] Proposition for a patch for the problem. Marking for iplog. Thanks for the patch!
Created attachment 165766 [details] Patch for the general case It seems as if there is the same problem with the exception message when the bundle cannot be resolved for some other reason (not unsatisfied constraints) - it lacks the bundle name. This patch fixes this in just the same way. I do not open a new bug, because the problem is very similar.
Comment on attachment 165766 [details] Patch for the general case Thanks, I went ahead and released this patch also. Thanks. This case should be very rare and would actually indicate some other bug in the framework since we would be either missing the BundleDescription or have no errors available from the resolver for the unresolved bundle.