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 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    OpenXML CTMarkupRange has no @XmlRootElement : docx4j Java forum

    docx4java.org | 7 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
      BindingHandler.applyBindings
      1. org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:530)
      2. org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:508)
      3. org.docx4j.model.datastorage.BindingHandler.applyBindings(BindingHandler.java:90)
      3 frames
    3. Unknown
      Test.main
      1. Test.main(Test.java:51)
      1 frame