And to confirm, you can replicate this error with the straight tika-app commandline (e.g. no other dependencies on your path)? From the two referenced tickets, it looked like there may be some class loading issues...
java -jar tika-app.jar <triggering_file> On Wed, Jul 31, 2019 at 10:25 AM aravinth thangasami <[email protected]> wrote: > > Sorry, I couldn't share the customer document with you. I'll try to check > with our dataset if possible and let you know. > > > > On Wed, Jul 31, 2019 at 6:09 PM Tim Allison <[email protected]> wrote: >> >> Sorry, I couldn't find that stacktrace in our regression corpora. >> >> I did find: >> https://issues.apache.org/jira/browse/STANBOL-810 >> and >> https://issues.apache.org/jira/browse/TIKA-2789 >> >> Do either of those help? Are you able to share the triggering document? >> >> On Tue, Jul 30, 2019 at 4:28 PM Tim Allison <[email protected]> wrote: >> > >> > Will see if I can find any similar files in our regression set. You >> > might try using the SAX docx parser for now on those files; see, e.g.: >> > https://cwiki.apache.org/confluence/display/TIKA/MSOfficeParsers >> > >> > On Tue, Jul 30, 2019 at 9:48 AM aravinth thangasami >> > <[email protected]> wrote: >> > > >> > > We are using Tika 1.20. We are facing the following issue with some old >> > > documents. >> > > We are using Autodetectparser to parse files. Please help us to solve >> > > this problem. >> > > >> > > Thank you >> > > Aravinth. >> > > >> > > >> > >> java.lang.NoClassDefFoundError: Could not initialize class >> > >> org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument >> > >> at >> > >> org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument$Factory.parse(Unknown >> > >> Source) at >> > >> org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:177) >> > >> at org.apache.poi.ooxml.POIXMLDocument.load(POIXMLDocument.java:184) >> > >> at >> > >> org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:137) >> > >> at >> > >> org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:60) >> > >> at >> > >> org.apache.poi.ooxml.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:224) >> > >> at >> > >> org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:116) >> > >> at >> > >> org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:110) >> > >> at >> > >> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) >> > >> at >> > >> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) >> > >> at >> > >> org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)
