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

Setting throwOnZeroBytes to false in autoDetectParserConfig fails to start server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.7.0
    • None
    • tika-server
    • None
    • docker

    Description

      It says on this page that in > 2.7.0 you can configure this setting, but it doesn't appear to be working:

      https://cwiki.apache.org/confluence/display/TIKA/ModifyingContentWithHandlersAndMetadataFilters#ModifyingContentWithHandlersAndMetadataFilters-4.AutoDetectParserConfig

      By >2.7.0 does this mean that 2.7.0 does not work with this config? I'm using the docker image that is labelled 2.7.0.1-full and there appears to be nothing newer.

      I'm setting it like so in the XML:

      <?xml version="1.0" encoding="UTF-8"?>
      <properties>
        <autoDetectParserConfig>
          <params>
            <throwOnZeroBytes>false</throwOnZeroBytes>
          </params>
        </autoDetectParserConfig>
      </properties>

      but it's saying :

      INFO  [main] 21:40:13,139 org.apache.tika.server.core.TikaServerProcess Using custom config: /tika-config.xml
      ERROR [main] 21:40:13,205 org.apache.tika.server.core.TikaServerProcess Can't start:
      org.apache.tika.exception.TikaConfigException: Couldn't find setter 'setThrowOnZeroBytes' or adder 'addThrowOnZeroBytes' for throwOnZeroBytes of class: class org.apache.tika.parser.AutoDetectParserConfig

      Also, I am using the "2.7.0.1" version from docker hub, but this version doesn't appear to exist everywhere or follow proper Sem.Ver format, which confuses me.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adjenks adjenks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: