Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a document(.doc) contains a Visio graphic, the extraction fails #40

Open
nilcodes opened this issue Dec 13, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@nilcodes
Copy link

Exception in thread "main": java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at org.apache.poi.xdgf.usermodel.XmlVisioDocument.(XmlVisioDocument.java:68)
at org.apache.poi.xdgf.extractor.XDGFVisioExtractor.(XDGFVisioExtractor.java:40)
at org.apache.poi.ooxml.extractor.POIXMLExtractorFactory.create(POIXMLExtractorFactory.java:221)
at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:206)
at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:118)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:203)
at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:71)
at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:109)
at org.apache.tika.extractor.EmbeddedDocumentUtil.parseEmbedded(EmbeddedDocumentUtil.java:240)
at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedResource(AbstractPOIFSExtractor.java:143)
at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc(AbstractPOIFSExtractor.java:191)
at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc(AbstractPOIFSExtractor.java:156)
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:227)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:230)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:183)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:203)
at ai.yobix.TikaNativeMain.parseToStringWithConfig(TikaNativeMain.java:180)
at ai.yobix.TikaNativeMain.parseBytesToString(TikaNativeMain.java:148)
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled schema: Could not locate compiled schema resource org/apache/poi/schemas/ooxml/system/ooxml/visiodocumentd431doctype.xsb (org.apache.poi.schemas.ooxml.system.ooxml.visiodocumentd431doctype) - code 0
at org.apache.xmlbeans.impl.schema.XsbReader.(XsbReader.java:63)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.resolveHandle(SchemaTypeSystemImpl.java:935)
at org.apache.xmlbeans.impl.schema.ElementFactory.(ElementFactory.java:29)
at org.apache.xmlbeans.impl.schema.AbstractDocumentFactory.(AbstractDocumentFactory.java:33)
at org.apache.xmlbeans.impl.schema.DocumentFactory.(DocumentFactory.java:23)
at com.microsoft.schemas.office.visio.x2012.main.VisioDocumentDocument1.(VisioDocumentDocument1.java:23)
... 22 more

Exception in thread "main": java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError: Could not initialize class com.microsoft.schemas.office.visio.x2012.main.VisioDocumentDocument1
at org.apache.poi.xdgf.usermodel.XmlVisioDocument.(XmlVisioDocument.java:68)
at org.apache.poi.xdgf.extractor.XDGFVisioExtractor.(XDGFVisioExtractor.java:40)
at org.apache.poi.ooxml.extractor.POIXMLExtractorFactory.create(POIXMLExtractorFactory.java:221)
at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:206)
at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:118)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:203)
at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:71)
at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:109)
at org.apache.tika.extractor.EmbeddedDocumentUtil.parseEmbedded(EmbeddedDocumentUtil.java:240)
at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedResource(AbstractPOIFSExtractor.java:143)
at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc(AbstractPOIFSExtractor.java:191)
at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc(AbstractPOIFSExtractor.java:156)
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:227)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:230)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:183)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:203)
at ai.yobix.TikaNativeMain.parseToStringWithConfig(TikaNativeMain.java:180)
at ai.yobix.TikaNativeMain.parseBytesToString(TikaNativeMain.java:148)

@nmammeri
Copy link
Contributor

Thanks for reporting this issue. Is it possible to provide the file that caused this. if not we'll find a way to replicate this.

@nmammeri nmammeri added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants