# \[gatling jenkins plugin\] Build error

**URL:** <https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161>\
**Category:** Gatling (Open-Source)\
**Created:** [November 12, 2012, 9:45am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161 "2012-11-12T09:45:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 9:45am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/1 "2012-11-12T09:45:29Z")

</div>

Hi,  
I cloned the gatling jenkins plugin and I have the following build error :

[ERROR] COMPILATION ERROR :[INFO] -------------------------------------------------------------  
[ERROR] error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor could not be instantiated: java.lang.NoClassDefFoundError: com/google/common/collect/Multimap[INFO] 1 error  
[INFO] -------------------------------------------------------------  
[INFO] ------------------------------------------------------------------------  
[ERROR] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------

My config :  
java version “1.6.0\_24”  
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~10.04.2)  
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Apache Maven 2.2.1 (rdebian-1)

I tried a mvn clean package from CLI and Intellij.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 12, 2012, 9:50am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/2 "2012-11-12T09:50:53Z")

</div>

As you said on Twitter, it might be worth trying to build with maven3.  
The error is experience happens Jenkins code, not Gatling.

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 10:15am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/3 "2012-11-12T10:15:03Z")

</div>

Yep, works better with Maven3.

I got a test failed :

Tests in error:  
initializationError(InjectedTest): com.sun.jna.Native.open(Ljava/lang/String;)JTests  
run: 1, Failures: 0, Errors: 1, Skipped: 0

So i skipped tests to have a binary 🙂

Just installed on Jenkins 1.489 so now I’m gonna try it 😃

thx

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 12, 2012, 10:23am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/4 "2012-11-12T10:23:17Z")

</div>

The last error you get looks like a JDK bug.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [November 12, 2012, 10:38am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/5 "2012-11-12T10:38:38Z")

</div>

It seems to be a JDK bug, because the Jenkins plugin builds fine (no test failed) with Oracle JDK (1.6.0\_37).

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 10:49am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/6 "2012-11-12T10:49:41Z")

</div>

I’m moving on 🙂

new problem :

```auto
 Embedded error: More than 1 simulation to run, need to specify one

```

```auto

```

```auto
Even if I specify -Dgatling.simulations=it.preprod.Mobile2Simulation 

```

```auto
or in the pom.xml :

```

```auto
<configuration>

```

```auto
<simulations>it.preprod.Mobile2Simulation</simulations>

```

```auto
<runName>run_xxx</runName>

```

```auto
</configuration>

```

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 12, 2012, 11:04am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/7 "2012-11-12T11:04:47Z")

</div>

Gatling can no longer multiple simulations sequentially, so this option has been renamed from simulation **s** to simulation.

Not sure if this properly documented/announced though.

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 1:19pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/8 "2012-11-12T13:19:48Z")

</div>

ok, I fixed it using instead of .

Now :

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [November 12, 2012, 1:31pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/9 "2012-11-12T13:31:38Z")

</div>

Is your simulation in src/main/resources/simulations/ ?

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 1:37pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/10 "2012-11-12T13:37:23Z")

</div>

the exact path of my simulation is **src/main/resources/simulations** /it/preprod

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA1](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pierre\_DAL-PRA1](https://community.gatling.io/u/Pierre_DAL-PRA1)\
**Post date:** [November 12, 2012, 2:05pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/11 "2012-11-12T14:05:05Z")

</div>

I tested the Maven plugin, if you :

1/ Have the correct path for your simulations  
2/ Set the fully qualified name (maybe a typo ?) in the tag

The Maven plugin should be able to run your simulation.

Did you try to run it with Maven or with Jenkins only ?

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 2:12pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/12 "2012-11-12T14:12:53Z")

</div>

I first tried in jenkins then reproduced with maven locally.  
So now I’m testing locally.

I tried the [https://github.com/nhuray/gatling-maven-project](https://github.com/nhuray/gatling-maven-project) (which uses gatling 1.2.5) locally and it works.  
Now I’m trying to make this demo project work with last gatling 1.3.4 (always with local maven). It does not compile with gatling 1.3.4.

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 2:16pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/13 "2012-11-12T14:16:53Z")

</div>

I add that with gatling 1.2.5 my job is successful.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [November 12, 2012, 2:31pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/14 "2012-11-12T14:31:20Z")

</div>

What was your compilation error with Gatling 1.3.4 ?

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 2:35pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/15 "2012-11-12T14:35:24Z")

</div>

The one I gave before :

