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)
File Line Function
/inc/functions.php 4475 errorHandler->error
/inc/class_session.php 505 my_strlen
/inc/class_session.php 360 session->create_session
/inc/class_session.php 75 session->load_guest
/global.php 55 session->init
/printthread.php 17 require_once
Warning [2] Undefined variable $mybb - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Attempt to read property "settings" on null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $forums - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $mybb - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Attempt to read property "settings" on null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $forums - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Undefined array key 3 - Line: 184 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 184 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/printthread.php 72 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/printthread.php 72 forum_permissions
Warning [2] Undefined array key "canonlyviewownthreads" - Line: 78 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 78 errorHandler->error
Warning [2] Undefined array key "page" - Line: 86 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 86 errorHandler->error
Warning [2] Undefined variable $multipage - Line: 24 - File: printthread.php(163) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/printthread.php(163) : eval()'d code 24 errorHandler->error
/printthread.php 163 eval



jWork.ORG forums
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.jav​a: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')
import org.apache.commons.lang.WordUtils
println "Hello ${WordUtils.capitalize('world')}"


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.

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.jav​a:311)
=========

The same code works fine "outside" of DataMelt.

--rick grehan



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.