poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branden Visser <mrvis...@gmail.com>
Subject ArrayStoreException when running getShapes on slide of XSLFSheet
Date Thu, 27 Jul 2017 16:21:25 GMT
Hi all,

We process quite a few files out in the wild. Currently, this is by
far the most common error we see when we handle office documents (Word
+ PowerPoint):

        at java.lang.System.arraycopy(Native Method)
        at org.apache.xmlbeans.impl.values.XmlObjectBase._typedArray(XmlObjectBase.java:409)
        at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:457)
        at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:415)
        at org.apache.poi.xslf.usermodel.XSLFDrawing.<init>(XSLFDrawing.java:44)
        at org.apache.poi.xslf.usermodel.XSLFSheet.initDrawingAndShapes(XSLFSheet.java:170)
        at org.apache.poi.xslf.usermodel.XSLFSheet.getShapes(XSLFSheet.java:157)

Unfortunately, I don't have any sample documents at this time that
exhibit the issue to send over as most of it is client data. Looks
like it's coming deep from within XMLBeans.

The System.arraycopy is occurring on an XMLObject[] that is mixed with
2 schema types of elements:

 * T=CT_NonVisualDrawingProps@http://schemas.openxmlformats.org/drawingml/2006/main
 * N=

Whereas it was expecting all NonVisualDrawingProps elements. So,
likely an unexpected collection of items, in the crazy world of XML
files that is office documents.

Has anyone seen this before? Should POI be defending against this case
any better?


To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message