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

Feature launcher does not specify which content package requires a missing dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • Feature Model
    • None

    Description

      When trying to run an application which depends on a missing content package, an uncaught exception stops the application, but does not explain which content package is missing a dependency, making troubleshooting difficult:

      [ERROR] Error while assembling launcher: Package has unresolved dependencies: day/cq610/social/enablement:cq-social-enablement-pkg:1.1.0
      shaded.org.apache.jackrabbit.vault.packaging.DependencyException: Package has unresolved dependencies: day/cq610/social/enablement:cq-social-enablement-pkg:1.1.0
      	at shaded.org.apache.jackrabbit.vault.packaging.registry.impl.ExecutionPlanBuilderImpl.resolveInstall(ExecutionPlanBuilderImpl.java:257)
      	at shaded.org.apache.jackrabbit.vault.packaging.registry.impl.ExecutionPlanBuilderImpl.validate(ExecutionPlanBuilderImpl.java:239)
      	at org.apache.sling.feature.extension.content.ContentHandler.buildExecutionPlan(ContentHandler.java:79)
      	at org.apache.sling.feature.extension.content.ContentHandler.handle(ContentHandler.java:121)
      	at org.apache.sling.feature.launcher.impl.FeatureProcessor.prepareLauncher(FeatureProcessor.java:159)
      	at org.apache.sling.feature.launcher.impl.Main.main(Main.java:250)

      It would be very helpful if the package missing dependencies would be included in the message as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: