简体   繁体   English

Groovy 1.6和1.8之间的区别

[英]Difference between Groovy 1.6 and 1.8

We have recently upgraded an application in which we have our own embedded Groovy code to trigger certain things. 最近,我们已升级了一个应用程序,其中具有我们自己的嵌入式Groovy代码以触发某些操作。 Previously the application had the Groovy 1.6 library and since upgrading now uses the 1.8 library. 以前,该应用程序具有Groovy 1.6库,并且由于升级现在使用1.8库。 However this is where we run into problems, certain pieces of code now do not run and they generally have the error: 但是,这是我们遇到问题的地方,某些代码现在无法运行,并且通常会出现错误:

    System exception occurred: class=class java.lang.ClassNotFoundException

Are there fundamental differences in the code I should be looking for? 我应该寻找的代码是否存在根本差异? Or anywhere that there is a list of differences between the 2 libraries. 或在这两个库之间有差异列表的任何地方。

Thanks in Advance 提前致谢

Edit to include trace: 编辑以包括跟踪:

    Groovy Job Inbound is Failed.
    System exception occurred: class=class java.lang.ClassNotFoundException, 
    message=Inbound
    Inbound (compact stack trace follows)
    java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    com.application.argo.util.CustomGroovyInvoker.invokeCustomGroovy(CustomGroovyInvoker.java:51)
    com. application.argo.business.GroovyJobManagerPea$1.doInTransaction(GroovyJobManagerPea.java:76)
    com. application.framework.persistence.hibernate.PersistenceTemplate.invoke(PersistenceTemplate.java:137)
    com. application.argo.business.GroovyJobManagerPea.executeGroovy(GroovyJobManagerPea.java:70)
    com. application.argo.business.GroovyJobManagerPea.executeGroovyPlugin(GroovyJobManagerPea.java:56)
    com. application.framework.persistence.hibernate.PersistenceInterceptor.invoke(PersistenceInterceptor.java:131)
    com. application.argo.portal.job.GroovyJob.executeGroovyPlugin(GroovyJob.java:99)
    com. application.argo.portal.job.GroovyJob.executeTargetTask(GroovyJob.java:83)
    com. application.argo.portal.job.AbstractJob.executeInternal(AbstractJob.java:71)
    com. application.framework.quartz.InterruptableQuartzJobBean.execute(InterruptableQuartzJobBean.java:50), root cause=class java.lang.ClassNotFoundException / Inbound.

There's a huge difference between (org.codehaus.) Groovy 1.6 and 1.8. (org.codehaus。)Groovy 1.6和1.8之间存在巨大差异。 I remember when I upgraded from 1.6 to 1.7, and again from 1.7 to 1.8, and neither were pleasant activities, involving lots of little code changes to get things working again. 我记得当我从1.6升级到1.7,然后又从1.7升级到1.8时,都不是一件令人愉快的活动,涉及许多小的代码更改以使事情恢复正常。 So it's likely you need to change your embedded Groovy code to make it work. 因此,可能需要更改嵌入式Groovy代码才能使其正常工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM