karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5189) Uninstalling a kar cause feature uninstall exception
Date Fri, 09 Jun 2017 10:09:18 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044252#comment-16044252
] 

ASF subversion and git services commented on KARAF-5189:
--------------------------------------------------------

Commit bb7723e4e8bdc3b2bafa77359c2bb38290d02e92 in karaf's branch refs/heads/karaf-4.0.x from
[~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=bb7723e ]

[KARAF-5189] Fix features uninstall order uninstalling features when doing repo remove


> Uninstalling a kar cause feature uninstall exception
> ----------------------------------------------------
>
>                 Key: KARAF-5189
>                 URL: https://issues.apache.org/jira/browse/KARAF-5189
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-kar
>    Affects Versions: 4.0.8
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.10
>
>
> When uninstall a kar (using {{kar:uninstall}} or removing the kar file from the deploy
folder), an exception is thrown:
> {code}
> 2017-06-09 11:22:51,874 | WARN  | raf-4.0.8/deploy | fileinstall                    
 | 4 - org.apache.felix.fileinstall - 3.5.6 | Failed to uninstall artifact: /home/jbonofre/Workspace/karaf/assemblies/apache-karaf/target/apache-karaf-4.0.8/deploy/test-1.0-SNAPSHOT.kar
> java.lang.IllegalArgumentException: Feature named 'test/1.0.0.SNAPSHOT' is not installed
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.uninstallFeatures(FeaturesServiceImpl.java:997)[8:org.apache.karaf.features.core:4.0.8]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.uninstallFeatures(FeaturesServiceImpl.java:872)[8:org.apache.karaf.features.core:4.0.8]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:528)[8:org.apache.karaf.features.core:4.0.8]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:491)[8:org.apache.karaf.features.core:4.0.8]
>         at org.apache.karaf.kar.internal.KarServiceImpl.uninstall(KarServiceImpl.java:232)[36:org.apache.karaf.kar.core:4.0.8]
>         at org.apache.karaf.deployer.kar.KarArtifactInstaller.uninstall(KarArtifactInstaller.java:56)[27:org.apache.karaf.deployer.kar:4.0.8]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:1070)[4:org.apache.felix.fileinstall:3.5.6]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:888)[4:org.apache.felix.fileinstall:3.5.6]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:483)[4:org.apache.felix.fileinstall:3.5.6]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)[4:org.apache.felix.fileinstall:3.5.6]
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)[4:org.apache.felix.fileinstall:3.5.6]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message