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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment