I just updated to 2.1.2, and when I tried to run my standard startup script, I got a bunch of errors about unknown options and arguments. It would appear that the long forms were removed. Was that a conscious decision? Was there any particular reason for it?
Hi John,
Found the cause : since 2.1.2, the compiler does some argument parsing to support options the -s option, but does not support all of Gatling options, which leads to those warnings.
They are however, completely harmless, and should be therefore hidden.
Will fix that ![]()
Cheers,
Pierre
FYI seems like short args fail as well
/usr/share/gatling-2.1.2/bin/gatling.sh -s BasicSimulation
GATLING_HOME is set to /usr/share/gatling-2.1.2
Warning: Unknown option -s
Warning: Unknown argument ‘BasicSimulation’
The requested class(‘BasicSimulation’) can not be found in the classpath or does not extends Simulation.
Choose a simulation number:
[0] computerdatabase.BasicSimulation
Hi,
The first two warnings are caused by the issue that I explained before, which will be fixed in 2.1.3.
When using the -s option, you must pass the fully qualified class name, e.g. computerdatabase.BasicSimulation.
This explains why this doesn’t work in this your case.
Cheers,
Pierre
Hi Pierre,
When I run 2.1.2 on AWS-Ubuntu, I get a lot of error messages and it causes Fabric to halt processing. If I ssh into the single host then the process keeps going in-spite of errors.
I need to run some tests next week. In the meantime, can you tell me where can I download 2.0.3 bundle
Here is the error output
`
./gatling.sh -m -nr > /dev/null
[ubuntu@54.68.76.9] out: Exception in thread “main” sbt.InvalidScalaInstance: Scala instance doesn’t exist or is invalid:
[ubuntu@54.68.76.9] out: version unknown, library jar: /home/ubuntu/gatling-charts-highcharts-bundle-2.1.2/lib/scala-library-2.11.4.jar, compiler jar: /home/ubuntu/gatling-charts-highcharts-bundle-2.1.2/lib/._scala-compiler-2.11.4.jar
[ubuntu@54.68.76.9] out: at sbt.ScalaInstance$.slowActualVersion(ScalaInstance.scala:122)
[ubuntu@54.68.76.9] out: at sbt.ScalaInstance$.sbt$ScalaInstance$$actualVersion(ScalaInstance.scala:119)
[ubuntu@54.68.76.9] out: at sbt.ScalaInstance$$anonfun$actualVersion$1.apply(ScalaInstance.scala:32)
[ubuntu@54.68.76.9] out: at sbt.ScalaInstance$$anonfun$actualVersion$1.apply(ScalaInstance.scala:32)
[ubuntu@54.68.76.9] out: at scala.Option.getOrElse(Option.scala:120)
[ubuntu@54.68.76.9] out: at sbt.ScalaInstance.actualVersion$lzycompute(ScalaInstance.scala:32)
[ubuntu@54.68.76.9] out: at sbt.ScalaInstance.actualVersion(ScalaInstance.scala:32)
[ubuntu@54.68.76.9] out: at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:144)
[ubuntu@54.68.76.9] out: at com.typesafe.zinc.Compiler$.create(Compiler.scala:53)
[ubuntu@54.68.76.9] out: at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:115)
[ubuntu@54.68.76.9] out: at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
[ubuntu@54.68.76.9] out: at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[ubuntu@54.68.76.9] out: at scala.App$$anonfun$main$1.apply(App.scala:71)
[ubuntu@54.68.76.9] out: at scala.App$$anonfun$main$1.apply(App.scala:71)
[ubuntu@54.68.76.9] out: at scala.collection.immutable.List.foreach(List.scala:318)
[ubuntu@54.68.76.9] out: at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
[ubuntu@54.68.76.9] out: at scala.App$class.main(App.scala:71)
[ubuntu@54.68.76.9] out: at io.gatling.compiler.ZincCompiler$.main(ZincCompiler.scala:35)
[ubuntu@54.68.76.9] out: at io.gatling.compiler.ZincCompiler.main(ZincCompiler.scala)
[ubuntu@54.68.76.9] out: Caused by: java.lang.ClassNotFoundException: scala.tools.nsc.Properties
[ubuntu@54.68.76.9] out: at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[ubuntu@54.68.76.9] out: at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ubuntu@54.68.76.9] out: at java.security.AccessController.doPrivileged(Native Method)
[ubuntu@54.68.76.9] out: at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ubuntu@54.68.76.9] out: at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[ubuntu@54.68.76.9] out: at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[ubuntu@54.68.76.9] out: at java.lang.Class.forName0(Native Method)
[ubuntu@54.68.76.9] out: at java.lang.Class.forName(Class.java:274)
[ubuntu@54.68.76.9] out: … 19 more
^C!!! Parallel execution exception under host ‘ubuntu@54.68.76.9’:
!!! Parallel execution exception under host ‘ubuntu@54.88.136.14’:
!!! Parallel execution exception under host ‘ubuntu@54.174.213.213’:
!!! Parallel execution exception under host ‘ubuntu@54.174.100.202’:
`
Nevermind. I found the issue. My tar command corrupted gatling lib files. I am downloading gatling directly on the boxes
Thanks for explaining Pierre…
Regards,