[ 
https://issues.apache.org/jira/browse/TIKA-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16238352#comment-16238352
 ] 

Hudson commented on TIKA-2491:
------------------------------

SUCCESS: Integrated in Jenkins build Tika-trunk #1384 (See 
[https://builds.apache.org/job/Tika-trunk/1384/])
TIKA-2490 and TIKA-2491 -- turn off initializable problem stderr (tallison: 
[https://github.com/apache/tika/commit/88a5e5179f4104c8e4f8e33a58753efb06fc3139])
* (edit) tika-core/src/main/java/org/apache/tika/config/TikaConfig.java
* (edit) tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java
* (edit) tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
* (add) tika-app/src/test/resources/test-data/TIKA-2389-ignore-init-problems.xml


> Cannot use TikaConfig
> ---------------------
>
>                 Key: TIKA-2491
>                 URL: https://issues.apache.org/jira/browse/TIKA-2491
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.16
>            Reporter: Markus Jelsma
>             Fix For: 1.17
>
>         Attachments: tika-config.xml
>
>
> I need to use a custom tika-config.xml in Nutch, which has support for it but 
> i can't get it to work. 
> This is how Nutch gets the parser:
> Parser parser = tikaConfig.getParser(MediaType.parse(mimeType));
> When no custom config is specified config is:
> new TikaConfig(this.getClass().getClassLoader());
> When i specify a custom config, it is:
> tikaConfig = new TikaConfig(conf.getResource(customConfFile));
> getParser always returns null with a custom config file. There are no errors 
> or exceptions. The config is fine, it fixed the encoding problem in a parser 
> outside of Nutch (thanks again Timothy) but i need to get it to work in Nutch 
> too.
> Our external project does:
> AutoDetectParser parser = new AutoDetectParser(tikaConfig); parser.parse(..);
> and it just works! If i do this in Nutch, however, nothing is passed through 
> the content handlers, the parser result is completely empty?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to