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

Sling Query won't install on Sling12 Launcher Instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Sling Query 4.0.2
    • None
    • Sling Query
    • None

    Description

      Logs show this error commons-lang is missing...

      23.07.2020 11:16:28.973 INFO [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle org.apache.sling.query [218]. Reason: {}. Will retry.
      org.osgi.framework.BundleException: Unable to resolve org.apache.sling.query [218](R 218.0): missing requirement [org.apache.sling.query [218](R 218.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.lang)(version>=2.5.0)(!(version>=3.0.0))) Unresolved requirements: [[org.apache.sling.query [218](R 218.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.lang)(version>=2.5.0)(!(version>=3.0.0)))]
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
      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.BundleStartTask.execute(BundleStartTask.java:97) [org.apache.sling.installer.core:3.11.2]
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:918) [org.apache.sling.installer.core:3.11.2]
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:755) [org.apache.sling.installer.core:3.11.2]
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:304) [org.apache.sling.installer.core:3.11.2]
      at java.base/java.lang.Thread.run(Thread.java:834)
      23.07.2020 11:16:28.978 INFO [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle org.apache.sling.query [218]. Reason: {}. Will retry.
      org.osgi.framework.BundleException: Unable to resolve org.apache.sling.query [218](R 218.0): missing requirement [org.apache.sling.query [218](R 218.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.lang)(version>=2.5.0)(!(version>=3.0.0))) Unresolved requirements: [[org.apache.sling.query [218](R 218.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.lang)(version>=2.5.0)(!(version>=3.0.0)))]
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
      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.BundleStartTask.execute(BundleStartTask.java:97) [org.apache.sling.installer.core:3.11.2]
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:918) [org.apache.sling.installer.core:3.11.2]
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:755) [org.apache.sling.installer.core:3.11.2]
      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:304) [org.apache.sling.installer.core:3.11.2]
      at java.base/java.lang.Thread.run(Thread.java:834)

      *After updating the pom dependency and various import statements, the bundle builds and installs. *

      Removed
      <!-- <dependency>-->
      <!-- <groupId>commons-lang</groupId>-->
      <!-- <artifactId>commons-lang</artifactId>-->
      <!-- <scope>provided</scope>-->
      <!-- <version>2.5</version>-->
      <!-- </dependency>-->

      Added
      <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <version>3.9</version>
      </dependency>}}

      Based on the migration guide, most use cases should be fine just updating the import statements. I think that's the case for Sling Query as well.
      http://commons.apache.org/proper/commons-lang/article3_0.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cris_rockwell Cris Rockwell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m