You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/10/05 15:54:00 UTC

[jira] [Updated] (KARAF-6374) Bundles installed from feature shown as Active despite exeption being thrown

     [ https://issues.apache.org/jira/browse/KARAF-6374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-6374:
----------------------------------------
    Fix Version/s:     (was: 4.2.11)
                       (was: 4.3.0)

> Bundles installed from feature shown as Active despite exeption being thrown
> ----------------------------------------------------------------------------
>
>                 Key: KARAF-6374
>                 URL: https://issues.apache.org/jira/browse/KARAF-6374
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.6
>            Reporter: Kamil
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> I've created a feature "dummy-test" which consits of 4 bundles:(dummy1, dummy3, dummy3, dummy4).
> The only thing the bundle does is throw exception:
> {code:java}
> public class Dummy1 implements BundleActivator {
>   @Override
>   public final void start(final BundleContext bundleContext) {
>       throw new RuntimeException("denied");
>   }
> }
> {code}
> when I install my bundles using "bundle:install" - then each of them throws exception and they're all in "Resolved" state.
>  BUT, when I install them using "feature:install dummy-test" - all 4 throw exception (I see that in log:display) but some of them are listed as Active
> Could you please fix that?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)