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

John Ellinwood commented on KARAF-1729:
---------------------------------------

There may be more than one issue. The first is the test i posted earlier that 
only happens on felix with the container being killed.  The second issue is 
that I regularly encounter "Invalid Bundle" with karaf.framework=equinox as 
well on Karaf 3.0.1 in the following scenario:

1. Create a kar containing snapshot bundles mygroup:bundle-1:1.0.0-SNAPSHOT, 
mygroup:bundle-2:1.0.0-SNAPSHOT, and a feature file referencing them by mvn: 
location
2. Install the kar
3. Make a change and redeploy mygroup:bundle-1:1.0.0-SNAPSHOT to nexus/maven
4. bundle:update bundle-1
5. bundle:headers bundle-1 --> Invalid Bundle
6. Restart karaf
7. bundle:headers bundle-1 --> Invalid Bundle... restart doesn't fix it

Additionally, the bundles usually contain blueprint.xml files with service 
references, but I don't know if that matters.  Also, I don't know if KAR is the 
issue or simply the feature file.

I apologize for failing to provide a solid example of the problem in equinox.  
I will make some time this week to create and attach a real example that 
reliably generates the issue, as well as verify its still an issue on karaf 
3.0.2.

I know it sounds like an unlikely scenario, but this is the standard 
development pattern for our programmers... deploy a base KAR, make some changes 
to a bundle, then update that bundle.

> 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.3
>
>         Attachments: karaf-invalid-bundle.tgz
>
>
> 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.3.4#6332)

Reply via email to