I'm working on migrating our application from Docx4j 2.8.1 to 3.0.1 (figured best to not jump ahead to 3.2.0).
The application mostly consists of a traversal of a docx document (replacing/adding various elements along the way), binding content controls to custom XML parts using BindingHandler and removing SDT using the RemovalHandler. This is all stable using 2.8.1.
Using 3.0.1 though, at the applyBindings stage, the process fails with a java.util.EmptyStackException.
As I understand it, EmptyStackException means that a tag which should have been closed was not. I assume the culprit is the docx. However I'm at loss as to why this works with 2.8.1 and not with 3.0.1 and as to which tag is really the issue.
Any help would be much appreciated.
(Docx & exception are attached.)