From dev-return-22942-apmail-tika-dev-archive=tika.apache.org@tika.apache.org Thu Nov 3 14:17:00 2016 Return-Path: X-Original-To: apmail-tika-dev-archive@www.apache.org Delivered-To: apmail-tika-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0942C196E3 for ; Thu, 3 Nov 2016 14:17:00 +0000 (UTC) Received: (qmail 61777 invoked by uid 500); 3 Nov 2016 14:16:59 -0000 Delivered-To: apmail-tika-dev-archive@tika.apache.org Received: (qmail 61674 invoked by uid 500); 3 Nov 2016 14:16:59 -0000 Mailing-List: contact dev-help@tika.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tika.apache.org Delivered-To: mailing list dev@tika.apache.org Received: (qmail 61613 invoked by uid 99); 3 Nov 2016 14:16:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 14:16:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 95B252C1F56 for ; Thu, 3 Nov 2016 14:16:59 +0000 (UTC) Date: Thu, 3 Nov 2016 14:16:59 +0000 (UTC) From: "sbathrutheen (JIRA)" To: dev@tika.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TIKA-2143) POI deprecated method used in TIKA 1.13 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TIKA-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15632838#comment-15632838 ] sbathrutheen commented on TIKA-2143: ------------------------------------ Hi, Actually this issue is reported by one of our clients , there is no classpath set in their servers. Thanks > POI deprecated method used in TIKA 1.13 > ---------------------------------------- > > Key: TIKA-2143 > URL: https://issues.apache.org/jira/browse/TIKA-2143 > Project: Tika > Issue Type: Bug > Components: parser > Affects Versions: 1.9, 1.13 > Environment: Windows java application > Reporter: sbathrutheen > Priority: Trivial > Fix For: 1.13 > > > We see that TIKA throws a long list of errors when extraction ppt files. We tested with standalone tike application (1.13) we cannot reproduce the issue. > We took a look at POI source code and abserved the class "HSLFSlideShow" we could see the below deprecated method defined > * > /** > - * Get the lookup from slide numbers to their offsets inside > - * _ptrData, used when adding or moving slides. > - * > - * @deprecated since POI 3.11, not supported anymore > - */ > - @Deprecated > - public Hashtable getSlideOffsetDataLocationsLookup() { > - throw new UnsupportedOperationException("PersistPtrHolder.getSlideOffsetDataLocationsLookup() is not supported since 3.12-Beta1"); > - } > * > we may think Tika library still calling this deprecated method causing this run time Exception > Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@204c3b78 > at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:283) > at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281) > at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120) > at com.searchtechnologies.aspire.docprocessing.extracttext.ExtractTextStage.process(ExtractTextStage.java:140) > ... 14 more > Caused by: java.lang.UnsupportedOperationException > at java.util.AbstractMap$SimpleImmutableEntry.setValue(Unknown Source) > at org.apache.poi.hslf.HSLFSlideShow.read(HSLFSlideShow.java:293) > at org.apache.poi.hslf.HSLFSlideShow.buildRecords(HSLFSlideShow.java:273) > at org.apache.poi.hslf.HSLFSlideShow.(HSLFSlideShow.java:188) > at org.apache.tika.parser.microsoft.HSLFExtractor.parse(HSLFExtractor.java:61) > at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:149) > at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:117) > at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281) > ... 17 more -- This message was sent by Atlassian JIRA (v6.3.4#6332)