weblogic接收报文解析报文问题?
今天应用在生产环境上接收报文并解析式报了一个错误,然后weblogic控制台就无法登陆了,但是后台应用的服务还在,还可以接收报文。应用在生产环境上运行了几年了都没出现过这样的错误,而且近期也没有修改过应用包括weblogic的任何配置,在接收相同的报文的内容时偶尔会出错,并不是每条报文都会出错。异常信息如下:
org.dom4j.DocumentException: SAX2 driver class weblogic.xml.jaxp.RegistryXMLReader does not implement XMLReader Nested exception: SAX2 driver class weblogic.xml.jaxp.RegistryXMLReader does not implement XMLReader
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
at com.xwj.outside.zzebank.comm.EbankXmlParse.<init>(EbankXmlParse.java:34)
at com.xwj.outside.zzebank.comm.EbankXmlParse.<init>(EbankXmlParse.java:43)
at com.xwj.outside.zzebank.dispose.CSbiseDispose.parse(CSbiseDispose.java:179)
at com.xwj.outside.zzebank.dispose.CSbiseDispose.dispose(CSbiseDispose.java:83)
at com.xwj.outside.zzebank.socket.CEbankDistribute.dispose(CEbankDistribute.java:123)
at com.xwj.outside.zzebank.socket.TraceClient.run(TAEbankServer.java:148)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
at java.lang.Thread.run(Thread.java:736)
Nested exception:
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory
at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:98)
at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
at org.dom4j.io.SAXReader.read(SAXReader.java:437)
at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
at com.xwj.outside.zzebank.comm.EbankXmlParse.<init>(EbankXmlParse.java:34)
at com.xwj.outside.zzebank.comm.EbankXmlParse.<init>(EbankXmlParse.java:43)
at com.xwj.outside.zzebank.dispose.CSbiseDispose.parse(CSbiseDispose.java:179)
at com.xwj.outside.zzebank.dispose.CSbiseDispose.dispose(CSbiseDispose.java:83)
at com.xwj.outside.zzebank.socket.CEbankDistribute.dispose(CEbankDistribute.java:123)
at com.xwj.outside.zzebank.socket.TraceClient.run(TAEbankServer.java:148)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
at java.lang.Thread.run(Thread.java:736)
有的小伙伴可能会指出是jar包冲突的问题,可是这个应用运行了几年了,而且生产环境没变动的情况下应该不是这种问题。weblogic.xml 中参数如下
<prefer-web-inf-classes>true</prefer-web-inf-classes>
求各位大佬给小弟指点。拜谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论