You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Alex Ott (JIRA)" <ji...@apache.org> on 2010/06/15 20:55:23 UTC

[jira] Updated: (TIKA-441) Sometimes, tika not working (crashed) because of null classloader

     [ https://issues.apache.org/jira/browse/TIKA-441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Ott updated TIKA-441:
--------------------------

    Attachment: classloader-fix.diff

proposed patch to fix this issue

> Sometimes, tika not working (crashed) because of null classloader
> -----------------------------------------------------------------
>
>                 Key: TIKA-441
>                 URL: https://issues.apache.org/jira/browse/TIKA-441
>             Project: Tika
>          Issue Type: Bug
>          Components: general
>         Environment: MS Windows with tika running under Apache Commons Daemon (procrun)
>            Reporter: Alex Ott
>            Priority: Minor
>             Fix For: 0.8
>
>         Attachments: classloader-fix.diff
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.