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

Allow parser lookup from a custom class loader

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8
    • config
    • 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.

      Attachments

        Issue Links

          Activity

            jukkaz Jukka Zitting added a comment -

            Done in revision 940926.

            jukkaz Jukka Zitting added a comment - Done in revision 940926.
            bgreenlee 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

            bgreenlee 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

            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.

            kkrugler Kenneth William 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

              jukkaz Jukka Zitting
              jukkaz Jukka Zitting
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: