最近項目需求:報表導出爲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.