Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6491

Make RestartActiveBundlesTask#execute more resilient.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Installer Core 3.8.2
    • Component/s: Installer
    • Labels:
      None

      Description

      RestartActiveBundlesTask#execute could be more resilient.
      See this stacktrace for an example:

      [OsgiInstallerImpl] org.apache.sling.installer.core.impl.OsgiInstallerImpl Uncaught exception during task execution! java.lang.IllegalStateException: Cannot start an uninstalled bundle. 	at org.apache.felix.framework.Felix.startBundle(Felix.java:1953) 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 	at org.apache.sling.installer.core.impl.tasks.RestartActiveBundlesTask.execute(RestartActiveBundlesTask.java:75) 	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:855) 	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:692) 	at 
      

      patch to follow

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                asanso Antonio Sanso
                Reporter:
                asanso Antonio Sanso
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: