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/06/07 17:18:11 UTC
[Bug 59671] New: Exception while updating XLSX file
https://bz.apache.org/bugzilla/show_bug.cgi?id=59671
Bug ID: 59671
Summary: Exception while updating XLSX file
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
Assignee: dev@poi.apache.org
Reporter: badbadri@yahoo.com
Created attachment 33923
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33923&action=edit
Simple xlsx file with a few columns
Exception in thread "main"
org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4
exception : this error should NEVER happen! Please raise a bug at
https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach a file that
triggers it, thanks!
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.getContentType(ContentTypeManager.java:343)
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.removeContentType(ContentTypeManager.java:256)
at org.apache.poi.openxml4j.opc.OPCPackage.removePart(OPCPackage.java:943)
at
org.apache.poi.openxml4j.opc.PackagePart.getOutputStream(PackagePart.java:522)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.commit(XSSFWorkbook.java:1678)
at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:341)
at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:206)
at com.geni.common.ExcelUpdater.updateXLSX(ExcelUpdater.java:75)
at UpdateXLSX.main(UpdateXLSX.java:16)
--
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
[Bug 59671] Exception while updating XLSX file
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59671
Badari <ba...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Badari <ba...@yahoo.com> ---
The exception is raised when the method is called more than once
// Temp.xlsx is output file. Input file is always "EDIStatsTemplate.xlsx"
ExcelUpdater excelUpdater = new ExcelUpdater("Temp.xlsx");
int txns = 44;
excelUpdater.updateXLSX(new Object[] { "X12", "856", "4010", "LG", txns });
txns = 54;
excelUpdater.updateXLSX(new Object[] { "X12", "856", "4010", "LG", txns });
--
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
[Bug 59671] Exception while updating XLSX file
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59671
Badari <ba...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Badari <ba...@yahoo.com> ---
Apologies. I closed the output file prematurely but tried to update. That
caused the exception.
--
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