Sebastian Quiles created TIKA-3702:
--------------------------------------

             Summary: translate is not using the configured translator
                 Key: TIKA-3702
                 URL: https://issues.apache.org/jira/browse/TIKA-3702
             Project: Tika
          Issue Type: Bug
          Components: translation
    Affects Versions: 2.3.0
            Reporter: Sebastian Quiles


I have run Tika server with the following config xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<properties>
  <fetchers>
    <fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
      <params>
        <name>fsf</name>
        <basePath>/my/base/path1</basePath>
      </params>
    </fetcher>
  </fetchers>
  <server>
    <params>
      <enableUnsecureFeatures>true</enableUnsecureFeatures>
    </params>
  </server>
  <translator class="org.apache.tika.language.translate.Lingo24Translator"/>
</properties>

 

and then I make the following REST call:

PUT

[http://localhost:9998/translate/all/org.apache.tika.language.translate.Lingo24Translator/es]

(attaching a file in the body)

 

and I get a 500 error and the following lines in the Logfile

 

INFO  [qtp2124731287-16] 18:13:40,127 
org.apache.tika.server.core.resource.TranslateResource LanguageIdentifier: 
detected source lang: [en]
INFO  [qtp2124731287-16] 18:13:40,127 
org.apache.tika.server.core.resource.TranslateResource Using translator: 
[org.apache.tika.language.translate.Lingo24Translator]: src: [en]: dest: [es]
INFO  [qtp2124731287-16] 18:13:40,309 
org.apache.tika.language.translate.impl.RTGTranslator RTG base URL: 
http://localhost:6060
WARN  [qtp2124731287-16] 18:13:40,340 
org.apache.cxf.phase.PhaseInterceptorChain Interceptor for 
\{http://localhost:6060}WebClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.

 

and the full exception stack (basically a connection error on localhost:6060)

I don't know why is not using Lingo24 translator (maybe missconfigured, but not 
warning about that, and I can't find how to configure it through XML )

I don't know neither why is trying to use RTG on localhost:6060 , I have not 
this app installed or configured it in Tika

same problem using GoogleTranslator



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to