# Bug - Katalon Studio 5.4: Method code too large! Error

**URL:** <https://forum.katalon.com/t/bug-katalon-studio-5-4-method-code-too-large-error/10366>\
**Category:** Miscellaneous\
**Created:** [April 18, 2018, 3:20pm UTC](https://forum.katalon.com/t/bug-katalon-studio-5-4-method-code-too-large-error/10366 "2018-04-18T15:20:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JK1](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@JK1](https://forum.katalon.com/u/JK1)\
**Post date:** [April 18, 2018, 3:20pm UTC](https://forum.katalon.com/t/bug-katalon-studio-5-4-method-code-too-large-error/10366/1 "2018-04-18T15:20:45Z")

</div>

Hi,

I’m getting this error when I run my test cases in Katalon Studio 5.4:

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

I checked the script file size and it’s 54k. I didn’t have this issue running Katalon Studio 5.3.1.1.

Thank you!

![](https://s3.amazonaws.com/katalon-forum/editor/od/kv0p11qwqowl.jpg "Image: https://s3.amazonaws.com/katalon-forum/editor/od/kv0p11qwqowl.jpg")

[54k script.jpg](https://s3.amazonaws.com/katalon-forum/editor/od/kv0p11qwqowl.jpg)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 18, 2018, 3:53pm UTC](https://forum.katalon.com/t/bug-katalon-studio-5-4-method-code-too-large-error/10366/2 "2018-04-18T15:53:23Z")

</div>

@Katalon Team

As I requested here [http://forum.katalon.com/discussion/comment/13642/#Comment\_13642](http://forum.katalon.com/discussion/comment/13642/#Comment_13642)

Please document what is and is not an acceptable length for a TestCase  
run() method (which I assume is the method whose length is being  
complained about).

Thanks.

---

<div class="post-metadata">

**Author:** ![JK1](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@JK1](https://forum.katalon.com/u/JK1)\
**Post date:** [April 18, 2018, 6:04pm UTC](https://forum.katalon.com/t/bug-katalon-studio-5-4-method-code-too-large-error/10366/3 "2018-04-18T18:04:11Z")

</div>

Thanks Russ!

I had the same issue with v5.3.1.1, however, GROOVY file was above 64k. When I brought down the file below 64k, it started working. I figured it had to do with Java methods size limit.

“Java has a 64k limit on the size of methods.”

> **[Method Size Limit in Java - DZone Java](https://dzone.com/articles/method-size-limit-java)**
>
> Most people don’t know this, but you cannot have methods of unlimited size in Java.Java has a 64k limit on the size of methods.What happens if I run into this...

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 18, 2018, 6:14pm UTC](https://forum.katalon.com/t/bug-katalon-studio-5-4-method-code-too-large-error/10366/4 "2018-04-18T18:14:00Z")

</div>

Good work Sherlock 😉

But still, the team should document the limit somewhere. Plus, since the kms runtime impacts somewhat on our methods, whatever the java limit is, it’ll be less in our run() methods.
