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

Support Java 8 as a platform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Launchpad Base 2.4.0
    • Launchpad Base 2.5.0
    • Launchpad
    • None

    Description

      The Sling launchpad currently has Java platform definitions for Java 5, 6, and 7 but is lacking them for Java 8. As a consequence the framework fails to start on Java 8 platforms with exceptions such as:

      26.11.2012 18:13:10.171 ERROR [main] ERROR: Error parsing system bundle export statement: org.osgi.framework; version=1.6, org.osgi.framework.hooks.bundle; version=1.0, org.osgi.framework.hooks.resolver; version=1.0, org.osgi.framework.hooks.service; version=1.1, org.osgi.framework.hooks.weaving; version=1.0, org.osgi.framework.launch; version=1.0, org.osgi.framework.startlevel; version=1.0, org.osgi.framework.wiring; version=1.0, org.osgi.service.packageadmin; version=1.2, org.osgi.service.startlevel; version=1.1, org.osgi.service.url; version=1.0, org.osgi.util.tracker;version="1.5", org.apache.sling.launchpad.api;version=1.1.0, (org.osgi.framework.BundleException: Exported package names cannot be zero length.)
      org.osgi.framework.BundleException: Exported package names cannot be zero length.
      at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:729)
      at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:191)
      at org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:221)
      at org.apache.felix.framework.Felix.<init>(Felix.java:374)
      at org.apache.sling.launchpad.base.impl.SlingFelix.<init>(SlingFelix.java:45)
      at org.apache.sling.launchpad.base.impl.Sling.createFramework(Sling.java:343)
      at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:212)
      at org.apache.sling.launchpad.base.app.MainDelegate$1.<init>(MainDelegate.java:183)
      at org.apache.sling.launchpad.base.app.MainDelegate.start(MainDelegate.java:183)
      at org.apache.sling.launchpad.app.Main.doStart(Main.java:386)
      at org.apache.sling.launchpad.app.Main.doStart(Main.java:322)

      Attachments

        Issue Links

          Activity

            People

              fmeschbe Felix Meschberger
              fmeschbe Felix Meschberger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: