You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Tim Hull (JIRA)" <ji...@apache.org> on 2014/12/30 01:55:13 UTC

[jira] [Created] (FELIX-4740) Bundles don't start if no BundleEvent fired after reaching start level

Tim Hull created FELIX-4740:
-------------------------------

             Summary: Bundles don't start if no BundleEvent fired after reaching start level
                 Key: FELIX-4740
                 URL: https://issues.apache.org/jira/browse/FELIX-4740
             Project: Felix
          Issue Type: Bug
          Components: File Install
    Affects Versions: fileinstall-3.4.2
         Environment: Mac OS X 10.10, Apache Karaf 3.0.2
            Reporter: Tim Hull


In working with FileInstall, I've discovered an odd condition under which bundles installed by FileInstall will never be started, even though their start level is reached. This seems to happen most frequently when the active level is set to a value less than the start level. 

In that case, the initial scan will install bundles in the deploy directory, but not start them. That is expected. However, once the required start level is reached, the installed bundles are only started if a BundleEvent is fired after the start level change. Otherwise, the stateChanged flag in FileInstall will not be set, and we will never start the installed bundles.

At least in persistent mode, it would seem more logical for FileInstall to call start() on each bundle regardless of start level and let the framework autostart them. Alternatively, just make sure start() is called on bundles once their start level is reached...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)