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 2018/05/16 11:10:14 UTC
[Bug 62378] New: Write Data | Rule M2.4 exception occurred and
corrupts the file.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62378
Bug ID: 62378
Summary: Write Data | Rule M2.4 exception occurred and corrupts
the file.
Product: POI
Version: 3.14-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: nishantaggarwal2@gmail.com
Target Milestone: ---
Steps:
1. Load a file in the workbook and xssfsheet objects.
2. Access the file.
3. Try to write the data in the loaded file.
Issue:
Exception occurs and corrupts the file and make it 0 KB.
Exception:
.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:958)
at
org.apache.poi.openxml4j.opc.PackagePart.getOutputStream(PackagePart.java:522)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.commit(XSSFWorkbook.java:1687)
at
org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:464)
at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:211)
--
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 62378] Write Data | Rule M2.4 exception occurred and corrupts
the file.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62378
Mark Murphy <jm...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #3 from Mark Murphy <jm...@apache.org> ---
Need code. Can't help otherwise.
--
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 62378] Write Data | Rule M2.4 exception occurred and corrupts
the file.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62378
nishantaggarwal2@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #2 from nishantaggarwal2@gmail.com ---
I have loaded the workbook in the workbook object and sheet in xssf sheet.
Before writing the data I have read the data from it then write the data by
using same workbook and sheet object.
--
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 62378] Write Data | Rule M2.4 exception occurred and corrupts
the file.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62378
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Status|NEW |NEEDINFO
--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Can you post a minimal set of code which reproduces this? It seems to be
happening during writing and it might be related to what you actually do before
in your code.
--
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 62378] Write Data | Rule M2.4 exception occurred and corrupts
the file.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62378
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
We cannot do much without code or sample documents, so this is bug-report is
INVALID until we receive more information.
--
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