Karaf
  1. Karaf
  2. KARAF-885

StartBundle doesn't deploy all bundles if one failed

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.4, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      The shell StartBundle commands doesn't start all bundles if one failed:

      protected void doExecute(List<Bundle> bundles) throws Exception {
      for (Bundle bundle : bundles)

      { bundle.start(); }

      }

      The correct approach is to add a try/catch block around bundle.start() to display a warn message in the console, but keep one starting the next bundles in the list.

        Activity

        Jean-Baptiste Onofré created issue -
        Jean-Baptiste Onofré made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Jean-Baptiste Onofré made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development