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 2010/02/05 09:18:27 UTC

[jira] Created: (FELIX-2045) Restarting the framework from the web console (or using update on the system bundle) does not work

Restarting the framework from the web console (or using update on the system bundle) does not work
--------------------------------------------------------------------------------------------------

                 Key: FELIX-2045
                 URL: https://issues.apache.org/jira/browse/FELIX-2045
             Project: Felix
          Issue Type: Bug
          Components: Karaf
    Affects Versions: karaf-1.2.0
            Reporter: Guillaume Nodet
            Assignee: Guillaume Nodet
             Fix For: karaf-1.4.0




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2045) Restarting the framework from the web console (or using update on the system bundle) does not work

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830005#action_12830005 ] 

Guillaume Nodet commented on FELIX-2045:
----------------------------------------

Note that restarting the framework only works if the framework supports that, which is the case for Equinox but not for Felix.

> Restarting the framework from the web console (or using update on the system bundle) does not work
> --------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2045
>                 URL: https://issues.apache.org/jira/browse/FELIX-2045
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.2.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.4.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-2045) Restarting the framework from the web console (or using update on the system bundle) does not work

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-2045.
------------------------------------

    Resolution: Fixed

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	M	karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java
Committed r906851


> Restarting the framework from the web console (or using update on the system bundle) does not work
> --------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2045
>                 URL: https://issues.apache.org/jira/browse/FELIX-2045
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.2.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.4.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2045) Restarting the framework from the web console (or using update on the system bundle) does not work

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830110#action_12830110 ] 

Richard S. Hall commented on FELIX-2045:
----------------------------------------

Well, it may or may not be buggy, but it is implemented:

    public void update(InputStream is) throws BundleException
    {
        Object sm = System.getSecurityManager();

        if (sm != null)
        {
            ((SecurityManager) sm).checkPermission(new AdminPermission(this,
                AdminPermission.EXECUTE));
        }

        // Spec says to close input stream first.
        try
        {
            if (is != null) is.close();
        }
        catch (IOException ex)
        {
            m_logger.log(Logger.LOG_WARNING, "Exception closing input stream.", ex);
        }

        // Then to stop and restart the framework on a separate thread.
        new Thread(new Runnable() {
            public void run()
            {
                try
                {
                    // First acquire the system bundle lock to verify the state.
                    acquireBundleLock(Felix.this, Bundle.STARTING | Bundle.ACTIVE);
                    // Set the reason for the shutdown.
                    m_shutdownGate.setMessage(
                        new FrameworkEvent(FrameworkEvent.STOPPED_UPDATE, Felix.this, null));
                    // Record the state and stop the system bundle.
                    int oldState = Felix.this.getState();
                    try
                    {
                        stop();
...

> Restarting the framework from the web console (or using update on the system bundle) does not work
> --------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2045
>                 URL: https://issues.apache.org/jira/browse/FELIX-2045
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.2.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.4.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.