The requested class('abc.') can not be found in the classpath or does not extends Simulation.

sh run_ui_perf_tests.sh

The requested class(‘abc.’) can not be found in the classpath or does not
extends Simulation.
Choose a simulation number:
[0] abc.DashboardUISimulation
[1] abc.UISimulationAllUI
[2] abc.UISimulationNoFilter
[3] abc.UISimulationThreeFilter
[4] abc.UISimulationTwoFilter

Select one simulation number and getting this errors

0

Simulation abc.DashboardUISimulation started…
Exception in thread “main” java.lang.ExceptionInInitializerError
at abc.DashboardUISimulation.(DashboardUISimulation.scala:14)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at io.gatling.core.runner.Runner.run(Runner.scala:36)
at io.gatling.app.Gatling$$anonfun$runSimulationIfNecessary$1.apply(Gatling.scala:132)
at io.gatling.app.Gatling$$anonfun$runSimulationIfNecessary$1.apply(Gatling.scala:117)
at scala.Option.getOrElse(Option.scala:121)
at io.gatling.app.Gatling.runSimulationIfNecessary(Gatling.scala:117)
at io.gatling.app.Gatling.start(Gatling.scala:73)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:59)
at io.gatling.app.Gatling$.main(Gatling.scala:44)
at io.gatling.app.Gatling.main(Gatling.scala)
Caused by: java.lang.NumberFormatException: For input string: “”
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:504)
at java.lang.Integer.parseInt(Integer.java:527)
at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:247)
at scala.collection.immutable.StringOps.toInt(StringOps.scala:30)
at delphi_ui.config.GatlingConfig$.(config.scala:12)
at delphi_ui.config.GatlingConfig$.(config.scala)
… 15 more

my run_ui_perf_test file content

: ${WORKSPACE:="$test_REPO_ROOT"}
export TEST_REPO_ROOT=$WORKSPACE
export TEST_ROOT="/E/gatling/gatling-charts-highcharts-bundle-2.1.3"
export GATLING_HOME="/E/gatling/gatling-charts-highcharts-bundle-2.1.3"
export GATLING_CONF=${GATLING_HOME}/conf

echo “GATLING_HOME is set to ${GATLING_HOME}”
export JAVA_OPT="-server -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly ${JAVA_OPTS}"
export COMPILER_OPTS="$JAVA_OPTS -Xss10M"

export COMMON_CLASSPATH="$GATLING_HOME/lib/:$GATLING_CONF:${JAVA_CLASSPATH}"
export COMPILER_CLASSPATH="$GATLING_HOME/lib/zinc/
:$COMMON_CLASSPATH"
export GATLING_CLASSPATH="$GATLING_HOME/lib/*:$GATLING_HOME/user-files:$COMMON_CLASSPATH"

Load pattern controlling params

: ${Users:=1}
export Users=$Users
: ${Ramp:=1}
export Ramp=$Ramp
: ${meanResponseTime:=5000}
export meanResponseTime=$meanResponseTime
: ${StartDate:=“2015-01-01”}
export StartDate=$StartDate
: ${EndDate:=“2015-01-10”}
export EndDate=$EndDate

Build compilation classpath

COMPILATION_CLASSPATH=find $GATLING_HOME/lib -maxdepth 1 -name "*.jar" -type f -exec printf :{} ';'

Run the compiler

java $COMPILER_OPTS -cp “$COMPILER_CLASSPATH” io.gatling.compiler.ZincCompiler -ccp “$COMPILATION_CLASSPATH” $USER_ARGS 2> /dev/null

Run Gatling

java $JAVA_OPTS -cp “$GATLING_CLASSPATH” io.gatling.app.Gatling -s abc.$1

$USER_ARGS

Thanks for help :slight_smile:

That’s quite obvious:

Exception in thread “main” java.lang.ExceptionInInitializerError
at abc.DashboardUISimulation.(DashboardUISimulation.scala:14)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at io.gatling.core.runner.Runner.run(Runner.scala:36)
at io.gatling.app.Gatling$$anonfun$runSimulationIfNecessary$1.apply(Gatling.scala:132)
at io.gatling.app.Gatling$$anonfun$runSimulationIfNecessary$1.apply(Gatling.scala:117)
at scala.Option.getOrElse(Option.scala:121)
at io.gatling.app.Gatling.runSimulationIfNecessary(Gatling.scala:117)
at io.gatling.app.Gatling.start(Gatling.scala:73)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:59)
at io.gatling.app.Gatling$.main(Gatling.scala:44)
at io.gatling.app.Gatling.main(Gatling.scala)
Caused by: java.lang.NumberFormatException: For input string: “”
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:504)
at java.lang.Integer.parseInt(Integer.java:527)
at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:247)
at scala.collection.immutable.StringOps.toInt(StringOps.scala:30)
at delphi_ui.config.GatlingConfig$.(config.scala:12)
at delphi_ui.config.GatlingConfig$.(config.scala)
… 15 more