[Bug 61987] Updating excel file opended with OPCPackage throws: OpenXML4JRuntimeException: Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=61987 Dominik Stadlerchanged: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #3 from Dominik Stadler --- Closing as duplicate of bug 60102 as it seems the order of close/write is wrong here. *** This bug has been marked as a duplicate of bug 60102 *** -- 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
[Bug 61987] Updating excel file opended with OPCPackage throws: OpenXML4JRuntimeException: Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=61987 --- Comment #2 from Alain Fagot Bearez--- Take care about the order you are closing the resources: FileOutputStream outputStream = new FileOutputStream("JavaBooks.xlsx"); workbook.write(outputStream); outputStream.close(); workbook.close(); //inputStream.close(); pkg.close(); Otherwise you are trying to write into a package (document) that has been closed. This is a classical duplicate of https://bz.apache.org/bugzilla/show_bug.cgi?id=60102 -- 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
[Bug 61987] Updating excel file opended with OPCPackage throws: OpenXML4JRuntimeException: Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=61987 --- Comment #1 from raja--- Created attachment 35670 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35670=edit inputfile -- 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
[Bug 61987] Updating excel file opended with OPCPackage throws: OpenXML4JRuntimeException: Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=61987 rajachanged: What|Removed |Added Summary|Updating excel file opended |Updating excel file opended |OPCPackage throws: |with OPCPackage throws: |OpenXML4JRuntimeException: |OpenXML4JRuntimeException: |Rule M2.4 exception |Rule M2.4 exception OS||All -- 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