The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Trying to access array offset on value of type null - Line: 4475 - File: inc/functions.php PHP 8.0.30 (Linux)
|
Groovy @Grab in DataMelt - Printable Version +- jWork.ORG forums (https://jwork.org/forum) +-- Forum: DataMelt (/forumdisplay.php?fid=1) +--- Forum: DataMelt bug report (/forumdisplay.php?fid=3) +--- Thread: Groovy @Grab in DataMelt (/showthread.php?tid=80) |
Groovy @Grab in DataMelt - regrehan - 11-07-2015 07:31 AM I'd like to be able to use Groovy with DataMelt. I find it easy (in other environments), to open a GroovyConsole and test out some code. However, the GroovyConsole in DataMelt seems to have problems with the @Grapes/@Grab annotations. Whenever I try it, I get the following exception: ========= java.lang.NoClassDefFoundError: org/apache/ivy/core/report/ResolveReport at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclar[font=Courier]edMethods(Class.java:2615) at java.lang.Class.getDeclaredMethods(Class.java:1860) at java.security.AccessController.doPrivileged(Native Method) at groovy.grape.GrapeIvy.$getStaticMetaClass(GrapeIvy.groovy) at groovy.grape.GrapeIvy.<init>(GrapeIvy.groovy:75) at java.lang.Class.newInstance(Class.java:379) at groovy.grape.Grape.getInstance(Grape.java:97) at groovy.grape.Grape.grab(Grape.java:132) at groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:311) ========= The same code works fine "outside" of DataMelt. --rick grehan RE: Groovy @Grab in DataMelt - jworkorg - 11-14-2015 11:36 PM Hello, Thanks for your report. We will update the groovy library in the net release best, Admin RE: Groovy @Grab in DataMelt - sergei175 - 11-15-2015 12:27 AM Hello, This Groovy issues was fixed for the beta version dmelt-1.4 posted on the download page. When a make a file test.groovy : Code: @Grab(group='commons-lang', module='commons-lang', version='2.4') and run it as "dm_b test.groovy", it prints "Hello World" best, Sergei[/code] (11-07-2015 07:31 AM)regrehan Wrote: I'd like to be able to use Groovy with DataMelt. I find it easy (in other environments), to open a GroovyConsole and test out some code. RE: Groovy @Grab in DataMelt - sergei175 - 11-15-2015 08:11 AM Hello, I do not think this feature can work. Dmelt includes "embedded" version of groovy. This version of Groovy does not include ivy-2.4.0.jar. So, it's really a bug in Groovy. By adding ivy-2.4.0.jar to Dmelt breaks Groovy console and other features.. I think Groovy team should fix this in their jar embedded version of groovy. |