Can't find jar matching scala-compiler.*\.jar while 'mvn gatling:execute'

2,086 views
Skip to first unread message

Aria

unread,
Oct 12, 2017, 6:28:04 AM10/12/17
to Gatling User Group
When i try to '$mvn gatling:execute', it errors out saying

ERROR in ch.qos.logback.core.joran.spi.Interpreter@5:19 - no applicable action for [immediateFlush], current ElementPath  is [[configuration][appender][immediateFlush]]

And the exception i see is:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.RuntimeException: Can't find the jar matching scala-compiler.*\.jar$
at io.gatling.compiler.ZincCompiler$$anonfun$jarMatching$1$2.apply(ZincCompiler.scala:117)
at io.gatling.compiler.ZincCompiler$$anonfun$jarMatching$1$2.apply(ZincCompiler.scala:117)
at scala.Option.getOrElse(Option.scala:120)
at io.gatling.compiler.ZincCompiler$.jarMatching$1(ZincCompiler.scala:117)
at io.gatling.compiler.ZincCompiler$.io$gatling$compiler$ZincCompiler$$setupZincCompiler(ZincCompiler.scala:119)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:137)
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)
... 6 more

Please let me know how to go about with this. 

Thank you

Ram Kamath

unread,
Nov 1, 2017, 5:29:46 AM11/1/17
to Gatling User Group
Did you find the solution? I am facing same error and have No idea why.

<?xml version="1.0" encoding="UTF-8"?>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>tests</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <name>Performance Test</name>
    <parent>
        <groupId>showcase</groupId>
        <artifactId>XYZ</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <properties>
        <gatling.version>2.3.0</gatling.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>io.gatling.highcharts</groupId>
            <artifactId>gatling-highcharts</artifactId>
            <version>${gatling.version}</version>
            <type>pom</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-reflect</artifactId>
            <version>2.13.0-M2</version>
        </dependency>
        <dependency>
            <groupId>io.gatling</groupId>
            <artifactId>gatling-core</artifactId>
            <version>${gatling.version}</version>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-compiler</artifactId>
            <version>2.13.0-M2</version>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>io.gatling</groupId>
                <artifactId>gatling-maven-plugin</artifactId>
                <version>3.0.0-M1</version>
                <configuration>
                    <resultsFolder>target/gatling/results</resultsFolder>
                    <bodiesFolder>src/test/resources/bodies</bodiesFolder>
                    <simulationsFolder>src/test/scala</simulationsFolder>
                    <propagateSystemProperties>true</propagateSystemProperties>
                    <failOnError>true</failOnError>
                    <simulationClass>RecordedSimulation</simulationClass>
                    <runMultipleSimulations>true</runMultipleSimulations>
                </configuration>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>

Siegfried Goeschl

unread,
Nov 23, 2017, 7:43:12 PM11/23/17
to Gatling User Group
Hi folks,

I just migrated to Gatling 2.3.0 and remember seeing this error - maybe https://github.com/sgoeschl/gatling-blueprint-project/blob/master/pom.xml might help

Thanks in advance, Siegfried Goeschl

Ashley Hindmarsh

unread,
Nov 28, 2017, 7:47:17 AM11/28/17
to Gatling User Group
Same here - dropped back to 2.2.4 for now.

Stéphane LANDELLE

unread,
Nov 28, 2017, 7:55:59 AM11/28/17
to gat...@googlegroups.com
No idea what you do but the problem is definitively on your side.

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jan Monterrubio

unread,
Dec 22, 2017, 5:07:22 PM12/22/17
to Gatling User Group
It happens when I try to run "mvn install io.gatling:gatling-maven-plugin:test" (just the plugin directly). Simulations and running the Engine work directly (through IntelliJ)
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.

Stéphane LANDELLE

unread,
Dec 22, 2017, 5:13:49 PM12/22/17
to gat...@googlegroups.com
Again, please provide a reproducer.
You can check for yourself that the command you provided works just fine against the demo:  https://github.com/gatling/gatling-maven-plugin-demo

Stéphane Landelle
GatlingCorp CEO


To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

Jan Monterrubio

unread,
Dec 22, 2017, 5:56:18 PM12/22/17
to Gatling User Group
Using gatling-maven-plugin 2.2.4 and gatling 2.3.0 fixes this problem (no definition of the scala compiler in my pom)
Message has been deleted
Message has been deleted

Robert Bain

unread,
Jun 27, 2018, 4:03:04 PM6/27/18
to Gatling User Group
I had the same problem. I followed the link to the working demo pom and used their versions and the most recent version of gatling on maven central (2.3.1 at time of writing).

The problem persisted. I noticed the following dependency in the pom I was using that was not in the demo pom:

<dependency>
    
<groupId>org.scala-lang</groupId>
    <artifactId>scala-library</artifactId>
    
<version>${scala.version}</version>
</dependency>

When I removed this, it worked.

I tried upgrading gatling-maven-plugin but any 3x version did not work. Here are the versions that worked for me:

<properties>
    <gatling.version>2.3.1</gatling.version>
    <gatling-maven-plugin.version>2.2.4</gatling-maven-plugin.version>
    <scala-maven-plugin.version>3.3.2</scala-maven-plugin.version>
</properties>

Shaun Thompson

unread,
Sep 26, 2018, 12:25:07 PM9/26/18
to Gatling User Group
Had the exact same problem when using the latest releases of the plugins.
<gatling.version>2.3.1</gatling.version>
<gatling-maven-plugin.version>3.0.0</gatling-maven-plugin.version>
<scala-maven-plugin.version>3.4.2</scala-maven-plugin.version>


slan...@gatling.io

unread,
Sep 26, 2018, 12:26:35 PM9/26/18
to gat...@googlegroups.com
Maven plugin 3 is to be used with Gatling 3, not 2.
--

Shaun Thompson

unread,
Sep 26, 2018, 12:31:37 PM9/26/18
to Gatling User Group
That was simple enough!

Using the following versions bypassed the error above.


 <gatling.version>3.0.0-RC2</gatling.version>
 <gatling-maven-plugin.version>3.0.0</gatling-maven-plugin.version>
 <scala-maven-plugin.version>3.4.2</scala-maven-plugin.version>

Reply all
Reply to author
Forward
0 new messages