You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Serge Starovoitenkov (Created) (JIRA)" <ji...@apache.org> on 2012/03/19 15:30:43 UTC

[jira] [Created] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
----------------------------------------------------------------------------------------------------------------

                 Key: KARAF-1276
                 URL: https://issues.apache.org/jira/browse/KARAF-1276
             Project: Karaf
          Issue Type: Improvement
          Components: karaf-shell
    Affects Versions: 2.2.5
         Environment: Windows XP
Servicemix 4.4.1
Java 1.6.0_16
            Reporter: Serge Starovoitenkov
            Priority: Minor


With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Posted by "Freeman Fang (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233062#comment-13233062 ] 

Freeman Fang edited comment on KARAF-1276 at 3/20/12 12:37 AM:
---------------------------------------------------------------

Hi Serge,

This is a known issue(KARAF-1114) and already get fixed for Karaf 2.2.5, just remove default-activation="lazy" should be enough.
And Servicemix 4.4.1 still use Karaf 2.2.4, so I correct the "Affects Version" of this issue.

Good investigation btw.
Best Regards
Freeman
                
      was (Author: ffang):
    Hi Serge,

This is a known issue(KARAF-1114) and already get fixed for Karaf 2.2.5, just remove default-activation="lazy" should be enough.
And Servicemix 4.4.1 still use Karaf 2.2.4, so I correct the "Affects Version" of this issue.

Best Regards
Freeman
                  
> Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1276
>                 URL: https://issues.apache.org/jira/browse/KARAF-1276
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>         Environment: Windows XP
> Servicemix 4.4.1
> Java 1.6.0_16
>            Reporter: Serge Starovoitenkov
>            Assignee: Freeman Fang
>            Priority: Minor
>              Labels: newbie
>
> With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
> If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
> Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Posted by "Serge Starovoitenkov (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Serge Starovoitenkov closed KARAF-1276.
---------------------------------------

    
> Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1276
>                 URL: https://issues.apache.org/jira/browse/KARAF-1276
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>         Environment: Windows XP
> Servicemix 4.4.1
> Java 1.6.0_16
>            Reporter: Serge Starovoitenkov
>            Assignee: Freeman Fang
>            Priority: Minor
>              Labels: newbie
>             Fix For: 2.2.5, 3.0.0
>
>
> With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
> If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
> Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Posted by "Freeman Fang (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang updated KARAF-1276:
--------------------------------

    Affects Version/s:     (was: 2.2.5)
                       2.2.4
    
> Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1276
>                 URL: https://issues.apache.org/jira/browse/KARAF-1276
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>         Environment: Windows XP
> Servicemix 4.4.1
> Java 1.6.0_16
>            Reporter: Serge Starovoitenkov
>            Assignee: Freeman Fang
>            Priority: Minor
>              Labels: newbie
>
> With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
> If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
> Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Posted by "Freeman Fang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233062#comment-13233062 ] 

Freeman Fang commented on KARAF-1276:
-------------------------------------

Hi Serge,

This is a known issue(KARAF-1114) and already get fixed for Karaf 2.2.5, just remove default-activation="lazy" should be enough.
And Servicemix 4.4.1 still use Karaf 2.2.4, so I correct the "Affects Version" of this issue.

Best Regards
Freeman
                
> Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1276
>                 URL: https://issues.apache.org/jira/browse/KARAF-1276
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>         Environment: Windows XP
> Servicemix 4.4.1
> Java 1.6.0_16
>            Reporter: Serge Starovoitenkov
>            Assignee: Freeman Fang
>            Priority: Minor
>              Labels: newbie
>
> With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
> If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
> Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Posted by "Freeman Fang (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved KARAF-1276.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.5
                   3.0.0
    
> Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1276
>                 URL: https://issues.apache.org/jira/browse/KARAF-1276
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>         Environment: Windows XP
> Servicemix 4.4.1
> Java 1.6.0_16
>            Reporter: Serge Starovoitenkov
>            Assignee: Freeman Fang
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.0.0, 2.2.5
>
>
> With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
> If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
> Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (KARAF-1276) Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Posted by "Freeman Fang (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned KARAF-1276:
-----------------------------------

    Assignee: Freeman Fang
    
> Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1276
>                 URL: https://issues.apache.org/jira/browse/KARAF-1276
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 2.2.5
>         Environment: Windows XP
> Servicemix 4.4.1
> Java 1.6.0_16
>            Reporter: Serge Starovoitenkov
>            Assignee: Freeman Fang
>            Priority: Minor
>              Labels: newbie
>
> With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [         ] - for all bundles.
> If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
> Adding 'activation="eager"' to bean definition solves the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira