Re: [ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.2.4:integration-test (default) on project Project-XYZ: Gatling failed.: Process exited with an error: 255 (Exit value: 255)

4,658 views
Skip to first unread message
Message has been deleted

Stephen

unread,
Nov 12, 2017, 8:52:03 AM11/12/17
to Gatling User Group
Hello,

Are you running Maven using the "get_scenario" profile ? Get you give the result you obtain adding the -X parameter in the command used to run maven (it will run maven as debug) ?

On Wednesday, November 1, 2017 at 10:03:20 PM UTC+1, Neel Desai wrote:
Hello All,


I doing performance testing with maven gatling plugin. It runs fine whenever I run it locally on windows machine but whenever I try to run the same project with Jenkins job I am getting following error:

[ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.2.4:integration-test (default) on project XYZ-test: Gatling failed.: Process exited with an error: 255 (Exit value: 255) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Archiving Gatling reports...
Could not find a Gatling report in results folder.
No newer Gatling reports to archive.

Here I am also mentioning content of my pom file. That will make more clear about versions and all.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.company</groupId>
<artifactId>XYZ-test</artifactId>
<version>1.0-SNAPSHOT</version>
<description>Gatling Performance Tests for Service</description>
<inceptionYear>2017</inceptionYear>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<encoding>UTF-8</encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gatling.version>2.2.5</gatling.version>
<gatling-plugin.version>2.2.4</gatling-plugin.version>
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
<scala.version>2.11.8</scala.version>
<test.scenario>com.company.GetScenarioTest</test.scenario>
</properties>

<repositories>
<repository>
<id>splunk-artifactory</id>
<name>Splunk Releases</name>
<url>http://splunk.artifactoryonline.com/splunk/ext-releases-local</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-core</artifactId>
<version>${gatling.version}</version>
</dependency>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>${gatling.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-http</artifactId>
<version>${gatling.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>anorm_2.11</artifactId>
<version>2.5.3</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.13</version>
</dependency>
<dependency>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
<version>3.2.10.Final</version>
</dependency>
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play-json_2.11</artifactId>
<version>2.6.0-M6</version>
</dependency>
<dependency>
<groupId>org.scalactic</groupId>
<artifactId>scalactic_2.11</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>3.0.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.splunk</groupId>
<artifactId>splunk</artifactId>
<version>1.6.0.0</version>
</dependency>

<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<!-- disable surefire -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<!-- enable surefire -->
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
<filereports>WDF TestSuite.txt</filereports>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- see http://davidb.github.com/scala-maven-plugin -->
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-maven-plugin.version}</version>
<configuration>
<recompileMode>incremental</recompileMode>
<args>
<arg>-target:jvm-${maven.compiler.source}</arg>
</args>
<javacArgs>
<javacArg>-source</javacArg>
<javacArg>${maven.compiler.source}</javacArg>
<javacArg>-target</javacArg>
<javacArg>${maven.compiler.target}</javacArg>
</javacArgs>
</configuration>
<executions>
<execution>
<id>scala-compile-first</id>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile</id>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-plugin.version}</version>
<configuration>
<simulationClass>${test.scenario}</simulationClass>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.company.MainJavaClass</mainClass>
</configuration>
</plugin>

</plugins>
</build>
<profiles>
<profile>
<id>get_scenario</id>
<properties>
<test.scenario>com.company.GetScenarioTest</test.scenario>
</properties>
</profile>
</profiles>
</project>

Please let me know where is the issue.

Neel Desai

unread,
Jan 29, 2018, 2:10:03 PM1/29/18
to Gatling User Group
I am not getting your pov. What you are trying to  say? I've integrated my testing on maven verify goal.  Whenever I run maven verify, it will run the integration test suite

Neel Desai

unread,
Jan 30, 2018, 2:08:56 PM1/30/18
to Gatling User Group
Can you help me to fix this issue asae as I couldn't find any solution of this problem online for this gatling issue?


On Sunday, November 12, 2017 at 7:52:03 AM UTC-6, Stephen wrote:

Stéphane LANDELLE

unread,
Jan 30, 2018, 3:26:03 PM1/30/18
to gat...@googlegroups.com
First, there's no reason at this point to call your problem a Gatling issue, all the more as it works locally on your machine.
It's more likely a set up issue on your Jenkins instance.

Then, you're using a very old Gatling version that is not longer supported.

Finally, the kind of help you're looking ("please solve asap my problem on my private environment") is called consulting/support.
I doubt you'll get any help for this on a community mailing list.

Feel free to ping at con...@gatling.io if you're interested in such consulting.

Cheers,

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.

Neel Desai

unread,
Jan 30, 2018, 4:17:16 PM1/30/18
to Gatling User Group
Sorry about my wording.But I didn't mean that. Should I give a try by updating to newer version?
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.

Stéphane LANDELLE

unread,
Jan 30, 2018, 4:21:25 PM1/30/18
to gat...@googlegroups.com
You should be upgrading anyway because you're using a deprecated unsupported version.
But your problem with your Jenkins might be entirely something else and that's something that can only be investigated on your environment.

Stéphane Landelle
GatlingCorp CEO


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

Neel Desai

unread,
Jan 30, 2018, 5:14:36 PM1/30/18
to Gatling User Group
Hello Stephane,

When I changed gatling-maven-plugin version to 3.0.0-M2 , It gives me following error:

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



Any idea about how can i resolve it?

Neel Desai

unread,
Jan 31, 2018, 12:30:45 PM1/31/18
to Gatling User Group
Hello Stephane,

I would like to mention one more thing over here. The error that I've mentioned earlier ( Failed to execute goal io.gatling:gatling-maven-plugin:2.2.4:integration-test ) that comes only when I try to run post requests. It works fine with GET requests though both request types are getting executed on same slave machine. Just thought to mention here if anyone can get some hint out of it.

Stephen Sorriaux

unread,
Jan 31, 2018, 3:31:24 PM1/31/18
to gat...@googlegroups.com
Hello,

Please send your pom.xml and the maven command you are running so that we can check the configuration

--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/8Xyx62SW5aM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages