# Problem with new sbt-plugin 3.2.0. Pass parameters don't work.

**URL:** <https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824>\
**Category:** Gatling (Open-Source)\
**Created:** [September 30, 2020, 1:18pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824 "2020-09-30T13:18:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![das](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@das](https://community.gatling.io/u/das)\
**Post date:** [September 30, 2020, 1:18pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/1 "2020-09-30T13:18:54Z")

</div>

Hi, I updated the Gatling version to 3.4.0 and sbt plugin to 3.2.0 an I have a problem loading the environment configuration file. I use “com.typesafe” % “config” % "1.4.0 to pass param.

Part of the code to get conf\_file.

 ![Screenshot 2020-09-30 at 14.45.52.png](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/e14003398eafe8ba8c6d0a4c4289ca45562f33d4.png)

For “gatling-sbt 3.2.0”:  
When I run test like sbt -Dconfig=prod\_application.con “gatling:testOnly simulations.test”  
and print line from the code “CONFIG\_FILE\_PRINT”. I get “CONFIG\_FILE\_NAME: None” in terminal.  
Moreover, when I run test with property noReports: sbt -Dgatling.charting.noReports=true “gatling:testOnly simulations.test”. report was generated. I expected only simulation.log and instead I have index.html. It looks like, with the new plugin, set properties don’t work.

When I set again to “gatling-sbt” to 3.1.0 in plugin.sbt file and I have Gatling in 3.4.0 version everything works fine and I get message CONFIG\_FILE\_NAME: Some(prod\_application.con) in the terminal. And I can pass param to the test.

Please help me out because I don’t know if it’s bug or maybe I am doing something wrong. In older version of gatling and sbt-plugin everything worked fine and I have never got a problem to pass param.

Regards,  
Daniel

---

<div class="post-metadata">

**Author:** ![das](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@das](https://community.gatling.io/u/das)\
**Post date:** [September 30, 2020, 1:31pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/2 "2020-09-30T13:31:15Z")

</div>

sbt and java version

[info] welcome to sbt 1.3.13 (AdoptOpenJDK Java 1.8.0\_265)  
[info] loading settings for project gatling-performancetests-build from plugins.sbt …

---

<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:** [September 30, 2020, 3:56pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/3 "2020-09-30T15:56:02Z")

</div>

Indeed, it looks like a regression. Thanks for reporting.  
I guess the culprit is [https://github.com/gatling/gatling-sbt-plugin/commit/0afb0a35c983b3ca29e0fa663309195f78716f93](https://github.com/gatling/gatling-sbt-plugin/commit/0afb0a35c983b3ca29e0fa663309195f78716f93)

---

<div class="post-metadata">

**Author:** ![das](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@das](https://community.gatling.io/u/das)\
**Post date:** [September 30, 2020, 5:43pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/4 "2020-09-30T17:43:56Z")

</div>

Thanks for quick answer Stephane. Can I use gatling 3.4.0 with gatling-sbt 3.1.0 or better to get back to previous version of gatling?

---

<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:** [September 30, 2020, 7:33pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/5 "2020-09-30T19:33:20Z")

</div>

You can use Gatling 3.4.0 with gatling-sbt 3.1.0, no need to rollback Gatling.

---

<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:** [September 30, 2020, 8:08pm UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/6 "2020-09-30T20:08:43Z")

</div>

Could you please give gatling-sbt 3.2.1 a try?

---

<div class="post-metadata">

**Author:** ![das](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@das](https://community.gatling.io/u/das)\
**Post date:** [October 1, 2020, 6:33am UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/7 "2020-10-01T06:33:12Z")

</div>

Thanks for the quick fix. Problem solved.

---

<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:** [October 1, 2020, 7:16am UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/8 "2020-10-01T07:16:15Z")

</div>

Cool! Thanks for confirming!

---

<div class="post-metadata">

**Author:** ![POOJA\_PATHANGE\_SHANT](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@POOJA\_PATHANGE\_SHANT](https://community.gatling.io/u/POOJA_PATHANGE_SHANT)\
**Post date:** [October 1, 2020, 7:23am UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/9 "2020-10-01T07:23:30Z")

</div>

Dear Gatling Team,

Im new to Gatling, while executing Base Simulation class from Gatlin bundle demo I’m having this issue from eclipse IDE. Please refer attached pom file

With Termianl its executing as and generating file. looking forward for your response.

Exception in thread “main” java.lang.NoClassDefFoundError: io/gatling/charts/component/impl/ComponentLibraryImpl

at io.gatling.charts.component.ComponentLibrary$.(ComponentLibrary.scala:44)

at io.gatling.charts.component.ComponentLibrary$.(ComponentLibrary.scala)

at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:53)

at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:62)

at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:40)

at io.gatling.app.Gatling$.start(Gatling.scala:88)

at io.gatling.app.Gatling$.fromMap(Gatling.scala:41)

at Engine$.delayedEndpoint$Engine$1(Engine.scala:11)

at Engine$delayedInit$body.apply(Engine.scala:4)

at scala.Function0.apply$mcV$sp(Function0.scala:34)

at scala.Function0.apply$mcV$sp$(Function0.scala:34)

at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)

at scala.App.$anonfun$main$1$adapted(App.scala:76)

at scala.collection.immutable.List.foreach(List.scala:389)

at scala.App.main(App.scala:76)

at scala.App.main$(App.scala:74)

at Engine$.main(Engine.scala:4)

at Engine.main(Engine.scala)

Caused by: java.lang.ClassNotFoundException: io.gatling.charts.component.impl.ComponentLibraryImpl

at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)

at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

[pom file.rtf](https://community.gatling.io/uploads/short-url/xBxOO2AeSx98JmnBeEk1mmGljwH.rtf) (3.79 KB)

---

<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:** [October 1, 2020, 7:41am UTC](https://community.gatling.io/t/problem-with-new-sbt-plugin-3-2-0-pass-parameters-dont-work/5824/10 "2020-10-01T07:41:14Z")

</div>

Your pom is correct.

What most likely happens here is that maven corrupted the “gatling-charts-highcharts” library while downloading it so you end up with a corrupted jar in your local maven cache. Sadly, maven doesn’t verify artifacts checksums as part of its download process (I think gradle does).  
You can verify this by trying to unzip the jar stored in your local maven cache. It’s located by default in ~/.m2/repository/io/gatling/gatling-charts-highcharts/[3.3.1.](http://3.3.1.)  
If so, remove the whole directory and try again so you trigger download again.

If it still doesn’t work, it might mean you’re using an Enterprise maven proxy (such as Nexus or Artifactory) and that the corrupted copy is stored upstream there. If so, you have to contact the administrators so they remove the corrupted file.
