[
https://issues.apache.org/jira/browse/TIKA-3614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457014#comment-17457014
]
Vamsi Molli edited comment on TIKA-3614 at 12/15/21, 5:56 AM:
--------------------------------------------------------------
Seeing run time errors.
<detectors>
<detector class="org.apache.tika.detect.OverrideDetector"/>
<detector
class="org.apache.tika.detect.microsoft.POIFSContainerDetector"/>
<detector class="org.apache.tika.detect.zip.ZipContainerDetector"/>
<detector class="org.gagravarr.tika.OggDetector"/>
<detector class="org.apache.tika.mime.MimeTypes"/>
</detectors>
"Message": "Failed parsing Tika config.
Error:org.apache.tika.exception.TikaConfigException: Unable to find a detector
class: org.apache.tika.detect.zip.ZipContainerDetector",
was (Author: vamsi452):
Seeing run time errors.
<detectors>
<detector class="org.apache.tika.detect.OverrideDetector"/>
<detector
class="org.apache.tika.detect.microsoft.POIFSContainerDetector"/>
<detector class="org.apache.tika.detect.zip.ZipContainerDetector"/>
<detector class="org.gagravarr.tika.OggDetector"/>
<detector class="org.apache.tika.mime.MimeTypes"/>
</detectors>
{
"Message": "Failed to get natural metadata with tika (Metadata might not be
complete)",
"StackTrace": "org.apache.tika.exception.TikaConfigException: Unable to
find a detector class: org.apache.tika.detect.zip.ZipContainerDetector\n\tat
org.apache.tika.config.TikaConfig$XmlLoader.loadOne(TikaConfig.java:739)\n\tat
org.apache.tika.config.TikaConfig$XmlLoader.loadOverall(TikaConfig.java:610)\n\tat
org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:153)\n\tat
org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:139)\n\tat
org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:131)\n\tat
org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:99)\n\tat
org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:95)\n\tat
com.stormed.common.utils.TikaConfigFactory.getTikaConfig(TikaConfigFactory.java:18)\n\tat
com.stormed.processing.NaturalFile.parseMetadata(NaturalFile.java:87)\n\tat
com.stormed.processing.AbstractFileProduct.addNatural_Metadata(AbstractFileProduct.java:134)\n\tat
com.stormed.processing.ProcessingMain.processing(ProcessingMain.java:540)\n\tat
com.stormed.processing.ProcessingMain.run(ProcessingMain.java:112)\n\tat
com.stormed.processing.common.ProcessingBuilder.run(ProcessingBuilder.java:28)\n\tat
com.stormed.proxy.AppRunner.run(AppRunner.java:21)\n\tat
com.stormed.proxy.ProxyMain.runApp(ProxyMain.java:274)\n\tat
com.stormed.proxy.ProxyMain.lambda$main$0(ProxyMain.java:122)\n\tat
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
java.base/java.lang.Thread.run(Thread.java:834)\nCaused by:
java.lang.ClassNotFoundException: Service class
org.apache.tika.detect.zip.ZipContainerDetector is an interface\n\tat
org.apache.tika.config.ServiceLoader.getServiceClass(ServiceLoader.java:215)\n\tat
org.apache.tika.config.TikaConfig$XmlLoader.loadOne(TikaConfig.java:659)\n\t...
19 more\n",
"ProjectId": 1,
"DocumentId": 132,
"Timestamp": "2021/12/10 03:40:17.458",
"FragmentId": 153,
"LogLevel": "Error",
"Exception": "Unable to find a detector class:
org.apache.tika.detect.zip.ZipContainerDetector",
"WorkerIp": 127000001001,
"JobType": "Local Processing",
"ProjectNormName": "test213_1",
"UserId": 1,
"ProjectDbName": "test213_1",
"ThreadName": "pool-1-thread-2",
"JobId": 32
}
"Message": "Failed parsing Tika config.
Error:org.apache.tika.exception.TikaConfigException: Unable to find a detector
class: org.apache.tika.detect.zip.ZipContainerDetector",
> Trying to upgrade from 1.27 to 2.1.0
> ------------------------------------
>
> Key: TIKA-3614
> URL: https://issues.apache.org/jira/browse/TIKA-3614
> Project: Tika
> Issue Type: Bug
> Components: build
> Affects Versions: 2.1.0
> Reporter: Vamsi Molli
> Priority: Major
> Labels: gradle
>
> Currently, my application is using the Tika version of 1.27, in the Gradle
> file we wrote like below to download and use Tika components.
> api(group: 'org.apache.tika', name: 'tika-parsers', version: '1.27')
> { // Tika requires a version of jackson that conflicts with other
> dependencies. exclude group: "com.fasterxml.jackson.core" }
> but when trying to update to 2.1.0 with the below code. seeing some of the
> imports are missing.
> import org.apache.tika.config.TikaConfig;
> import org.apache.tika.detect.Detector;
> import org.apache.tika.exception.TikaException;
> import org.apache.tika.io.TikaInputStream;
> import org.apache.tika.metadata.HttpHeaders;
> import org.apache.tika.metadata.Metadata;
> import org.apache.tika.metadata.TikaMetadataKeys;
> import org.apache.tika.mime.MediaType;
> import org.apache.tika.mime.MimeType;
> import org.apache.tika.mime.MimeTypeException;
> import org.apache.tika.parser.AutoDetectParser;
> import org.apache.tika.parser.ParseContext;
> Tried with below, causing the above imports missing.
>
> api(group: 'org.apache.tika', name: 'tika-parsers-standard-package', version:
> '2.1.0')
> { // Tika requires a version of jackson that conflicts with other
> dependencies. exclude group: "com.fasterxml.jackson.core" }
> Please let me know what imports I need to change to fix above issues.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)