You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by GitBox <gi...@apache.org> on 2020/08/24 12:51:21 UTC

[GitHub] [tika] PeterAlfredLee opened a new pull request #343: Fix infinite loop in tika-parser-nlp-module

PeterAlfredLee opened a new pull request #343:
URL: https://github.com/apache/tika/pull/343


   CTAKESParser should not load via the parser service loader because it will cause an infinite loop.
   
   If `org.apache.tika.parser.ctakes.CTAKESParser` in file `org.apache.tika.parser.Parser`:
   
   1. `org.apache.tika.config.ServiceLoader#loadStaticServiceProviders(Class<T>)` will create a new instance for `org.apache.tika.parser.ctakes.CTAKESParser`
   
   2. `org.apache.tika.parser.ctakes.CTAKESParser#CTAKESParser()` will create a new instance for `org.apache.tika.config.TikaConfig` and then will call `org.apache.tika.config.ServiceLoader#loadStaticServiceProviders(Class<T> )` to load another `org.apache.tika.parser.ctakes.CTAKESParser`.
   
   It's a infinite loop, Should remove CTAKESParser from file org.apache.tika.parser.Parser.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tika] asfgit merged pull request #343: Fix infinite loop in tika-parser-nlp-module

Posted by GitBox <gi...@apache.org>.
asfgit merged pull request #343:
URL: https://github.com/apache/tika/pull/343


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org