aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Keane (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ARIES-108) bundle.getBundleContext().getBundles() throws NPE on INSTALLED Bundles
Date Mon, 11 Jan 2010 20:01:54 GMT

    [ https://issues.apache.org/jira/browse/ARIES-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798834#action_12798834
] 

Alan Keane commented on ARIES-108:
----------------------------------

Hi Roland,

I've made an update for #getImportedPackages and #getRequiredBundles that will parse the corresponding
manfiest headers and then use 
those values to query PackageAdmin.
When Dynamic Imports are used however, the full iteration will still be performed.
If you get a chance sometime, I would be interested to know if there is any significant improvement
on listBundles() for above

Thanks,
Alan

> 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
>            Assignee: Alan Keane
>            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 non-resolved bundles.
> One can workaround this 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.


Mime
View raw message