Tika
  1. Tika
  2. TIKA-419

Allow parser lookup from a custom class loader

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8
    • Component/s: config
    • Labels:
      None

      Description

      Since TIKA-317 we've used the javax.imageio.spi.ServiceRegistry.lookupProviders(Class<?>) method to look up all the currently available Parser implementations. This method uses the context class loader of the current thread for looking up Parser classes.

      As seen in NUTCH-810 and discussed on tika-users@, this is troublesome for applications with more complex class loading mechanisms. To solve the issue, it would be good to allow the client to optionally specify an explicit class loader instance from which parsers are to be looked up.

        Issue Links

          Activity

          Hide
          Jukka Zitting added a comment -

          Done in revision 940926.

          Show
          Jukka Zitting added a comment - Done in revision 940926.
          Hide
          Brad Greenlee added a comment -

          Cross-posting my comment on SOLR-1902 (https://issues.apache.org/jira/browse/SOLR-1902?focusedCommentId=12875725&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12875725) that the issue still seems to exist:

          I am still seeing this issue. It works if I downgrade Tika to 0.6, but neither the 0.8-SNAPSHOT included in the current Solr trunk nor a snapshot from the Tika trunk work for me. I'm running Java 1.6.0_20 on OS X 10.6.3. I posted about the issue to the solr-user mailing list: http://lucene.472066.n3.nabble.com/TikaEntityProcessor-not-working-td856965.html

          Show
          Brad Greenlee added a comment - Cross-posting my comment on SOLR-1902 ( https://issues.apache.org/jira/browse/SOLR-1902?focusedCommentId=12875725&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12875725 ) that the issue still seems to exist: I am still seeing this issue. It works if I downgrade Tika to 0.6, but neither the 0.8-SNAPSHOT included in the current Solr trunk nor a snapshot from the Tika trunk work for me. I'm running Java 1.6.0_20 on OS X 10.6.3. I posted about the issue to the solr-user mailing list: http://lucene.472066.n3.nabble.com/TikaEntityProcessor-not-working-td856965.html
          Hide
          Ken Krugler added a comment -

          From the most recent comments on SOLR-1902, it appears that Bad's issue (from the preceding comment) has been resolved, at least in Solr-trunk, 1.4.2 (or later), and 3.x.

          Show
          Ken Krugler added a comment - From the most recent comments on SOLR-1902 , it appears that Bad's issue (from the preceding comment) has been resolved, at least in Solr-trunk, 1.4.2 (or later), and 3.x.

            People

            • Assignee:
              Jukka Zitting
              Reporter:
              Jukka Zitting
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development