Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6374

Bundles installed from feature shown as Active despite exeption being thrown

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.6
    • Fix Version/s: 4.3.0, 4.2.8
    • Component/s: karaf
    • Labels:
      None

      Description

      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:

      public class Dummy1 implements BundleActivator {
      
        @Override
        public final void start(final BundleContext bundleContext) {
            throw new RuntimeException("denied");
        }
      }
      

      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?

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              eximius Kamil
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: