Inital Setup Issues

Hello all. I have just started looking at Gatling and am having an issue with the very first script that I created using the recorder.bat script. Here is what I have done.

Downloaded and extracted files to c:\Gatling_2.2.2
Downloaded and verified that I had a JDK version installed. I am able to execute javac -version and received this as the output “javac 1.8.0_102”
Used the recorder.bat script to create a simple script retrieving a url. That file is saved in the user-files/simulations directory. It’s called RecordedSimulation.scala
When I use gatling.bat I get the following output. Am I missing some configuration or some dependency that is causing the compilation to halt?

GATLING_HOME is set to “C:\Gatling_2.2.2”
JAVA = “java”
11:45:56.056 [WARN ] i.g.c.ZincCompiler$ - Pruning sources from previous analysis, due to incompatible CompileSetup.
11:46:08.840 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:160: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:08.865 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=417"))
11:46:08.871 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:08.874 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:163: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:08.902 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=634"))
11:46:08.908 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:08.910 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:166: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:08.936 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=61"))
11:46:08.942 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:08.945 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:169: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:08.979 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=58"))
11:46:08.985 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:08.987 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:172: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.012 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=59"))
11:46:09.017 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:09.019 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:175: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.042 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=419"))
11:46:09.047 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:09.049 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:178: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.075 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=635"))
11:46:09.080 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:09.082 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:181: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.107 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=63"))
11:46:09.112 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:09.114 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:184: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.136 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=415"))
11:46:09.141 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:09.143 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:187: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.166 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=66"))
11:46:09.171 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:09.173 [ERROR] i.g.c.ZincCompiler$ - C:\Gatling_2.2.2\user-files\simulations\RecordedSimulation.scala:190: overloaded method value httpRequest with alternatives:
(method: String,urlOrURI: Either[io.gatling.core.session.Expression[String],org.asynchttpclient.uri.Uri])io.gatling.http.request.builder.HttpRequestBuilder
(method: String,url: io.gatling.core.session.Expression[String])io.gatling.http.request.builder.HttpRequestBuilder
cannot be applied to (String, scala.util.Left[String,Nothing])
11:46:09.197 [ERROR] i.g.c.ZincCompiler$ - .httpRequest(“JSON”, Left("/support/get-plot-data?chartID=420"))
11:46:09.203 [ERROR] i.g.c.ZincCompiler$ - ^
11:46:14.031 [ERROR] i.g.c.ZincCompiler$ - 11 errors found
11:46:14.050 [ERROR] i.g.c.ZincCompiler$ - Compilation crashed
sbt.compiler.CompileFailed: null
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:105)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:95)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:95)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:95)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:168)
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:94)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:142)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:84)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:62)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:61)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:89)
at sbt.inc.Incremental$.compile(Incremental.scala:61)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:159)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:68)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:201)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:183)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:174)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:165)
at io.gatling.compiler.ZincCompiler$$anonfun$7.apply(ZincCompiler.scala:154)
at io.gatling.compiler.ZincCompiler$$anonfun$7.apply(ZincCompiler.scala:154)
at scala.util.Try$.apply(Try.scala:161)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:154)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at io.gatling.compiler.ZincCompiler$.main(ZincCompiler.scala:36)
at io.gatling.compiler.ZincCompiler.main(ZincCompiler.scala)
There is no simulation script. Please check that your scripts are in user-files/simulations
Press any key to continue . . .

It seems that this bug might be related. Does this mean that one of my .get() requests has a very long querystring query?

https://github.com/gatling/gatling/issues/3023

No, it’s a bug.
I guess you’re the first one to generate requests with a custom HTTP method (“JSON”).
https://github.com/gatling/gatling/issues/3113

Just remove the Left()

Thanks for reporting!