aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIES-1126) Weave hook could NPE
Date Fri, 18 Oct 2013 19:37:42 GMT

     [ https://issues.apache.org/jira/browse/ARIES-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved ARIES-1126.
--------------------------------

       Resolution: Fixed
    Fix Version/s: proxy-impl-1.0.2

> Weave hook could NPE
> --------------------
>
>                 Key: ARIES-1126
>                 URL: https://issues.apache.org/jira/browse/ARIES-1126
>             Project: Aries
>          Issue Type: Bug
>          Components: Proxy
>            Reporter: Daniel Kulp
>            Assignee: Daniel Kulp
>             Fix For: proxy-impl-1.0.2
>
>
> In some non-reproducible cases with Equinox (likely during a refresh, but not really
sure), the call at the first line of weave of:
> {code:java}
> Bundle b = wovenClass.getBundleWiring().getBundle();
> {code}
> can NPE due to the bundle wiring being null.  This will result in bundles not starting
at all.   There is no way to work around this.
> Two part proposed fix:
> 1) Check for null there and if null, don't do the bundle check.   Note:  if we DO have
to weave, we do still need the wiring for the loader later.
> 2) If the "enabled" flag is set to "none", don't register the hook at all.  We know nothing
will be weaved by the hook so don't bother.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message