[
https://issues.apache.org/jira/browse/KARAF-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Pieber updated KARAF-8:
-------------------------------
Affects Version/s: 2.1.2
Assignee: Andreas Pieber
I think I've finished this already, but I have to check again
> Improve error reporting for features installer
> ----------------------------------------------
>
> Key: KARAF-8
> URL: https://issues.apache.org/jira/browse/KARAF-8
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.1.2
> Environment: ServiceMix 4.1.0 SNAPSHOT
> Karaf 1.2.0
> Reporter: Vincent Girard-Reydet
> Assignee: Andreas Pieber
> Priority: Minor
> Labels: features, packaging
>
> When a feature is installed and one of the to-be-installed bundles raises an
> exception, the feature installer only reports 'null' on the console to the
> user. The error reporting should be improved so that at least the user knows
> which bundle caused the error (the only way to know currently is to switch
> logs to TRACE level and note the last bundle trying to install).
> Steps to reproduce:
> 1. unzip one of the bundles of a feature (the bundle can already be
> installed, it does not change anything)
> 2. Make a trivial change in the Manifest
> 3. Zip again the bundle using 7-Zip file archiver (mode: ZIP format, normal
> compression)
> 4. Change the file name to xxx.jar and copy it back to your Maven local
> repository (note: if the file was taken from Karaf 'system' repository, it
> should be placed here back again).
> This way we have created a bundle whose Manifest won't be found by the Jar
> reader.
> 5. Install the feature containing your bundle
> When the feature installer tries to open the target bundle to compare version
> to the currently installed version, it will raise an exception. The exception
> is catched, but on the console only "null" is displayed.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira