You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2006/10/31 15:48:16 UTC

[jira] Created: (FELIX-168) Start Level Service: 8.2.3 Startup Sequence error

Start Level Service: 8.2.3 Startup Sequence error
-------------------------------------------------

                 Key: FELIX-168
                 URL: http://issues.apache.org/jira/browse/FELIX-168
             Project: Felix
          Issue Type: Bug
          Components: Framework, Specification compliance
    Affects Versions: 0.8.0
            Reporter: Felix Meschberger


Section 8.2.3, Startup Sequence, of the Start Level Service specification states, that the Framework must raise the start level to the beginning start level as if calling StartLevel.setStartLevel with one exceptions: When the beginning start level has been reached, a FrameworkEvent.STARTED event must be broadcast instead of a FrameworkEvent.START_LEVEL_CHANGED.

In conjunction with Section 4.7.1, Statup, of the Life Cycle Layer specification, I assume that (a) the start level must be reached before the framework can be assumed to have started and (b) that the system bundle only enters the ACTIVE state after the beginning start level has been reached.

If this assumption would be correct, two issues exist in the Felix class: (a) the start level is raised asynchronously, meaning that the FrameworkEvent.STARTED is broadcast before the beginning start level has been reached and (b) when reaching the beginning start level a FrameworkEvent.START_LEVEL_CHANGED is sent, which should not actually be done.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (FELIX-168) Start Level Service: 8.2.3 Startup Sequence error

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FELIX-168?page=all ]

Felix Meschberger updated FELIX-168:
------------------------------------

    Attachment: FELIX-168.diff

Attached is a patch, which (a) calls the StartLevelImpl.setStartLevelAndWait method when raising the start level to the beginning start level and (b) does not broadcast the START_LEVEL_CHANGED event if the framework is not running.

> Start Level Service: 8.2.3 Startup Sequence error
> -------------------------------------------------
>
>                 Key: FELIX-168
>                 URL: http://issues.apache.org/jira/browse/FELIX-168
>             Project: Felix
>          Issue Type: Bug
>          Components: Specification compliance, Framework
>    Affects Versions: 0.8.0
>            Reporter: Felix Meschberger
>         Attachments: FELIX-168.diff
>
>
> Section 8.2.3, Startup Sequence, of the Start Level Service specification states, that the Framework must raise the start level to the beginning start level as if calling StartLevel.setStartLevel with one exceptions: When the beginning start level has been reached, a FrameworkEvent.STARTED event must be broadcast instead of a FrameworkEvent.START_LEVEL_CHANGED.
> In conjunction with Section 4.7.1, Statup, of the Life Cycle Layer specification, I assume that (a) the start level must be reached before the framework can be assumed to have started and (b) that the system bundle only enters the ACTIVE state after the beginning start level has been reached.
> If this assumption would be correct, two issues exist in the Felix class: (a) the start level is raised asynchronously, meaning that the FrameworkEvent.STARTED is broadcast before the beginning start level has been reached and (b) when reaching the beginning start level a FrameworkEvent.START_LEVEL_CHANGED is sent, which should not actually be done.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (FELIX-168) Start Level Service: 8.2.3 Startup Sequence error

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FELIX-168?page=all ]

Richard S. Hall resolved FELIX-168.
-----------------------------------

    Resolution: Fixed
      Assignee: Richard S. Hall

I applied this patch...Felix your patch applied without a problem this time, so however you did it differently it made the difference! :-)

> Start Level Service: 8.2.3 Startup Sequence error
> -------------------------------------------------
>
>                 Key: FELIX-168
>                 URL: http://issues.apache.org/jira/browse/FELIX-168
>             Project: Felix
>          Issue Type: Bug
>          Components: Specification compliance, Framework
>    Affects Versions: 0.8.0
>            Reporter: Felix Meschberger
>         Assigned To: Richard S. Hall
>         Attachments: FELIX-168.diff
>
>
> Section 8.2.3, Startup Sequence, of the Start Level Service specification states, that the Framework must raise the start level to the beginning start level as if calling StartLevel.setStartLevel with one exceptions: When the beginning start level has been reached, a FrameworkEvent.STARTED event must be broadcast instead of a FrameworkEvent.START_LEVEL_CHANGED.
> In conjunction with Section 4.7.1, Statup, of the Life Cycle Layer specification, I assume that (a) the start level must be reached before the framework can be assumed to have started and (b) that the system bundle only enters the ACTIVE state after the beginning start level has been reached.
> If this assumption would be correct, two issues exist in the Felix class: (a) the start level is raised asynchronously, meaning that the FrameworkEvent.STARTED is broadcast before the beginning start level has been reached and (b) when reaching the beginning start level a FrameworkEvent.START_LEVEL_CHANGED is sent, which should not actually be done.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (FELIX-168) Start Level Service: 8.2.3 Startup Sequence error

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FELIX-168?page=all ]

Felix Meschberger closed FELIX-168.
-----------------------------------


Glad to hear that. I ran the patch through dos2unix to remove any CRs in the file. It seems that this helped.

Thanks for applying the patch.

> Start Level Service: 8.2.3 Startup Sequence error
> -------------------------------------------------
>
>                 Key: FELIX-168
>                 URL: http://issues.apache.org/jira/browse/FELIX-168
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Specification compliance
>    Affects Versions: 0.8.0
>            Reporter: Felix Meschberger
>         Assigned To: Richard S. Hall
>         Attachments: FELIX-168.diff
>
>
> Section 8.2.3, Startup Sequence, of the Start Level Service specification states, that the Framework must raise the start level to the beginning start level as if calling StartLevel.setStartLevel with one exceptions: When the beginning start level has been reached, a FrameworkEvent.STARTED event must be broadcast instead of a FrameworkEvent.START_LEVEL_CHANGED.
> In conjunction with Section 4.7.1, Statup, of the Life Cycle Layer specification, I assume that (a) the start level must be reached before the framework can be assumed to have started and (b) that the system bundle only enters the ACTIVE state after the beginning start level has been reached.
> If this assumption would be correct, two issues exist in the Felix class: (a) the start level is raised asynchronously, meaning that the FrameworkEvent.STARTED is broadcast before the beginning start level has been reached and (b) when reaching the beginning start level a FrameworkEvent.START_LEVEL_CHANGED is sent, which should not actually be done.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira