You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Zhou (JIRA)" <ji...@apache.org> on 2011/01/23 13:50:43 UTC

[jira] Created: (FELIX-2796) felix.auto.deploy.action has no effect with "update" action

felix.auto.deploy.action has no effect with "update" action
-----------------------------------------------------------

                 Key: FELIX-2796
                 URL: https://issues.apache.org/jira/browse/FELIX-2796
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: framework-3.0.5
         Environment: JDK6, Win7
            Reporter: Zhou


I used: 

felix.auto.deploy.action=install,update,start

and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.

if I used:

felix.auto.deploy.actioin=update

Felix would not be able to start. it would fail with NullPointerException.

Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.



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


[jira] Updated: (FELIX-2796) felix.auto.deploy.action throws NPE with only "update" action

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

Guillaume Nodet updated FELIX-2796:
-----------------------------------

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

> felix.auto.deploy.action throws NPE with only "update" action
> -------------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.0.9
>
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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

        

[jira] Commented: (FELIX-2796) felix.auto.deploy.action has no effect with "update" action

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

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

The intent is as you describe, to automatically update the bundles in the auto-deploy directory each time the framework is started. I just did a test and it worked for me. I even tried it with only update and I didn't see an NPE. Note that if you only have update, update will cause any bundles to be installed, only updated if they are already installed.

Perhaps you could create a working framework install directory where this is failing and archive it up and attach it to this issue.

> felix.auto.deploy.action has no effect with "update" action
> -----------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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


[jira] Updated: (FELIX-2796) felix.auto.deploy.action throws NPE with only "update" action

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

Richard S. Hall updated FELIX-2796:
-----------------------------------

    Component/s:     (was: Framework)
                 Main
       Priority: Minor  (was: Major)
        Summary: felix.auto.deploy.action throws NPE with only "update" action  (was: felix.auto.deploy.action has no effect with "update" action)

> felix.auto.deploy.action throws NPE with only "update" action
> -------------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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

        

[jira] Resolved: (FELIX-2796) felix.auto.deploy.action throws NPE with only "update" action

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

Richard S. Hall resolved FELIX-2796.
------------------------------------

    Resolution: Fixed
      Assignee: Richard S. Hall

Committed a fix for this. Please close if you are satisfied, thanks!

> felix.auto.deploy.action throws NPE with only "update" action
> -------------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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

        

[jira] Updated: (FELIX-2796) felix.auto.deploy.action has no effect with "update" action

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

Zhou updated FELIX-2796:
------------------------

    Attachment: FELIX-2796.zip

> felix.auto.deploy.action has no effect with "update" action
> -----------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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


[jira] Updated: (FELIX-2796) felix.auto.deploy.action has no effect with "update" action

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

Richard S. Hall updated FELIX-2796:
-----------------------------------

    Fix Version/s: framework-3.2.0

> felix.auto.deploy.action has no effect with "update" action
> -----------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>             Fix For: framework-3.2.0
>
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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


[jira] Commented: (FELIX-2796) felix.auto.deploy.action throws NPE with only "update" action

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

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

I am definitely able to reproduce your NPE with the attached archive, thanks for providing it. We need to check if the bundle is actually installed before calling update on it.

> felix.auto.deploy.action throws NPE with only "update" action
> -------------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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

        

[jira] Commented: (FELIX-2796) felix.auto.deploy.action throws NPE with only "update" action

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

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

Regarding your original attempt to use auto-deploy and auto-start mechanisms together, in theory, this should work, but it wasn't exactly intended to be used that way. To make it work, you'd have to make sure to use the absolute URL on the auto-start property, because bundles installed via the auto-deploy directory end up using their absolute path as their location URL.

> felix.auto.deploy.action throws NPE with only "update" action
> -------------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>         Attachments: FELIX-2796.zip
>
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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

        

[jira] Commented: (FELIX-2796) felix.auto.deploy.action has no effect with "update" action

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

Zhou commented on FELIX-2796:
-----------------------------

Now I seem unable to reproduce my first issue, i.e. restart felix with no update done for the new jar. Probably that had to do with my messing around the other day on the configuration and mixing different deploy methods.

The NPE issue can be reproduced with my attached setup. You can simply unzip the file, browse to the bin folder, and run "run.bat". I can imagine that could be caused by an attempt to update a not yet existent bundle. This is however not a big issue since I can just use action=install,update,start instead.

As far as I can see, auto deploy cannot play with felix.auto.start.x options. My attempt was to enforce a start level on bundles installed/updated by the auto deploy method. but now it proves to be a wrong idea. Fortunately, I've managed to achieve all my deploy goals with the latest fileinstall. So I wont need to rely on either auto deploy or auto start options.


> felix.auto.deploy.action has no effect with "update" action
> -----------------------------------------------------------
>
>                 Key: FELIX-2796
>                 URL: https://issues.apache.org/jira/browse/FELIX-2796
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.5
>         Environment: JDK6, Win7
>            Reporter: Zhou
>
> I used: 
> felix.auto.deploy.action=install,update,start
> and expected it to update a bundle when I overwrite the jar file in the deploy dir and restart the framework.
> Felix simply ignores and no update is done to the bundle regardless the jar file has been updated.
> if I used:
> felix.auto.deploy.actioin=update
> Felix would not be able to start. it would fail with NullPointerException.
> Generally, my goal was to auto update bundles with their jar files updated in the folder whenever felix is restarted.

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