You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/02/14 22:12:21 UTC
[Bug 52836] Cannot create a new XSSFDrawing object
https://bz.apache.org/bugzilla/show_bug.cgi?id=52836
--- Comment #9 from Dominik Stadler <do...@gmx.at> ---
Created attachment 33553
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33553&action=edit
Potential patch for first error message
I tried to have a go at this via the attached patch. If I simply try to avoid
the error by forcefully removing the invalid part before creating the new one,
creating a new sheet works, however when I try to clone the sheet, I get a
different error:
org.apache.poi.POIXMLException: org.apache.xmlbeans.XmlException: Element
chartsheet@http://schemas.openxmlformats.org/spreadsheetml/2006/main is not a
valid worksheet@http://schemas.openxmlformats.org/spreadsheetml/2006/main
document or a valid substitution.
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:174)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.cloneSheet(XSSFWorkbook.java:582)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.cloneSheet(XSSFWorkbook.java:1)
at
org.apache.poi.xssf.usermodel.TestXSSFBugs.test52836(TestXSSFBugs.java:2977)
Caused by: org.apache.xmlbeans.XmlException: Element
chartsheet@http://schemas.openxmlformats.org/spreadsheetml/2006/main is not a
valid worksheet@http://schemas.openxmlformats.org/spreadsheetml/2006/main
document or a valid substitution.
at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:329)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1280)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1264)
at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.poi.POIXMLTypeLoader.parse(POIXMLTypeLoader.java:92)
at
org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown
Source)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:172)
... 26 more
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org