Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-441

Sometimes, tika not working (crashed) because of null classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.8
    • general
    • MS Windows with tika running under Apache Commons Daemon (procrun)

    Description

      I used Tika inside application, that should run as MS Windows service via Apache Commons Daemon - procrun (http://commons.apache.org/daemon/procrun.html). When it was running under procrun, then Thread.currentThread().getContextClassLoader() returned null instead ClassLoader's instance. I made a workaround in my app by explicitly setting classloader for current thread. I'll attach fix, that should use system class loader if getContextClassLoader will return null

      Attachments

        1. classloader-fix.diff
          1 kB
          Alex Ott

        Activity

          People

            jukkaz Jukka Zitting
            alexott Alex Ott
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: