# Seeing error on running sbt Gatling/test command

**URL:** <https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602>\
**Category:** Gatling (Open-Source)\
**Created:** [February 2, 2023, 3:10am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602 "2023-02-02T03:10:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![selva4](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@selva4](https://community.gatling.io/u/selva4)\
**Post date:** [February 2, 2023, 3:10am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602/1 "2023-02-02T03:10:32Z")

</div>

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  
)

}

---

<div class="post-metadata">

**Author:** ![selva4](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@selva4](https://community.gatling.io/u/selva4)\
**Post date:** [February 2, 2023, 3:13am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602/2 "2023-02-02T03:13:00Z")

</div>

## plugins.sbt

addSbtPlugin(“io.gatling” % “gatling-sbt” % “4.2.0”)

addSbtPlugin(“com.eed3si9n” % “sbt-assembly” % “0.15.0”)

---

<div class="post-metadata">

**Author:** ![selva4](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@selva4](https://community.gatling.io/u/selva4)\
**Post date:** [February 2, 2023, 3:35am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602/3 "2023-02-02T03:35:24Z")

</div>

the issue has been solved after upgrading the gatling version to 3.8.3

---

<div class="post-metadata">

**Author:** ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)\
**Post date:** [February 2, 2023, 7:57am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602/4 "2023-02-02T07:57:38Z")

</div>

As required by this community forum, you should upgrade to latest version before posting.

At this time, [latest version](https://gatling.io/open-source/) is 3.9.0

Cheers!

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [February 2, 2023, 8:56am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602/5 "2023-02-02T08:56:08Z")

</div>

> libraryDependencies += “com.github.phisgr” % “gatling-grpc” % “0.14.0”

> **[Maven Central Repository Search](https://search.maven.org/artifact/com.github.phisgr/gatling-grpc/0.14.0/jar)**
>
> Official search by the maintainers of Maven Central Repository

=\> gatling-grpc:0.14.0 uses Gatling 3.8.3

> val gatlingVersion = “3.7.6”

=\> conflicting versions

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [March 4, 2023, 8:57am UTC](https://community.gatling.io/t/seeing-error-on-running-sbt-gatling-test-command/7602/6 "2023-03-04T08:57:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
