Groovy Shell script object not executed entirely
问题 we are creating a groovy shell object and passing the bindings to the shell then the parsing the groovy code using the shell and initializing a Script object as below GroovyShell shell = new GroovyShell(binding); Script script = shell.parse(//groovy code ); then we are storing the script object in a Concurrent hashmap and running the script using script.run() fetching the script from this hashmap , But the groovy code in the script does not executes completely say 1 in 100 runs . we had