Home > Back-end >  Poi converts word2007 such errors in HTML, how to solve
Poi converts word2007 such errors in HTML, how to solve

Time:10-26

The Exception in the thread "main" Java. Lang. NoSuchMethodError: org.. Apache poi. POIXMLDocumentPart. GetPackageRelationship ()/apache/poi/Lorg openxml4j/opc/PackageRelationship;
The at org, apache poi. XWPF. The converter. The core. Styles. XWPFStylesDocument. GetThemeDocuments (XWPFStylesDocument. Java: 1235)
At org, apache poi. XWPF. The converter. The core. Styles. Run. RunFontFamilyValueProvider. GetFontFamily (RunFontFamilyValueProvider. Java: 81)
At org, apache poi. XWPF. The converter. The core. Styles. Run. RunFontFamilyValueProvider. GetValue (49) RunFontFamilyValueProvider. Java:
The at org, apache poi. XWPF. The converter. The core. Styles. XWPFStylesDocument. GetFontFamilyAscii (XWPFStylesDocument. Java: 444)
At org, apache poi. XWPF. The converter. The XHTML. Internal. Styles. CSSStylesDocument. CreateCSSStyle (CSSStylesDocument. Java: 260)
At org, apache poi. XWPF. The converter. The XHTML. Internal. Styles. CSSStylesDocument. VisitStyle (CSSStylesDocument. Java: 240)
At org, apache poi. XWPF. The converter. The XHTML. Internal. Styles. CSSStylesDocument. VisitStyle (CSSStylesDocument. Java: 127)
The at org, apache poi. XWPF. Converter. Core. Styles. XWPFStylesDocument. The initialize (XWPFStylesDocument. Java: 232)
At org, apache poi. XWPF. The converter. The XHTML. Internal. Styles. CSSStylesDocument. The initialize (CSSStylesDocument. Java: 116)
The at org, apache poi. XWPF. Converter. XHTML. Internal. Styles. CSSStylesDocument. & lt; init> (CSSStylesDocument. Java: 103)
The at org, apache poi. XWPF. Converter. XHTML. Internal. XHTMLMapper. CreateStylesDocument (XHTMLMapper. Java: 131)
The at org, apache poi. XWPF. The converter. The core. XWPFDocumentVisitor. & lt; init> (XWPFDocumentVisitor. Java: 153)
The at org, apache poi. XWPF. The converter. The XHTML. Internal. XHTMLMapper. & lt; init> (XHTMLMapper. Java: 121)
The at org, apache poi. XWPF. Converter. XHTML. XHTMLConverter. Convert (XHTMLConverter. Java: 67)
The at org, apache poi. XWPF. Converter. XHTML. XHTMLConverter. DoConvert (58) XHTMLConverter. Java:
The at org, apache poi. XWPF. Converter. XHTML. XHTMLConverter. DoConvert (XHTMLConverter. Java: 38)
The at org, apache poi. XWPF. The converter. The core. AbstractXWPFConverter. Convert (AbstractXWPFConverter. Java: 45)
At com. Gzz100. OfficeUtil. Word2007ToHtml. CanExtractImage (46) Word2007ToHtml. Java:
At com. Gzz100. OfficeUtil. Word2007ToHtml. Main (55) Word2007ToHtml. Java:

CodePudding user response:

Whether the import poi package? What version of the? If already import, look at your poi bag for this method

CodePudding user response:

I import the jar package, then online said to org. Apache poi. XWPF. The converter. The core - 1.0.4. Jar,. Org. Apache poi. XWPF. The converter. The XHTML - 1.0.4. Jar, poi version 3.16, then the test will be an error in the main method, the code is online, but you can't run complains

CodePudding user response:

May refer to: http://blog.csdn.net/myid/article/details/7222256

CodePudding user response:

I find org, apache poi. XWPF. The converter. The core - 1.0.4. Jar relies on the poi - ooxml - 3.9. Jar, project also import a poi - ooxml - 3.16 the jar in the apache poi website did not see poi - version 3.9

CodePudding user response:

Find version should be poi jars conflict, the version in low compatibility, but just can't convert ppt07 below into the HTML and ppt07 converted into HTML,

CodePudding user response:


Fr. Opensagres. Xdocreport
Fr. Opensagres. Poi. XWPF. Converter. Xhtml
2.0.1 & lt;/version>


https://github.com/opensagres/xdocreport/issues/208

CodePudding user response:

Version is too high, incompatible problems, version back to 3.10 or 3.17, I encountered this problem

CodePudding user response:

refer to the 7 floor response:
version is too high, which appear incompatible problems, version back to 3.10 or 3.17, I encountered this problem

Back to the 3.10 final version, exported to form and pictures, text boxes are empty, you have met?
  • Related