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

Avoid exception on startup if Apache Tika is not available

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Commons MIME 2.3.0
    • Commons
    • None

    Description

      If Apache Tika is not available, a long exception stacktrace is logged as the DS component can't be instantiated. This is due to the fact that the component is lazy (which is good) and therefore DS registers a ServiceFactory for it. The ServiceFactory eventually returns null which then must be logged by the framework. Therefore there is nothing we can do in DS to prevent this logging.
      As this is a simple component with zero references, zero configuration, it is much better to register it via a BundleActivator if Tika is available

      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: