Error digesting Registry data org.xml.sax.SAXNotSupportedException

异常:org.xml.sax.SAXNotSupportedException: not supported setting property http://xml.org/sax/properties/lexical-handler

最近手头的项目需要切换成spring boot ,启动过程中出现  org.xml.sax.SAXNotSupportedException: not supported setting property http://xml.org/sax/properties/lexical-handler 异常,经搜索找到:http://apache-fop.1065347.n5.nabble.com/org-xml-sax-SAXNotSupportedException-thrown-by-FOP-td11447.html

The cause is an incompatibility of the GNU XML parser with Apache Xalan. 
If you can change the environment such that Apache Xerces is used as   
an XML parser instead, the problem should disappear. 
The Xerces JARs are shipped with FOP, but your Java VM bootstraps the   
GNU parser implementation, which lacks support for SAX features that   
Xalan requires (a LexicalHandler implementation). 


就是将 XML parser  切换成 Apache Xerces 即可,找到项目中可能存在XML parser 依赖,过滤即可。

所以直接将项目中的Dom4 依赖修改为 

<dependency>
    <groupId>org.dom4j</groupId>
    <artifactId>dom4j</artifactId>
    <version>2.0.0-RC1</version>
    <exclusions>
        <exclusion>
            <artifactId>pull-parser</artifactId>
            <groupId>pull-parser</groupId>
        </exclusion>
    </exclusions>
</dependency>
问题解决

  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值