java.lang.UnsupportedOperationException:This parser does not support specification "null"

Posted 爷的眼睛闪亮

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java.lang.UnsupportedOperationException:This parser does not support specification "null" 相关的知识,希望对你有一定的参考价值。

java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"  
    at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)  
    at org.apache.commons.digester.Digester.getFactory(Digester.java:534)  
    at org.apache.commons.digester.Digester.getParser(Digester.java:786)  
    at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)  
    at org.apache.commons.digester.Digester.parse(Digester.java:1887)  
java.lang.ExceptionInInitializerError
    at org.jdom2.input.SAXBuilder.<init>(SAXBuilder.java:338)
    at org.jdom2.input.SAXBuilder.<init>(SAXBuilder.java:221)
原因:xerces 版本过低
升级下xerces 版本即可

<!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>








以上是关于java.lang.UnsupportedOperationException:This parser does not support specification "null" 的主要内容,如果未能解决你的问题,请参考以下文章