org.docx4j.openpackaging.exceptions.InvalidFormatException: Bad [Content_Types].xml

Stack Overflow | Oliver | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    docx4j works fine inside Eclipse but throws error anywhere else

    Stack Overflow | 6 months ago | Oliver
    org.docx4j.openpackaging.exceptions.InvalidFormatException: Bad [Content_Types].xml

    Root Cause Analysis

    1. org.docx4j.openpackaging.exceptions.InvalidFormatException

      Bad [Content_Types].xml

      at org.docx4j.openpackaging.contenttype.ContentTypeManager.parseContentTypesFile()
    2. docx4j
      Load3.get
      1. org.docx4j.openpackaging.contenttype.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:759)
      2. org.docx4j.openpackaging.io3.Load3.get(Load3.java:134)
      2 frames