Exception in thread "main" io.gatling.core.session.el.ElParserException: Failed to parse text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 with error '[B cannot be cast to [C'

Hi,

I just wanted to run the example ‘computerdatabase.advanced.AdvancedSimulationStep01’ on a mac but I get the following error:

Exception in thread “main” io.gatling.core.session.el.ElParserException: Failed to parse text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 with error ‘[B cannot be cast to [C’

at io.gatling.core.session.el.ElCompiler.parseEl(ElCompiler.scala:249)

at io.gatling.core.session.el.ElCompiler$.parse(ElCompiler.scala:171)

at io.gatling.core.session.el.ElCompiler$.compile(ElCompiler.scala:174)

at io.gatling.core.session.el.package$El$.el$extension(package.scala:26)

at io.gatling.core.ValidationImplicits.stringToExpression(ValidationImplicits.scala:48)

at io.gatling.core.ValidationImplicits.stringToExpression$(ValidationImplicits.scala:48)

at io.gatling.core.Predef$.stringToExpression(Predef.scala:22)

at computerdatabase.advanced.AdvancedSimulationStep01.(AdvancedSimulationStep01.scala:77)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)

at java.base/java.lang.Class.newInstance(Class.java:558)

at io.gatling.app.Runner.run0(Runner.scala:79)

at io.gatling.app.Runner.run(Runner.scala:64)

at io.gatling.app.Gatling$.start(Gatling.scala:63)

at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45)

at io.gatling.app.Gatling$.main(Gatling.scala:37)

at io.gatling.app.Gatling.main(Gatling.scala)

Maybe gatling does not work on macs?

Gatling 2 requires Java 8, and doesn’t support Java 9 (Gatling 3 will):
https://gatling.io/docs/current/general/operations/#java-version

Ah thanks, I forgot about that issue.

However I suggest to improve the error message a bit…