常规网络服务

2024-03-16

我尝试过使用http://groovy.codehaus.org/GroovyWS http://groovy.codehaus.org/GroovyWS

在我的 BuildConfig.groovy 中,我添加了:compile 'org.codehaus.groovy.modules:groovyws:0.5.2'

然后我转到“刷新依赖项”,下载了一堆东西后,我最终得到:

Error executing script Compile: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/NodeList used in the signature
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/NodeList used in the signature
    at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
    at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
    at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
    at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
    at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
    at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
    at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
    at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
    at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
    at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
    at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
    at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
    at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
    at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
    at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
    at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
    at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
    at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
    at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
    at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:769)
    at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
    at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:769)
    at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
    at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
    at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
    at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
    at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
    at org.apache.ivy.core.resolve.ResolveEngine$resolve.call(Unknown Source)
    at grails.util.BuildSettings$_getDefaultCompileDependencies_closure9.doCall(BuildSettings.groovy:293)
    at grails.util.BuildSettings$_getDefaultCompileDependencies_closure9.doCall(BuildSettings.groovy)
    at grails.util.BuildSettings.getDefaultCompileDependencies(BuildSettings.groovy:293)
    at grails.util.BuildSettings.getCompileDependencies(BuildSettings.groovy:278)
    at _GrailsClasspath_groovy$_run_closure8.doCall(_GrailsClasspath_groovy:130)
    at _GrailsClasspath_groovy$_run_closure8.doCall(_GrailsClasspath_groovy)
    at _GrailsClasspath_groovy.setClasspath(_GrailsClasspath_groovy:190)
    at _GrailsClasspath_groovy$_run_closure1.doCall(_GrailsClasspath_groovy:39)
    at _GrailsEvents_groovy.run(_GrailsEvents_groovy:50)
    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:37)
    at _GrailsInit_groovy$run.call(Unknown Source)
    at _GrailsCompile_groovy$run.call(Unknown Source)
    at _GrailsCompile_groovy.run(_GrailsCompile_groovy:28)
    at _GrailsCompile_groovy$run.call(Unknown Source)
    at Compile.run(Compile.groovy:25)
    at Compile$run.call(Unknown Source)
    at gant.Gant.prepareTargets(Gant.groovy:606)
Error executing script Compile: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/NodeList used in the signature

任何人都可以帮助我解决发生了什么事吗?为什么会出现此异常以及如何修复它?

Thanks

--MB


看来你正在进入一种依赖疯狂状态。查看您的错误消息LinkageError http://download.oracle.com/javase/1.4.2/docs/api/java/lang/LinkageError.html(我添加了一些强调):

执行脚本编译时出错:接口 itable 初始化中加载器约束冲突:解析方法时“org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;“ 类加载器(实例org/codehaus/groovy/grails/cli/support/GrailsRootLoader)当前班级的,org/apache/xerces/dom/NodeImpl,以及接口的类加载器( 的实例)org/w3c/dom/Node该类型有不同的 Class 对象org/w3c/dom/NodeList在签名中使用

为了让事情更清楚一些(如果情况还不是这样),您的两个依赖项之间存在冲突。当您似乎使用 Grails 时,我倾向于告诉您您使用的 GroovyWS 版本与当前安装的 Grails 不兼容。您是否尝试过使用 Grails 命令行安装 groovyWS?我的意思是,打电话install-dependency http://grails.org/doc/latest/ref/Command%20Line/install-dependency.html?如果没有,我建议您通过调用来替换您的依赖项

install-dependency org.codehaus.groovy.modules:groovyws

这样,Grails 将使用它自己的兼容性机制。

如果这还不够,请尝试查看那个指南 http://grails.org/doc/latest/guide/single.html#3.7.1%20Configurations%20and%20Dependencies如何排除有问题的依赖项。

EDIT您还可以遵循以下人士的一些建议这个博客条目 http://little418.com/2009/05/grails-throws-javalanglinkageerror-on-startup.html.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

常规网络服务 的相关文章

