The error message is as follows:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.poi.xwpf.usermodel.XWPFHyperlinkRun.<init>(Lorg/openxmlformats/schemas/wordprocessingml/x2006/main/CTHyperlink;Lorg/openxmlformats/schemas/wordprocessingml/x2006/main/CTR;Lorg/apache/poi/xwpf/usermodel/XWPFParagraph;)V
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitRun(XWPFDocumentVisitor.java:651)at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitRuns(XWPFDocumentVisitor.java:600)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitParagraphBody(XWPFDocumentVisitor.java:427)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitParagraph(XWPFDocumentVisitor.java:318)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitBodyElements(XWPFDocumentVisitor.java:233)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.start(XWPFDocumentVisitor.java:186)
at org.apache.poi.xwpf.converter.xhtml.XHTMLConverter.convert(XHTMLConverter.java:68)
at org.apache.poi.xwpf.converter.xhtml.XHTMLConverter.doConvert(XHTMLConverter.java:58)
at org.apache.poi.xwpf.converter.xhtml.XHTMLConverter.doConvert(XHTMLConverter.java:38)
at org.apache.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:45)
at mxl.open.com.poi.WordToHtmlUtils.Word2007ToHtml(WordToHtmlUtils.java:169)
at mxl.open.com.poi.WordToHtmlUtils.main (WordToHtmlUtils.java:178)
When java poi word is converted to html, there is a link in the word, and then an error is reported when parsing. The package used is:
fr.opensagres.xdocreport.document-2.0.1.jar
ooxml-schemas-1.1.jar
org.apache.poi.xwpf.converter.core-1.0.0.jar
org.apache.poi.xwpf.converter.xhtml-1.0 .0.jar
poi-3.10.1.jar
poi-ooxml-3.10.1.jar
poi-ooxml-schemas-3.10.1.jar
poi-Scratchpad-3.9.jar
Final solution: just increase the version of org.apache.poi.xwpf.converter.core-1.0.0.jar and org.apache.poi.xwpf.converter.xhtml-1.0.0.jar to 1.0.6