karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Shikov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1729) Cannot uninstall bundle, bundle xx is invalid
Date Wed, 27 Aug 2014 18:45:59 GMT

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

Serge Shikov commented on KARAF-1729:
-------------------------------------

I'm experiencing this problem when I can't stop karaf using bin/stop or system:shutdown. 

I don't know why karaf can't stop, but I think this is due to some threads was locked, on
blocking IO, for example. After kill and warm start I can't usually do something with bundles,
like stop/start/uninstall, with the same error message. Invalid bundles could be in different
states (installed but not active, for example).

Solution is the same - clean startup or manually remove bundles from cache dir.

> Cannot uninstall bundle, bundle xx is invalid
> ---------------------------------------------
>
>                 Key: KARAF-1729
>                 URL: https://issues.apache.org/jira/browse/KARAF-1729
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-osgi
>    Affects Versions: 3.0.0
>            Reporter: Hendy Irawan
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0, 3.0.2
>
>
> Karaf marks a bundle as installed and active, but I can't uninstall it, stop it.
> {code}
> karaf@root()> list -t 0 -s | grep pool
> [1295] [    Active] [   50] org.apache.commons.pool (1.6.0)
> karaf@root()> uninstall 1295
> Bundle 1295 is invalid
> No bundles specified.
> karaf@root()> uninstall 1295
> Bundle 1295 is invalid
> No bundles specified.
> karaf@root()> list -t 0 -s | grep pool
> [1295] [    Active] [   50] org.apache.commons.pool (1.6.0)
> karaf@root()> uninstall org.apache.commons.pool
> No bundles specified.
> karaf@root()> list -t 0 -s | grep pool
> [1295] [    Active] [   50] org.apache.commons.pool (1.6.0)
> karaf@root()> stop 1295
> Bundle 1295 is invalid
> No bundles specified.
> {code}
> Workaround: Delete folder karaf/data/cache/bundle1295



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message