Hi All,
A method that worked up until Jira 9.9 no longer works. The error occurs from Jira 9.10 onwards.
The method is as follows:
public String fromHtmlToWiki(String txtHtml) {
DefaultWysiwygConverter converter = new DefaultWysiwygConverter();
return converter.convertXHtmlToWikiMarkup(txtHtml);
}This method throws a NoClassDefFoundError on the nekohtml library:
java.lang.NoClassDefFoundError: org/cyberneko/html/parsers/DOMFragmentParser
at com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter.convertXHtmlToWikiMarkup(DefaultWysiwygConverter.java:346)
going to see the jira folders atlassian-jira/WEB-INF/lib in versions prior to 9.10 there were both jars:
- atlassian-renderer-9.0.1.jar
- nekohtml-1.9.19.jar
while from jira 9.10 the nekohtml jar no longer exists in lib folder but exists in atlassian-bundeld-plugins folder.
I think this causes the above error.
How to solve it? Thank you!