简体   繁体   English

Groovy Script 非法使用非虚拟函数调用

[英]Groovy Script Illegal use of nonvirtual function call

When i run groovy script in eclipse & jenkins I am getting below error :当我在 eclipse 和 jenkins 中运行 groovy 脚本时,出现以下错误:

java.lang.VerifyError: (class:
groovy/runtime/metaclass/java/lang/StringMetaClass, method:
super$2$invokeMissingMethod signature:
(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;)
Illegal use of nonvirtual function call

But when I ran from groovy console I am able to execute code without this error .但是当我从 groovy 控制台运行时,我能够执行代码而不会出现此错误。 I have tried with jre 6,7,8 nothing helps.. Can anyone help me on this issue.我已经尝试过 jre 6,7,8 没有任何帮助.. 任何人都可以在这个问题上帮助我。

Jenkins 1.x ships with Groovy 1.8.9, so your script needs to be compatible with Groovy 1.8 when running in Jenkins script console or CLI commands. Jenkins 1.x 附带 Groovy 1.8.9,因此在 Jenkins 脚本控制台或 CLI 命令中运行时,您的脚本需要与 Groovy 1.8 兼容。

The upcoming Jenkins 2.0 release will ship with Groovy 2.4.6.即将发布的 Jenkins 2.0 版本将随 Groovy 2.4.6 一起发布。

See JENKINS-21249 for details.有关详细信息,请参阅JENKINS-21249

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JCIFS VerifyError非法使用非虚拟函数调用 - JCIFS VerifyError Illegal use of nonvirtual function call VerifyError在Java 8中对Lambda表达式非法使用非虚函数调用 - VerifyError Illegal use of nonvirtual function call on Lambda expression in Java 8 使用Betamax时“非法使用非虚函数调用” - “Illegal use of nonvirtual function call” when using Betamax Spring使用AspectJ编译时编织导致:java.lang.VerifyError:非法使用非虚函数调用 - Spring with AspectJ compile-time weaving causing: java.lang.VerifyError: Illegal use of nonvirtual function call 如何使用 Java 中的“评估”方法使用在 groovy 脚本中定义的函数 - How to use function defined in a groovy script using the "evaluate" method from Java 提供来自Groovy的Java函数调用的回调 - Provide callback to Java function call from Groovy 是否可以在 Groovy 中使用不是脚本的委托 - Is it possible to use a delegate in Groovy which is not a script 如何在 groovy 脚本中使用 lambda 表达式? - How to use lambda expression in groovy script? 在JMeter groovy脚本中包括形成groovy文件的功能代码段 - Including function code snippet form a groovy file in JMeter groovy script 如何在Groovy脚本-SoapUI中使用LinkedHashMap集合? - How to use LinkedHashMap collection in Groovy Script - SoapUI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM