Hi,
I am using 2.6.0 version. I convert templates with custom xml data and content controls (also repeats) using the OpenDoPEHandler.preprocess(wordMLPackage)
BindingHandler.applyBindings(wordMLPackage.getMainDocumentPart()).
Recently I get a ConcurrentModificationException error sometime, not always. Following is the error:
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister$1.next(Lister.java:284)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:135)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:155)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:340)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:593)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:324)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:315)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:244)
at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:95)
at org.docx4j.XmlUtils.marshaltoString(XmlUtils.java:406)
at org.docx4j.XmlUtils.marshaltoString(XmlUtils.java:350)
at org.docx4j.model.datastorage.OpenDoPEHandler.preprocessRun(OpenDoPEHandler.java:383)
at org.docx4j.model.datastorage.OpenDoPEHandler.preprocess(OpenDoPEHandler.java:119)
How do I fix it and why it's not happening everytime I run the code?
Thanks.