When I try to run my simulation it throws the below exception: I have the
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 io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.NoSuchMethodError: org.asynchttpclient.netty.channel.DefaultChannelPool.(IILio/netty/util/Timer;)V
at io.gatling.http.ahc.DefaultAhcFactory.newChannelPool(AhcFactory.scala:84)
at io.gatling.http.ahc.DefaultAhcFactory.(AhcFactory.scala:143)
at io.gatling.http.ahc.AhcFactory$.apply(AhcFactory.scala:46)
at io.gatling.http.ahc.HttpEngine$.apply(HttpEngine.scala:40)
I can see that i have the following jars in the maven repo:
/Users/dipanjan.haldar/.m2/repository/org/asynchttpclient/async-http-client/2.0.37/async-http-client-2.0.37.jar,
/Users/dipanjan.haldar/.m2/repository/org/asynchttpclient/async-http-client-netty-utils/2.0.37/async-http-client-netty-utils-2.0.37.jar,
/Users/dipanjan.haldar/.m2/repository/org/asynchttpclient/netty-resolver-dns/2.0.37/netty-resolver-dns-2.0.37.jar,
/Users/dipanjan.haldar/.m2/repository/org/asynchttpclient/netty-resolver/2.0.37/netty-resolver-2.0.37.jar,
/Users/dipanjan.haldar/.m2/repository/org/asynchttpclient/netty-codec-dns/2.0.37/netty-codec-dns-2.0.37.jar,
Any idea about the problem?