Getting Method too large: ChainLibrary$.<clinit> ()V

Hi,
I have recorded my web ui transactions using gatling recorder and also moved all the requests by segregating each request to specific chainbuilder chain0…chain436 exec() calls out of the Simulation class to object ChainLibrary { } ,and then called up the scenario executing each chain builder sequentially.

But i am still getting Method too large error???Please suggest

Below is a framework of my scala file

It looks to me you’ve just moved the max method length issue elsewhere.

All the code that’s not methods definitions and that you directly put in the body of a class or an object is actually placed in the constructor.

In short, you should have several objects, not just a single one.