https://bz.apache.org/bugzilla/show_bug.cgi?id=61612
Bug ID: 61612 Summary: Caught org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeEx ception: Rule M2.4 exception Product: POI Version: 3.16-FINAL Hardware: PC Status: NEW Severity: normal Priority: P2 Component: XWPF Assignee: dev@poi.apache.org Reporter: amsea...@mail.ru Target Milestone: --- Tried to open docx file in that way: File wordFile = new File(wordFilePath); OPCPackage wordPackage = OPCPackage.open(wordFile, PackageAccess.READ_WRITE); XWPFDocument wordDocument = new XWPFDocument(wordPackage); Then I caught this exception: Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception : this error should NEVER happen! If you can provide the triggering file, then please raise a bug at https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach the file that triggers it, thanks! at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.getContentType(ContentTypeManager.java:340) at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.removeContentType(ContentTypeManager.java:253) at org.apache.poi.openxml4j.opc.OPCPackage.removePart(OPCPackage.java:1020) at org.apache.poi.openxml4j.opc.PackagePart.getOutputStream(PackagePart.java:519) at org.apache.poi.xwpf.usermodel.XWPFDocument.commit(XWPFDocument.java:764) at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:414) at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:242) -- 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