Issue in build in Jenkins, with Gatling project.

41 views
Skip to first unread message

Prakhar Srivastava

unread,
Apr 28, 2015, 10:08:43 AM4/28/15
to gat...@googlegroups.com
Hi,

I am facing errors while building my Gatling project in Jenkins:
1. Plugin used in project with version 2.1.5
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-plugin.version}</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<!-- Default values -->
<!--<configFolder>src/test/resources</configFolder-->
<dataFolder>src/test/resources/data</dataFolder>
<resultsFolder>target/gatling/results</resultsFolder>
<requestBodiesFolder>src/test/resources/request-bodies</requestBodiesFolder>
<simulationsFolder>src/test/scala</simulationsFolder>
</configuration>
</execution>
</executions>
</plugin>

2. I am using Jenkins 1.1.0 plugin which supports Gatling 2.

3. Error getting in Jenkins:
[INFO] --- gatling-maven-plugin:2.1.5:execute (default) @ flightsearch-api ---
java.lang.NoClassDefFoundError: com/typesafe/zinc/Setup
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
	at java.lang.Class.privateGetMethodRecursive(Class.java:3040)
	at java.lang.Class.getMethod0(Class.java:3010)
	at java.lang.Class.getMethod(Class.java:1776)
	at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:43)
	at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.ClassNotFoundException: com.typesafe.zinc.Setup
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 7 more

Please advice.

Thanks,
Prakhar Srivastava


Stéphane LANDELLE

unread,
Apr 28, 2015, 10:49:13 AM4/28/15
to gat...@googlegroups.com
I'd say you have a broken maven artifact download in your local maven repository.
Try deleting the com.typesafe.zinc groupId content and start again.

Stéphane Landelle
Lead developer


--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Prakhar Srivastava

unread,
Apr 28, 2015, 11:00:38 AM4/28/15
to gat...@googlegroups.com
Hi Stephane,

Thanks, but it is running fine in my local.
Issue persists when I build in Jenkins.

Thanks,
Prakhar

Stéphane LANDELLE

unread,
Apr 28, 2015, 11:02:42 AM4/28/15
to gat...@googlegroups.com
Have you tried upgrading to latest Jenkins plugin (1.1.1)?
Do you use a company maven repository that proxifies maven downloads?

Stéphane Landelle
Lead developer


Prakhar Srivastava

unread,
Apr 28, 2015, 11:17:06 AM4/28/15
to gat...@googlegroups.com
Hi,

Tried with latest plugin as well, getting below error:
[INFO] --- gatling-maven-plugin:2.1.5:execute (default) @ flightsearch-api ---
java.lang.NoClassDefFoundError: scala/Function0
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
	at java.lang.Class.privateGetMethodRecursive(Class.java:3040)
	at java.lang.Class.getMethod0(Class.java:3010)
	at java.lang.Class.getMethod(Class.java:1776)
	at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:43)
	at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.ClassNotFoundException: scala.Function0
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 7 more

Thanks,
Prakhar Srivastava

Prakhar Srivastava

unread,
Apr 29, 2015, 7:38:07 AM4/29/15
to gat...@googlegroups.com
Hi,

Do you have any suggestions on this..?

Thanks,
Prakhar Srivastava

Stéphane LANDELLE

unread,
Apr 30, 2015, 9:13:44 AM4/30/15
to gat...@googlegroups.com
Please provide a reproducer, like a sample project pushed on Github, that exhibits your issue.

Stéphane Landelle
Lead developer


Reply all
Reply to author
Forward
0 new messages