Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 M3
    • Fix Version/s: 7.0.0 M3
    • Component/s: DM
    • Labels:
      None

      Description

      After asm was updated to 5.0.1, Tika was failing on certain files.

      Steps:
      1. Add any JAR file to Document Library.
      2. Observe.

      java.lang.IncompatibleClassChangeError: org/apache/tika/parser/asm/XHTMLClassVisitor
      	at org.apache.tika.parser.asm.ClassParser.parse(ClassParser.java:51)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72)
      	at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:102)
      	at org.apache.tika.parser.pkg.PackageParser.parseEntry(PackageParser.java:169)
      	at org.apache.tika.parser.pkg.PackageParser.parse(PackageParser.java:135)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      	at org.apache.tika.Tika.parseToString(Tika.java:380)
      	at org.apache.tika.Tika.parseToString(Tika.java:455)
      	at com.liferay.portal.util.FileImpl.extractText(FileImpl.java:382)
      	at com.liferay.portal.kernel.util.FileUtil.extractText(FileUtil.java:207)
      	at com.liferay.portal.kernel.search.DocumentImpl.addFile(DocumentImpl.java:176)
      	at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doGetDocument(DLFileEntryIndexer.java:374)
      	at com.liferay.portal.kernel.search.BaseIndexer.getDocument(BaseIndexer.java:146)
      	at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doReindex(DLFileEntryIndexer.java:501)
      

      ant test-class -Dtest.class=FileImplExtractTest

      fails on testPptx after upgrading to Tika 1.6. I have patched the jar to include the attachment.

      See: https://issues.apache.org/jira/browse/TIKA-1413

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shinn.lok Shinn Lok
                Reporter:
                shinn.lok Shinn Lok
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 13 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 M3