随机推荐

  • 如何使用 VB.NET 将 JSON POST 到特定 url?

    我是 VB NET 中 Web 服务的新手 我正在制作一个可以与 JIRA 对话的桌面应用程序 http www atlassian com software jira http www atlassian com software jir
  • Angular2 ng-bootstrap 模态组件

    我有一个模态成分 https ng bootstrap github io components modal创建于ng 引导程序 https ng bootstrap github io就像下面 只是一个身体
  • 是否可以编写一个接受不同抽象的泛型参数的方法?

    As a 这个问题的后续 https stackoverflow com q 9890866 403455 是否可以编写一个添加Dog到合适的房间 在此示例中 它将接受Animal房间或Dog房间 或者我被迫编写如下两种不同的方法 由于类型
  • 将新行 /n 转换为角度换行符

    我有一个包含换行符 n 的字符串 尝试显示 字符串 它不会将 n 作为新行 而是将 n 显示为文本 scope myOutput Hello n myOutput textFormat 必需 gt 你好 在 html 页面上 Tried a
  • 在catplot中指定颜色

    我想使用seaborn catplot 指定特定观察结果的颜色 在一个虚构的例子中 import seaborn as sns import random as r name list pepe Fabrice jim Michael co
  • C++/CLI,类声明之外的静态构造函数

    如何将托管类的静态构造函数的主体放在类声明之外 这种语法似乎是可编译的 但它真的意味着静态构造函数 还是只是一个静态 在翻译单元之外不可见 函数 ref class Foo static Foo static Foo Foo 是的 这是创建
  • 如何模拟不会导致脆弱测试的实现细节

    我正在读一本关于单元测试的书 下面是引用和代码 不是完整的代码 因为很容易理解代码的作用 首先 作者展示了一个不会导致脆弱测试的嘲笑 Fact public void Successful purchase var mock new Moc
  • 在 Python 中验证 ISO-8601 日期时间字符串?

    我想编写一个接受字符串并返回的函数True如果它是有效的 ISO 8601 日期时间 精确到微秒 包括时区偏移 False否则 我已经发现other https stackoverflow com questions 969285 how
  • 将规则index.php?/controller/method/param重写为/controller/method/param

    我需要这个网址的重写规则 http localhost user frame lib index php controller method 12 22 我怎样才能重写它 我可以这样称呼它 http localhost user frame
  • 如何设置设备邮件发件人姓名?

    我正在使用 Rails 设计 gem 设计向新用户发送确认电子邮件 Actionmailer 配置为使用我的 Gmail 帐户发送电子邮件 电子邮件由发件人发送 电子邮件受保护 cdn cgi l email protection 这是我的
  • 无法在 Linux Mint 19.3 中安装 R 3.6.2 中的 httr 包

    我对 R 完全陌生 我尝试安装httr包裹 我首先安装了 pacman 然后尝试通过运行来加载 httrpacman p load httr 它没有成功 它在终端中显示以下消息 将包安装到 home 用户名 R x86 64 pc linu
  • hdfs 命令在 hadoop 中已弃用

    我正在关注这个程序 http www codeproject com Articles 757934 Apache Hadoop for Windows Platform YouTube 链接 https www youtube com w
  • 如何从文本框获取值

    我改变了我的问题 因为它可能不被理解 也对不起我的英语 动态创建文本框 将它们放入数组中 我的一段代码 public partial class NewArticleForm System Web UI Page private Label
  • 响应式 JavaScript:仅针对小设备宽度执行代码

    我有一些简单的 JavaScript 嵌入在事件中 我只想为小型设备触发它们 电话等 目前我正在做 if window width lt 606 do things 但这感觉很笨拙 有没有办法只对小于某个断点的设备执行此操作 除了设置较早的
  • 为什么在 asp.net 身份中验证电话号码后注销?

    我在我的项目中使用 asp net Identity 在VerifyPhoneNumber查看 当用户确认他的电话号码时 他已注销 AspNetApplicationCookie已移除 我从 资源 选项卡 检查 chrome 中检查了这一点
  • 对多个项目和配置有效使用 Visual Studio 项目属性

    我一直使用 Visual Studio 内置的 GUI 支持来配置我的项目 通常使用属性表 以便多个项目将使用通用集 我对此的主要抱怨之一是管理多个项目 配置和平台 如果您只是使用主 GUI 执行所有操作 右键单击项目 gt 属性 它很快就
  • 如何用 GridLayoutManager 从右到左填充 RecyclerView

    我正在尝试将一些数据填充到RecyclerView with GridLayoutManager GridLayoutManager layoutManager new GridLayoutManager this 3 GridLayout
  • Visual Studio 2012 包管理器控制台错误

    当尝试使用包管理器控制台安装任何内容时 我收到此错误 Install Package The schema version of Microsoft Bcl is incompatible with version 2 0 30625 90
  • Coq:添加“强归纳”策略

    对自然数的 强 或 完全 归纳意味着当证明 n 上的归纳步骤时 您可以假设该属性对于任何 k 都成立 Theorem strong induction forall P nat gt Prop forall n nat forall k n
  • 常规网络服务

    我尝试过使用http groovy codehaus org GroovyWS http groovy codehaus org GroovyWS 在我的 BuildConfig groovy 中 我添加了 compile org code