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

Exception inside a task factory brings down installer task

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Installer Core 3.8.10
    • Installer
    • None

    Description

      If a task factory throws an uncaught exception (like an NPE) this brings down the whole installer tasks and the installer stops working:
      java.lang.NullPointerException: null
      at org.apache.sling.installer.factories.configuration.impl.AbstractConfigTask.<init>(AbstractConfigTask.java:58)
      at org.apache.sling.installer.factories.configuration.impl.ConfigInstallTask.<init>(ConfigInstallTask.java:37)
      at org.apache.sling.installer.factories.configuration.impl.ConfigTaskCreator.createTask(ConfigTaskCreator.java:89)
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.getTask(OsgiInstallerImpl.java:674)
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.computeTasks(OsgiInstallerImpl.java:654)
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:283)

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: