gpt4 book ai didi

grails - Grails XOM链接错误-SAXParseException

转载 作者:行者123 更新时间:2023-12-02 14:28:40 25 4
gpt4 key购买 nike

可能相关: Grails - attempting to include HTPPBuilder - Linkage error

我正在尝试将XOM包含在我的grails项目中。我如何知道需要排除哪个依赖库?我在这里迷路了。

dependencies {
build('xom:xom:1.1') {
excludes "xml-apis"
}
}

错误:
java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for
a different type with name "org/xml/sax/SAXParseException"
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:33)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:20)
at grails.util.PluginBuildSettings.getPluginInfos(PluginBuildSettings.groovy:124)
at grails.util.PluginBuildSettings.getPluginInfos(PluginBuildSettings.groovy)
at grails.util.PluginBuildSettings$getPluginInfos.callCurrent(Unknown Source)
at grails.util.PluginBuildSettings.getPluginInfo(PluginBuildSettings.groovy:160)
at grails.util.PluginBuildSettings$getPluginInfo.callCurrent(Unknown Source)
at grails.util.PluginBuildSettings.getPluginInfoForSource(PluginBuildSettings.groovy:195)
at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:303)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:820)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:513)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:489)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:466)
at _GrailsEvents_groovy.run(_GrailsEvents_groovy:54)
at _GrailsEvents_groovy$run.call(Unknown Source)
at _GrailsArgParsing_groovy$run.call(Unknown Source)
at _GrailsArgParsing_groovy.run(_GrailsArgParsing_groovy:29)
at _GrailsArgParsing_groovy$run.call(Unknown Source)
at _GrailsInit_groovy$run.call(Unknown Source)
at _GrailsInit_groovy.run(_GrailsInit_groovy:38)
at _GrailsInit_groovy$run.call(Unknown Source)
at Help_.run(Help_.groovy:27)
at Help_$run.call(Unknown Source)
at gant.Gant.processTargets(Gant.groovy:494)
at gant.Gant.processTargets(Gant.groovy:480)

最佳答案

这个问题没有答案。只是不要在Grails中使用XOM。 XmlSlurper和GPath是可比较的。

关于grails - Grails XOM链接错误-SAXParseException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2770819/

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