You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Roland Huss (JIRA)" <ji...@apache.org> on 2010/01/08 11:34:55 UTC
[jira] Updated: (ARIES-108) bundle.getBundleContext().getBundles()
throws NPE on INSTALLED Bundles
[ https://issues.apache.org/jira/browse/ARIES-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roland Huss updated ARIES-108:
------------------------------
Attachment: patch.txt
Patch for avoiding NPEs (but still missing bundles)
> bundle.getBundleContext().getBundles() throws NPE on INSTALLED Bundles
> ----------------------------------------------------------------------
>
> Key: ARIES-108
> URL: https://issues.apache.org/jira/browse/ARIES-108
> Project: Aries
> Issue Type: Bug
> Components: JMX
> Affects Versions: Incubation
> Reporter: Roland Huss
> Priority: Critical
> Attachments: patch.txt
>
>
> Within FrameworkUtils when extracting imported packages or dependencies
> this is done by looking up all bundles via the Bundle's BundleContext.
> Unfortunately bundle.getBundleContext() returns null for resolved bundles.
> One can workaround by checking for null, but this will nevertheless miss
> Bundles in certain states.
> BTW, I agree that the dependency resolution via iteration for each
> JMX call is ugly (and expensive!). There must be a better way ....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.