General error during class generation: Method code too large

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during class generation: Method code too large!

java.lang.RuntimeException: Method code too large!
at groovyjarjarasm.asm.MethodWriter.a(Unknown Source)
at groovyjarjarasm.asm.ClassWriter.toByteArray(Unknown Source)
at org.codehaus.groovy.control.CompilationUnit$
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(
at org.codehaus.groovy.control.CompilationUnit.compile(
at groovy.lang.GroovyClassLoader.doParseClass(
at groovy.lang.GroovyClassLoader.parseClass(
at groovy.lang.GroovyShell.parseClass(
at groovy.ui.GroovyMain.processOnce(
at groovy.ui.GroovyMain.process(
at groovy.ui.GroovyMain.processArgs(
at groovy.ui.GroovyMain.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

1 error

I just installed 5.4.1 and got that error.
What i did was to brake my code into methods and call them.
But my code was like over 1000 lines. And facing same error during test suite via read from excel

In Future
And also I want to execute for 5000 values read from excel So please provide me proper solution



  1. Firstly, you should upgrade your version of Katalon.

  2. Try the search facility:

I can already check in katalon studio 6.2.2 facing same error via running excel test suite and than after i can used previous version 5.4.1