org.w3c.dom.DOMException: NAMESPACE_ERR

最近项目需求:报表导出为pdf文件,用的是itext,具体ITextRenderer的方法setDocumentFromString出现以下错误,找了好半天xalan-2.6.0.jar包的问题,去除或者升级至xalan-2.7.1.jar即可。


Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

你可能感兴趣的:(java)