You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task :runScript
Grails application running at http://localhost:0 in environment: development
Exception in thread "restartedMain" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.UnsupportedOperationException
at org.codehaus.groovy.control.CompilerConfiguration$1.addCompilationCustomizers(CompilerConfiguration.java:195)
at grails.ui.script.GrailsApplicationScriptRunner.run(GrailsApplicationScriptRunner.groovy:61)
at grails.ui.script.GrailsApplicationScriptRunner.main(GrailsApplicationScriptRunner.groovy:122)
... 5 more
Context failed to load: null
The text was updated successfully, but these errors were encountered:
joelBrun
changed the title
Error running command run-script in grails 5.3.6
"Context failed to load: null" error with command grails run-script in grails 5.3.6
Nov 3, 2024
Expected Behavior
script success with message :
Actual Behaviour
Script fails with message :
Steps To Reproduce
grails create-app app536
cd app536
mkdir scripts
echo 'println "hello app536 !"' > scripts/hello.groovy
./gradlew runScript -Pargs="scripts/hello.groovy"
Environment Information
Operating System: WSL2 Ubuntu 24
Grails Version: 5.3.6
JVM Version: 1.8.0_362
Example Application
No response
Version
5.3.6
The text was updated successfully, but these errors were encountered: