Bug 60754

Summary: When docx.close(),docx.write(os) will report a Rule M2.4 exception
Product: POI Reporter: Lyn <lianyining>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 3.14-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Lyn 2017-02-21 06:37:22 UTC
docx.close();

bla...bla...

docx.write(os);
Comment 1 Dominik Stadler 2017-02-21 13:56:08 UTC
So please stick to the doc and do not close the document until you are done writing it.

See bug 59678 and 59634 for the previous discussion on this topic.

*** This bug has been marked as a duplicate of bug 59634 ***