gpt4 book ai didi

java - POI 失败 java.lang.LinkageError : loader constraint violation in interface itable initialization

转载 作者:数据小太阳 更新时间:2023-10-29 02:30:35 25 4
gpt4 key购买 nike

兴趣点失败

java.lang.LinkageError: loader constraint violation in interface itable initialization:when resolving method "org.apache.xerces.parsers.AbstractSAXParser.getEntityResolver()Lorg/xml/sax/EntityResolver;" the class loader (instance of com/newatlanta/servletexec/ApplClassLoader) of the current class, org/apache/xerces/parsers/AbstractSAXParser, and the class loader (instance of <bootloader>) for interface org/xml/sax/XMLReader have different Class objects for the type org/xml/sax/EntityResolver used in the signature
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.xml.sax.helpers.NewInstance.newInstance(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
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:435)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at org.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:396)
at org.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:120)
at org.openxml4j.opc.internal.ZipContentTypeManager.<init>(ZipContentTypeManager.java:63)
at org.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:147)
at org.openxml4j.opc.Package.getParts(Package.java:598)
at org.openxml4j.opc.Package.open(Package.java:227)

我在 ServletExec 上使用 XMLBean 时遇到了这个问题。我该如何解决?

最佳答案

从应用程序的类路径中删除 xercesImpl-jar 并重新部署它。如果由于删除特定的 jar 而引发任何其他问题,请尝试这样做。然后不要删除 jar。只需提取 jar 并从 中删除 org.apache.xerces.parsers.AbstractSAXParser 类文件xercesImpl-jar 获取冲突,将剩余的类文件转换为jar并加载到类路径中。这将帮助您解决链接错误。

关于java - POI 失败 java.lang.LinkageError : loader constraint violation in interface itable initialization,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20210964/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com