[
https://issues.apache.org/jira/browse/KARAF-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295855#comment-14295855
]
John Ellinwood commented on KARAF-1729:
---------------------------------------
I've got invalid bundle again. I was helping somebody debug some failed
blueprint files. There was a wiring issue, and i did a "refresh" on a
bundle... it didn't help so I did a "refresh" with no arguments. I tried to
stop and start the bundle to see if blueprint would start the properly, but I
got an error about bundle state change. My only option was to restart karaf.
When it came back up the bundles that had failed to start were all invalid now.
I can stop and start karaf and the bundles stay in an invalid state. I turned
on all the debug you suggested but I didn't see any output in any logs. No log
files in the $KARAF_HOME/data directory either.
I did notice a very odd thing that
$KARAF_HOEM/data/cache/org.eclipse.osgi/bundles/450/ only contained a
subdirectory of "2/"... there was no "1/" in there. All the invalid bundles
only had a "2" and no "1". I imagine this is the root of the problem.
> 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é
> Priority: Critical
> Fix For: 4.0.0, 3.0.4
>
> 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)