No idea why i am getting this error
errors are below
Uncaught exception when running computerdatabase.ComputerDatabaseSimulation: java.lang.NoSuchMethodError: ‘void io.gatling.core.cli.CommandLineConstant.(java.lang.String, java.lang.String)’
[error] sbt.ForkMain$ForkError: java.lang.NoSuchMethodError: ‘void io.gatling.core.cli.CommandLineConstant.(java.lang.String, java.lang.String)’
[error] at io.gatling.app.cli.CommandLineConstants$.(CommandLineConstants.scala:22)
[error] at io.gatling.app.cli.ArgsParser$$anon$1.(ArgsParser.scala:30)
[error] at io.gatling.app.cli.ArgsParser.(ArgsParser.scala:28)
[error] at io.gatling.app.Gatling$.fromArgs(Gatling.scala:48)
[error] at io.gatling.app.Gatling$.fromSbtTestFramework(Gatling.scala:45)
[error] at io.gatling.sbt.GatlingTask.liftedTree1$1(GatlingTask.scala:52)
[error] at io.gatling.sbt.GatlingTask.execute(GatlingTask.scala:51)
[error] at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[error] at java.base/java.lang.Thread.run(Thread.java:1589)
[info] Simulation(s) execution ended.
[error] Error during tests:
build.sbt
enablePlugins(GatlingPlugin)
scalaVersion := “2.13.8”
val gatlingVersion = “3.7.6”
enablePlugins(GatlingPlugin)
scalaVersion := “2.13.8”
javacOptions ++= Seq(“-source”, “11”, “-target”, “11”)
updateOptions := updateOptions.value.withCachedResolution(false)
updateOptions := updateOptions.value.withLatestSnapshots(true)
scalacOptions := Seq(
“-encoding”, “UTF-8”, “-target:jvm-1.8”, “-deprecation”,
“-feature”, “-unchecked”, “-language:implicitConversions”, “-language:postfixOps”)
libraryDependencies += “io.gatling.highcharts” % “gatling-charts-highcharts” % gatlingVersion % “test,it”
libraryDependencies += “io.gatling” % “gatling-test-framework” % gatlingVersion % “test,it”
libraryDependencies += “com.github.phisgr” % “gatling-grpc” % “0.14.0”
libraryDependencies += “com.google.http-client” % “google-http-client” % “1.28.0”
PB.targets in Compile := Seq(
scalapb.gen() → (sourceManaged in Compile).value
)
libraryDependencies += “com.thesamet.scalapb” %% “scalapb-runtime” % scalapb.compiler.Version.scalapbVersion % “protobuf”
libraryDependencies ++= Seq(
“io.grpc” % “grpc-netty” % scalapb.compiler.Version.grpcJavaVersion,
“com.thesamet.scalapb” %% “scalapb-runtime-grpc” % scalapb.compiler.Version.scalapbVersion
)
}