pjfanning commented on PR #982:
URL: https://github.com/apache/poi/pull/982#issuecomment-3675842686

   Exception with the attached docx looks like:
   
   ```
   org.apache.poi.ooxml.POIXMLException: Element 
chartSpace@http://schemas.microsoft.com/office/drawing/2014/chartex is not a 
valid chartSpace@http://schemas.openxmlformats.org/drawingml/2006/chart 
document or a valid substitution.
        at 
app/org.apache.poi.ooxml/org.apache.poi.ooxml.POIXMLFactory.createDocumentPart(POIXMLFactory.java:68)
        at 
app/org.apache.poi.ooxml/org.apache.poi.ooxml.POIXMLDocumentPart.read(POIXMLDocumentPart.java:671)
        at 
app/org.apache.poi.ooxml/org.apache.poi.ooxml.POIXMLDocument.load(POIXMLDocument.java:165)
        at 
app/org.apache.poi.ooxml/org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:168)
        at 
app/org.apache.poi.ooxml/org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:152)
        at 
app/org.apache.poi.ooxml/org.apache.poi.xwpf.usermodel.TestXWPFDocument.testChartExIgnored(TestXWPFDocument.java:524)
        at [email protected]/java.lang.reflect.Method.invoke(Method.java:566)
        at 
[email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at 
[email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at 
[email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at 
[email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at 
[email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
   Caused by: org.apache.xmlbeans.XmlException: Element 
chartSpace@http://schemas.microsoft.com/office/drawing/2014/chartex is not a 
valid chartSpace@http://schemas.openxmlformats.org/drawingml/2006/chart 
document or a valid substitution.
        at 
app/org.apache.xmlbeans/org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:229)
        at 
app/org.apache.xmlbeans/org.apache.xmlbeans.impl.store.Locale.lambda$parseToXmlObject$3(Locale.java:719)
        at 
app/org.apache.xmlbeans/org.apache.xmlbeans.impl.store.Locale.syncWrap(Locale.java:491)
        at 
app/org.apache.xmlbeans/org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:717)
        at 
app/org.apache.xmlbeans/org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:234)
        at 
app/org.apache.xmlbeans/org.apache.xmlbeans.impl.schema.AbstractDocumentFactory.parse(AbstractDocumentFactory.java:71)
        at 
app/org.apache.poi.ooxml/org.apache.poi.xddf.usermodel.chart.XDDFChart.<init>(XDDFChart.java:152)
        at 
app/org.apache.poi.ooxml/org.apache.poi.xwpf.usermodel.XWPFChart.<init>(XWPFChart.java:75)
        at 
app/org.apache.poi.ooxml/org.apache.poi.ooxml.POIXMLFactory.createDocumentPart(POIXMLFactory.java:61)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to