Hi,
attached is a simple docx file that was created by Word 2010 and it cannot be parsed by docx4j 2.5.0: it throws this exception:
org.docx4j.openpackaging.exceptions.Docx4JException: Failed to add parts from relationships
at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:346)
at org.docx4j.openpackaging.io.LoadFromZipNG.process(LoadFromZipNG.java:229)
at org.docx4j.openpackaging.io.LoadFromZipNG.get(LoadFromZipNG.java:182)
(...)
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Failed to add parts from relationships
at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:346)
at org.docx4j.openpackaging.io.LoadFromZipNG.getPart(LoadFromZipNG.java:436)
at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:344)
... 22 more
Caused by: java.lang.IllegalArgumentException: part
at org.docx4j.openpackaging.parts.relationships.RelationshipsPart.loadPart(RelationshipsPart.java:390)
at org.docx4j.openpackaging.io.LoadFromZipNG.getPart(LoadFromZipNG.java:420)
at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:344)
... 24 more
I have found the reason ...