You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2011/02/21 10:35:38 UTC

[jira] Resolved: (FELIX-2822) [Framework] System bundle module's state not reset when framework restarted leading to NPE

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

Guillaume Nodet resolved FELIX-2822.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: framework-3.2.0)
                   framework-3.0.9

> [Framework] System bundle module's state not reset when framework restarted leading to NPE
> ------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2822
>                 URL: https://issues.apache.org/jira/browse/FELIX-2822
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.8
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.0.9
>
>
> Normally when a bundle is refreshed, we throw away its module and then recreate it, so we are always starting with a fresh module. For the system bundle, when we stop and restart the framework, the system bundle module is reused. When the framework is restarted, the system bundle module state is still resolved, so when we re-resolve it in Framework.init(), it doesn't get empty wires injected into it since the resolver thinks it's resolved. This leads to subsequent NPEs when the resolver tries to wire later modules to the system bundle.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira