I get the following exception when I try calling XWPFParagraph#setNumID: java.lang.NoClassDefFoundError: org/openxmlformats/schemas/wordprocessingml/x2006/main/CTNumPr at org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPPrBaseImpl.addNewNumPr(Unknown Source) at org.apache.poi.xwpf.usermodel.XWPFParagraph.setNumID(XWPFParagraph.java:273)
Fixed in r992574. To test-drive you will need to generate poi-ooxml-schemas.jar from trunk. Use the "ant jar" target to build all POI jars. Regards, Yegor