Gatling compatible version with scala 2.11.8 and sbt 1.0.4

510 views
Skip to first unread message

kapil aggarwal

unread,
Apr 13, 2018, 12:44:45 AM4/13/18
to Gatling User Group
Hello

Can someone please share if there is compatibility matrix for a version of Gatling & Gatling sbt plugin and scala versions.

I am trying to use the latest version of gatling  with scala 2.11.8 and sbt 1.0.4 and getting below error.
Also, upgrading scala and sbt to the latest version is not an option for me.

Error:

[error] Uncaught exception when running tests: java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object;


[error] sbt.ForkMain$ForkError: java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object;


[error]         at io.gatling.sbt.GatlingRunner.tasks(GatlingRunner.scala:30)


[error]         at sbt.ForkMain$Run.runTests(ForkMain.java:253)


[error]         at sbt.ForkMain$Run.run(ForkMain.java:139)


[error]         at sbt.ForkMain$Run.access$100(ForkMain.java:135)


[error]         at sbt.ForkMain.main(ForkMain.java:121)


[info] Simulation(s) execution ended.


[error] Error during tests:


[error]         Forked test harness failed: java.io.EOFException


[error]         at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2626)


[error]         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1321)


[error]         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)


[error]         at sbt.React.react(ForkTests.scala:156)


[error]         at sbt.ForkTests$Acceptor$2$.run(ForkTests.scala:96)


[error]         at java.lang.Thread.run(Thread.java:745)


[error] (gatling:test) sbt.TestsFailedException: Tests unsuccessful




Gatling SBT Plugin:  2.2.2

Gatling configuration:
name := "SampleGatling"

version := "0.1"

scalaVersion := "2.11.8"

libraryDependencies ++= Seq("io.gatling.highcharts" % "gatling-charts-highcharts" % "2.3.1",
  "io.gatling" % "gatling-test-framework" % "2.3.0" % "test"
)

//addSbtPlugin("io.gatling" % "gatling-sbt" % "2.2.2")
enablePlugins(GatlingPlugin)







Stéphane LANDELLE

unread,
Apr 13, 2018, 1:31:55 AM4/13/18
to gat...@googlegroups.com
Hi,

Gatling 2.1 and 2.2 requires Scala 2.11
Gatling 2.3 requires Scala 2.12
Gatling 3.0 will require Scala 2.12

Also, upgrading scala and sbt to the latest version is not an option for me.

Then you have to stick with Gatling 2.2. We will never go with the burden of cross compiling and maintaining against legacy version of Scala.
Scala 2.11 has reached end of life last November.
Scala 2.12 was released 1 year and a half ago.


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.

Reply all
Reply to author
Forward
0 new messages