Seva Alekseyev created TIKA-2132: ------------------------------------ Summary: NullPointerException on a valid Excel file Key: TIKA-2132 URL: https://issues.apache.org/jira/browse/TIKA-2132 Project: Tika Issue Type: Bug Components: parser Environment: Windows 7 x64, JVM 1.8.0_101 Reporter: Seva Alekseyev Attachments: 2a-Executive_Summary_50_Work.xlsm
The attached XLSM file, which opens fine in Excel, causes the following error in the Tika parser: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@a5bd950 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:282) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120) at gov.nih.niaid.fscanner.Extract.ExtractContents(Extract.java:62) at gov.nih.niaid.temp.Main.main(Main.java:60) Caused by: java.lang.NullPointerException at org.apache.poi.xssf.eventusermodel.XSSFReader$SheetIterator.next(XSSFReader.java:254) at org.apache.tika.parser.microsoft.ooxml.XSSFExcelExtractorDecorator.buildXHTML(XSSFExcelExtractorDecorator.java:124) at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.getXHTML(AbstractOOXMLExtractor.java:109) at org.apache.tika.parser.microsoft.ooxml.XSSFExcelExtractorDecorator.getXHTML(XSSFExcelExtractorDecorator.java:97) at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:112) at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) -- This message was sent by Atlassian JIRA (v6.3.4#6332)