[INFO] Exception in thread “main” java.lang.ClassNotFoundException: MySimulation  
[INFO] at scala.tools.nsc.interpreter.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:51)  
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:321)  
[INFO] at scala.tools.nsc.interpreter.AbstractFileClassLoader.scala$tools$nsc$util$ScalaClassLoader$$super$loadClass(AbstractFileClassLoader.scala:17)  
[INFO] at scala.tools.nsc.util.ScalaClassLoader$class.loadClass(ScalaClassLoader.scala:50)  
[INFO] at scala.tools.nsc.interpreter.AbstractFileClassLoader.loadClass(AbstractFileClassLoader.scala:17)  
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)  
[INFO] at com.excilys.ebi.gatling.app.FileSystemBackedSimulationClassLoader$$anonfun$3.apply(SimulationClassLoader.scala:73)  
[INFO] at com.excilys.ebi.gatling.app.FileSystemBackedSimulationClassLoader$$anonfun$3.apply(SimulationClassLoader.scala:73)  
[INFO] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)  
[INFO] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)  
[INFO] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)  
[INFO] at scala.collection.immutable.List.foreach(List.scala:76)  
[INFO] at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)  
[INFO] at scala.collection.immutable.List.map(List.scala:76)  
[INFO] at com.excilys.ebi.gatling.app.FileSystemBackedSimulationClassLoader.simulationClasses(SimulationClassLoader.scala:73)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$$anonfun$10.apply(Gatling.scala:83)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$$anonfun$10.apply(Gatling.scala:78)  
[INFO] at scala.Option.getOrElse(Option.scala:108)  
[INFO] at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:78)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$.fromMap(Gatling.scala:66)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:61)  
[INFO] at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA1](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pierre\_DAL-PRA1](https://community.gatling.io/u/Pierre_DAL-PRA1)\
**Post date:** [November 12, 2012, 2:42pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/16 "2012-11-12T14:42:08Z")

</div>

Can you email me your simulation and pom.xml ? It’s difficult to see exactly where the problem is without having a look at the simulation.

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 3:06pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/17 "2012-11-12T15:06:51Z")

</div>

I think there is an issue with my whole project.

I copyed-pasted my simulation in the gatling-maven-project and successfully built it with gatling 1.3.4.  
So I think I’m gonna reset (delete and recreate) my whole project.

Thank for your help 😉

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 12, 2012, 4:31pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/18 "2012-11-12T16:31:18Z")

</div>

So I finally have a successful jenkins build.  
I just have to handle the result publisher to be fully happy 🙂

I thought I could use a same job with different profiles to launch different silmulations but maybe it’s not the best way to do it.

What’s your advice on this? One jenkins job =\> One simulation?  
Any advice on parametrizing the jobs/simulations?

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA1](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pierre\_DAL-PRA1](https://community.gatling.io/u/Pierre_DAL-PRA1)\
**Post date:** [November 12, 2012, 5:05pm UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/19 "2012-11-12T17:05:07Z")

</div>

Currently, 1 Jenkins job = 1 simulation, due to some limitations of the Maven plugin, so you don’t have a choice here…  
You’ll have to create a new job for each simulation you want to run, but you can make your simulations jobs depends on the main project, so that the simulations are run after the main project is built.  
You can also chain your simulations jobs (one simulation job depends on the main project, the others depends on a another simulation job), like that :

Main project ← simulation job ← simulation job ← … ← simulation job

Doing that, a job will only be started if the previous one is marked stable. You also avoid running concurrently multiple simulations.

You can use Jenkins’ Parametrized Trigger plugin to do the chaining.

---

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [November 13, 2012, 8:56am UTC](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161/20 "2012-11-13T08:56:48Z")

</div>

I found a way to reproduce my issue :

git clone [https://github.com/nhuray/gatling-maven-project.git](https://github.com/nhuray/gatling-maven-project.git)

update pom.xml to use 1.3.4  
update the code of BasicExampleSimulation to compile (I removed the last if).

launch the mvn gatling:execute -Dgatling.simulations=basic.BasicExampleSimulation  
=\>  
it works.

Now duplicate the BasicExampleSimulation, rename it as MySimulation for example.  
launch the mvn gatling:execute -Dgatling.simulations=basic.MySimulation

=\>

INFO] Exception in thread “main” java.lang.ClassNotFoundException: basic.MySimulation  
[INFO] at scala.tools.nsc.interpreter.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:51)  
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:321)  
[INFO] at scala.tools.nsc.interpreter.AbstractFileClassLoader.scala$tools$nsc$util$ScalaClassLoader$$super$loadClass(AbstractFileClassLoader.scala:17)  
[INFO] at scala.tools.nsc.util.ScalaClassLoader$class.loadClass(ScalaClassLoader.scala:50)  
[INFO] at scala.tools.nsc.interpreter.AbstractFileClassLoader.loadClass(AbstractFileClassLoader.scala:17)  
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)  
[INFO] at com.excilys.ebi.gatling.app.FileSystemBackedSimulationClassLoader$$anonfun$3.apply(SimulationClassLoader.scala:73)  
[INFO] at com.excilys.ebi.gatling.app.FileSystemBackedSimulationClassLoader$$anonfun$3.apply(SimulationClassLoader.scala:73)  
[INFO] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)  
[INFO] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)  
[INFO] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)  
[INFO] at scala.collection.immutable.List.foreach(List.scala:76)  
[INFO] at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)  
[INFO] at scala.collection.immutable.List.map(List.scala:76)  
[INFO] at com.excilys.ebi.gatling.app.FileSystemBackedSimulationClassLoader.simulationClasses(SimulationClassLoader.scala:73)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$$anonfun$10.apply(Gatling.scala:83)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$$anonfun$10.apply(Gatling.scala:78)  
[INFO] at scala.Option.getOrElse(Option.scala:108)  
[INFO] at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:78)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$.fromMap(Gatling.scala:66)  
[INFO] at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:61)  
[INFO] at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)  
[INFO] ------------------------------------------------------------------------  
[ERROR] BUILD ERROR  
[INFO] ------------------------------------------------------------------------

I don’t get what the problem could be (but it’s really annoying).

[Next page](https://community.gatling.io/t/gatling-jenkins-plugin-build-error/161.md?page=2)
