You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/10/09 04:02:00 UTC

[jira] [Deleted] (KARAF-3440) Command "refresh bundleId" doesn't work

     [ https://issues.apache.org/jira/browse/KARAF-3440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré deleted KARAF-3440:
----------------------------------------


> Command "refresh bundleId" doesn't work
> ---------------------------------------
>
>                 Key: KARAF-3440
>                 URL: https://issues.apache.org/jira/browse/KARAF-3440
>             Project: Karaf
>          Issue Type: Bug
>         Environment: Windows 7 with Java 1.7.0_65 and MaxOS with Java 1.8
>            Reporter: Giuseppe Gerla
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> I have a bundle "Sample Dependent" that depends from a bundles "Sample Dependency". I install both bundle in karaf and they go in Active state. 
> karaf@root> list
> START LEVEL 100 , List Threshold: 50
>    ID   State         Blueprint      Level  Name
> [  54] [Active     ] [            ] [   80] Sample Dependency Bundle (1.0.0.SNAPSHOT)
> [  55] [Active     ] [            ] [   80] Sample Dependent Bundle (1.0.0.SNAPSHOT)
> karaf@root> uninstall 54
> karaf@root> list
> START LEVEL 100 , List Threshold: 50
>    ID   State         Blueprint      Level  Name
> [  55] [Active     ] [            ] [   80] Sample Dependent Bundle (1.0.0.SNAPSHOT)
> karaf@root> refresh 55
> karaf@root> list
> START LEVEL 100 , List Threshold: 50
>    ID   State         Blueprint      Level  Name
> [  55] [Active     ] [            ] [   80] Sample Dependent Bundle (1.0.0.SNAPSHOT)
> karaf@root> refresh
> karaf@root> list
> START LEVEL 100 , List Threshold: 50
>    ID   State         Blueprint      Level  Name
> [  55] [Installed  ] [            ] [   80] Sample Dependent Bundle (1.0.0.SNAPSHOT)
> As you can see, after refresh Sample Dependent Bundle, this is still in Active (resolved) state.
> Only using the global refresh the Sample Dependent Bundle goes in Installed (not resolved) state
> Additional information:
> 1) The same wrong behavior using "refresh packages" button in the specific bundle page of webconsole. All works fine using global "refresh packages" button from bundles pages.
> 2) I create a feature for "Sample Dependency Bundle" and another for "Sample Dependent Bundle" that install also the other feature.
> In this case if I uninstall the "Sample Dependency Bundle" feature Karaf remove the bundle from cache folder and refresh correctly the state of "Sample Dependent Bundle" in not resolved.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)