[英]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.