Compilation Error

I am getting below error when running the mvn test -Pperformance

17:27:21.918 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:3: object core is not a member of package io.gatling
17:27:21.934 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - import io.gatling.core.Predef._
17:27:21.934 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:21.934 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:4: object http is not a member of package io.gatling
17:27:21.934 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - import io.gatling.http.Predef._
17:27:21.934 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:22.035 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:7: not found: type Simulation
17:27:22.035 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - class flightSearchSimulation extends Simulation {
17:27:22.035 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:23.529 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:9: not found: value http
17:27:23.530 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - val httpConf = http
17:27:23.531 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:26.317 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:19: not found: value csv
17:27:26.317 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - val flightSearch = csv(“flightSearch.csv”).queue
17:27:26.317 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:20: not found: value scenario
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - val scn = scenario(“flight Search”)
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:23: not found: value http
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - http(“flightSearch1”)
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - F:\git\flightsearch\flightsearch-api\src\test\scala\computerdatabase\flightSearchSimulation.scala:27: not found: value setUp
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - setUp(scn.inject(atOnceUsers(1)).protocols(httpConf))
17:27:26.333 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^

Please suggest

pom.xml (12 KB)

Obviously, gatling modules are not imported in your project.

What shall I do for that…?

Reading the documentation generally helps a lot: http://gatling.io/docs/2.1.6/extensions/maven_plugin.html

http://gatling.io/#/download quite explicitly states what dependency to add in your POM :slight_smile:

Cheers,

Pierre

Apologies, didnt realize that by mistake removed the depenency, now while running the Simulation. I am getting below error:

Uncaught error from thread [GatlingSystem-akka.actor.default-dispatcher-4] shutting down JVM since ‘akka.jvm-exit-on-fatal-error’ is enabled for ActorSystem[GatlingSystem]
java.lang.NoSuchMethodError: com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap$Builder.maximumWeightedCapacity(J)Lcom/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap$Builder;
at io.gatling.core.util.cache.ThreadSafeCache.(ThreadSafeCache.scala:32)
at io.gatling.core.util.cache.ThreadSafeCache$.apply(ThreadSafeCache.scala:26)
at io.gatling.http.fetch.ResourceFetcher$.(ResourceFetcher.scala:54)
at io.gatling.http.fetch.ResourceFetcher$.(ResourceFetcher.scala)
at io.gatling.http.ahc.AsyncHandlerActor.executeNext(AsyncHandlerActor.scala:161)
at io.gatling.http.ahc.AsyncHandlerActor.logAndExecuteNext(AsyncHandlerActor.scala:190)
at io.gatling.http.ahc.AsyncHandlerActor.checkAndProceed$1(AsyncHandlerActor.scala:292)
at io.gatling.http.ahc.AsyncHandlerActor.io$gatling$http$ahc$AsyncHandlerActor$$processResponse(AsyncHandlerActor.scala:322)
at io.gatling.http.ahc.AsyncHandlerActor$$anonfun$receive$1.applyOrElse(AsyncHandlerActor.scala:89)
at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:22)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
at akka.dispatch.Mailbox.run(Mailbox.scala:221)
at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
[ERROR] [05/19/2015 18:00:47.003] [GatlingSystem-akka.actor.default-dispatcher-4] [ActorSystem(GatlingSystem)] Uncaught error from thread [GatlingSystem-akka.actor.default-dispatcher-4] shutting down JVM since ‘akka.jvm-exit-on-fatal-error’ is enabled
java.lang.NoSuchMethodError: com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap$Builder.maximumWeightedCapacity(J)Lcom/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap$Builder;
at io.gatling.core.util.cache.ThreadSafeCache.(ThreadSafeCache.scala:32)
at io.gatling.core.util.cache.ThreadSafeCache$.apply(ThreadSafeCache.scala:26)
at io.gatling.http.fetch.ResourceFetcher$.(ResourceFetcher.scala:54)
at io.gatling.http.fetch.ResourceFetcher$.(ResourceFetcher.scala)
at io.gatling.http.ahc.AsyncHandlerActor.executeNext(AsyncHandlerActor.scala:161)
at io.gatling.http.ahc.AsyncHandlerActor.logAndExecuteNext(AsyncHandlerActor.scala:190)
at io.gatling.http.ahc.AsyncHandlerActor.checkAndProceed$1(AsyncHandlerActor.scala:292)
at io.gatling.http.ahc.AsyncHandlerActor.io$gatling$http$ahc$AsyncHandlerActor$$processResponse(AsyncHandlerActor.scala:322)
at io.gatling.http.ahc.AsyncHandlerActor$$anonfun$receive$1.applyOrElse(AsyncHandlerActor.scala:89)
at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:22)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
at akka.dispatch.Mailbox.run(Mailbox.scala:221)
at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Thanks a lot for your help.