Problem with ReportsGenerator and latest 2.0.0-SNAPSHOT

Good morning,

I’ve updated my eclipse environment from 2.0.0-M3a to 2.0.0-SNAPSHOT and after that no reports were generated.

That’s the stacktrace from the issue:

Simulation finished
Generating reports…
Parsing log file(s)…
Parsing log file(s) done
Exception in thread “main” java.lang.AbstractMethodError: io.gatling.charts.component.impl.ComponentLibraryImpl.getTransactionsChartComponent(JLio/gatling/core/result/Series;Lio/gatling/core/result/Series;Lio/gatling/core/result/Series;Lio/gatling/core/result/Series;)Lio/gatling/charts/component/Component;
at io.gatling.charts.report.GlobalReportGenerator.transactionsChartComponent$1(GlobalReportGenerator.scala:63)
at io.gatling.charts.report.GlobalReportGenerator.generate(GlobalReportGenerator.scala:82)
at io.gatling.charts.report.ReportsGenerator$$anonfun$generateFor$2.apply(ReportsGenerator.scala:52)
at io.gatling.charts.report.ReportsGenerator$$anonfun$generateFor$2.apply(ReportsGenerator.scala:52)
at scala.collection.immutable.List.foreach(List.scala:318)
at io.gatling.charts.report.ReportsGenerator$.generateFor(ReportsGenerator.scala:52)
at io.gatling.app.Gatling.generateReports$1(Gatling.scala:163)
at io.gatling.app.Gatling.start(Gatling.scala:206)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:59)
at Engine$delayedInit$body.apply(Engine.scala:12)
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 Engine$.main(Engine.scala:4)
at Engine.main(Engine.scala)

If you need more informations :slight_smile: just contact me

Greetings
Niko

It looks like you have a mismatch between core gatling and the highcharts module.
Did you properly updated it too?

Both projects were successfully built: https://gatling.ci.cloudbees.com

Already double checked that. Does not work either for a clean project, did i missed something during the installation process?!

mvn dependency:analyze
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gatling 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-dependency-plugin:2.1:analyze (default-cli) @ gatling >>>
[INFO]
[INFO] — maven-resources-plugin:2.5:resources (default-resources) @ gatling —
[debug] execute contextualize
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /opt/git/performance/test.performance.gatling/src/main/resources
[INFO]
[INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ gatling —
[INFO] No sources to compile
[INFO]
[INFO] — scala-maven-plugin:3.1.5:compile (default) @ gatling —
[WARNING] Expected all dependencies to require Scala version: 2.10.3
[WARNING] io.gatling.highcharts:gatling-charts-highcharts:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-charts:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-app:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-core:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] org.scala-lang:scala-compiler:2.10.3 requires scala version: 2.10.3
[WARNING] io.gatling:gatling-core:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] com.typesafe.akka:akka-actor_2.10:2.2.1 requires scala version: 2.10.3
[WARNING] org.scala-lang:scala-reflect:2.10.3 requires scala version: 2.10.3
[WARNING] io.gatling:jsonpath_2.10:0.2.3 requires scala version: 2.10.3
[WARNING] com.dongxiguo:fastring_2.10:0.2.2 requires scala version: 2.10.3
[WARNING] io.gatling:gatling-http:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-jdbc:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-redis:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-metrics:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] com.github.scopt:scopt_2.10:3.1.0 requires scala version: 2.10.3
[WARNING] com.typesafe.zinc:zinc:0.3.0 requires scala version: 2.10.3
[WARNING] com.typesafe.sbt:sbt-interface:0.13.0 requires scala version: 2.10.3
[WARNING] com.typesafe.sbt:incremental-compiler:0.13.0 requires scala version: 2.10.3
[WARNING] com.typesafe.sbt:incremental-compiler:0.13.0 requires scala version: 2.10.2
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] — maven-resources-plugin:2.5:testResources (default-testResources) @ gatling —
[debug] execute contextualize
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] — maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ gatling —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — scala-maven-plugin:3.1.5:testCompile (default) @ gatling —
[WARNING] Expected all dependencies to require Scala version: 2.10.3
[WARNING] io.gatling.highcharts:gatling-charts-highcharts:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-charts:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-app:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-core:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] org.scala-lang:scala-compiler:2.10.3 requires scala version: 2.10.3
[WARNING] io.gatling:gatling-core:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] com.typesafe.akka:akka-actor_2.10:2.2.1 requires scala version: 2.10.3
[WARNING] org.scala-lang:scala-reflect:2.10.3 requires scala version: 2.10.3
[WARNING] io.gatling:jsonpath_2.10:0.2.3 requires scala version: 2.10.3
[WARNING] com.dongxiguo:fastring_2.10:0.2.2 requires scala version: 2.10.3
[WARNING] io.gatling:gatling-http:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-jdbc:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-redis:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] io.gatling:gatling-metrics:2.0.0-SNAPSHOT requires scala version: 2.10.3
[WARNING] com.github.scopt:scopt_2.10:3.1.0 requires scala version: 2.10.3
[WARNING] com.typesafe.zinc:zinc:0.3.0 requires scala version: 2.10.3
[WARNING] com.typesafe.sbt:sbt-interface:0.13.0 requires scala version: 2.10.3
[WARNING] com.typesafe.sbt:incremental-compiler:0.13.0 requires scala version: 2.10.3
[WARNING] com.typesafe.sbt:incremental-compiler:0.13.0 requires scala version: 2.10.2
[WARNING] Multiple versions of scala libraries detected!
[INFO] /opt/git/performance/test.performance.gatling/src/test/scala:-1: info: compiling
[INFO] Compiling 13 source files to /opt/git/performance/test.performance.gatling/target/test-classes at 1386928534177
[WARNING] warning: there were 82 feature warning(s); re-run with -feature for details
[WARNING] one warning found
[INFO] prepare-compile in 0 s
[INFO] compile in 8 s
[INFO]
[INFO] <<< maven-dependency-plugin:2.1:analyze (default-cli) @ gatling <<<
[INFO]
[INFO] — maven-dependency-plugin:2.1:analyze (default-cli) @ gatling —
[WARNING] Used undeclared dependencies found:
[WARNING] io.gatling:gatling-http:jar:2.0.0-SNAPSHOT:compile
[WARNING] org.scala-lang:scala-compiler:jar:2.10.3:compile
[WARNING] org.scala-lang:scala-reflect:jar:2.10.3:compile
[WARNING] io.gatling:gatling-core:jar:2.0.0-SNAPSHOT:compile
[WARNING] Unused declared dependencies found:
[WARNING] io.gatling.highcharts:gatling-charts-highcharts:jar:2.0.0-SNAPSHOT:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.543s
[INFO] Finished at: Fri Dec 13 10:55:43 CET 2013
[INFO] Final Memory: 13M/303M
[INFO] ------------------------------------------------------------------------

Ah, your project is a maven one!
Where does your snapshot repo points to? Cloudbees or Sonatype?

http://oss.sonatype.org/content/repositories/snapshots

This method, getTransactionsChartComponent, non longer exists. I checked
the bytecode in the jars deployed on Sonatype is correct and this method
doesn't exist.

That means that the copy of gatling-charts in your local repository doesn't
get updated.
You can try to remove it or run with -U to force update.