在java开发中,有些错误非常地奇怪,这些奇怪的错误中,有些是因为如下原因造成的:
1、系统使用的jar包版本冲突所导致的,比如有两个版本不一样但相同的包
2、系统使用的jar包版本过低(相对其他包而言)
今天就记录一个这样的错误,报错的信息为:
Failed to set setXIncludeAware(t
rue) for parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@9260ee:java.lang.UnsupportedOperationException: This parser
does not support specification “null” version “null”
java.lang.UnsupportedOperationException: This parser does not support specification “null” version “null”
后 来才知道是因为使用的xml解析用的jar包xercesImpl.jar版本过低引起来的,因为引入了一个新的其他的包,而这个包用到了更高版本的 xercesImpl.jar,所以当还在使用低版本的xercesImpl.jar时,就报错了,如同上面描述的错误一样。
以上 转载自:http://www.zihou.me/html/2010/03/04/1726.html
Failed to set setXIncludeAware(t
rue) for parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@9260ee:java.lang.UnsupportedOperationException: This parser
does not support specification “null” version “null”
java.lang.UnsupportedOperationException: This parser does not support specification “null” version “null”
java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
xercesImpl-2.6.2.jar
xml.xerces-2.9.1.jar冲突
org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element .
xml jar包冲突