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: nishantaggarw...@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-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to