com.sun.istack.internal.SAXException2: unable to marshal type "org.docx4j.wml.CTMarkupRange" as an element because it is missing an @XmlRootElement annotation]

docx4java.org | 9 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

    OpenXML CTMarkupRange has no @XmlRootElement : docx4j Java forum

    docx4java.org | 9 months ago
    com.sun.istack.internal.SAXException2: unable to marshal type "org.docx4j.wml.CTMarkupRange" as an element because it is missing an @XmlRootElement annotation]

    Root Cause Analysis

    1. com.sun.istack.internal.SAXException2

      unable to marshal type "org.docx4j.wml.CTMarkupRange" as an element because it is missing an @XmlRootElement annotation]

      at org.docx4j.XmlUtils.marshaltoW3CDomDocument()
    2. docx4j
      HtmlExporterNG2.html
      1. org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:533)
      2. org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:511)
      3. org.docx4j.convert.out.html.HtmlExporterNG2.html(HtmlExporterNG2.java:211)
      3 frames