Summary: | SXSSFWorkbook.write() fails when the template is based on PackageAccess.READ OPCPackage | ||
---|---|---|---|
Product: | POI | Reporter: | Yavor <javornik.lists> |
Component: | SXSSF | Assignee: | POI Developers List <dev> |
Status: | NEW --- | ||
Severity: | normal | CC: | noemi.szemenyei |
Priority: | P2 | ||
Version: | 3.14-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Yavor
2016-08-16 21:52:54 UTC
Can you try with a recent nightly build / build from svn / build from git / wait a few more days and try with POI 3.15 beta 3 when out? Only we've fixed some bugs around this sort of thing since 3.14 final, so it may already be solved I just tried with the nightly build poi-bin-3.15-beta4-20160815.tar.gz - it fails too: Exception in thread "main" org.apache.poi.openxml4j.exceptions.InvalidOperationException: Operation not allowed, document open in read only mode! at org.apache.poi.openxml4j.opc.OPCPackage.throwExceptionIfReadOnly(OPCPackage.java:585) at org.apache.poi.openxml4j.opc.OPCPackage.removePart(OPCPackage.java:1008) at org.apache.poi.openxml4j.opc.PackagePart.getOutputStream(PackagePart.java:521) at org.apache.poi.xssf.usermodel.XSSFWorkbook.commit(XSSFWorkbook.java:1765) at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:486) at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:236) at org.apache.poi.xssf.streaming.SXSSFWorkbook.write(SXSSFWorkbook.java:941) |