Hi!
I have try to use the latest release of docx4j (2.8.0)
I want to compare 2 documents to see the difference.
I have try to run an example for document comparison and while running several tests I found docx4j "crashes" while comparing of document. (some docs are compared ok but some of them produce an errors)
The documents itself is rather simple, there are some text, one table and that's it.
The stack trace of error:
java.lang.IllegalArgumentException: Cannot write attribute: too late!
at com.topologi.diffx.xml.NSAwareXMLWriter.attribute(NSAwareXMLWriter.java:484)
at com.topologi.diffx.format.SmartXMLFormatter.delete(SmartXMLFormatter.java:282)
at com.topologi.diffx.algorithm.DiffXFitopsy.process(DiffXFitopsy.java:272)
at com.topologi.diffx.Main.diff(Main.java:323)
at com.topologi.diffx.Docx4jDriver.diff(Docx4jDriver.java:327)
at org.docx4j.diff.Differencer.diffWorker(Differencer.java:320)
at org.docx4j.diff.Differencer.diff(Differencer.java:298)
at CompareDocuments.main(CompareDocuments.java:74)
java.lang.NullPointerException
at org.docx4j.diff.Differencer.diffWorker(Differencer.java:377)
at org.docx4j.diff.Differencer.diff(Differencer.java:298)
at CompareDocuments.main(CompareDocuments.java:74)
Can anybode help to reolve of this issue?
If it's necessery I can send the sample docx files I have used, please let me know the email.
Thanks a lot in advance!