Hi,
I am getting below error while running gatling.
Parsing log file(s) done
Generating reports…
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won’t be generated
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:48)
at io.gatling.app.LogFileProcessor.generateReports(RunResultProcessor.scala:64)
at io.gatling.app.LogFileProcessor.processRunResult(RunResultProcessor.scala:43)
at io.gatling.app.Gatling.start(Gatling.scala:66)
at io.gatling.app.Gatling$.start(Gatling.scala:57)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:49)
at io.gatling.app.Gatling$.main(Gatling.scala:43)
at io.gatling.app.Gatling.main(Gatling.scala)
… 6 more
Below is the simulation code
val vehicleIdConstant = “1”
var counter = 0
val vehicleRefreshEvent = scenario(“JMS_Scenario_Refresh_Vehicle”).repeat(1) {
var msgVersionJMS = Header.MSG_VERSION.jms()
var msgTypeJMS = Header.MSG_TYPE.jms()
var trackingIdJMS = Header.TRACKING_ID.jms()
var clientIDJMS = Header.CLIENT_ID.jms()
exec { session =>
counter += 1
println(“Request for counter::”+counter)
session.set(“id”, vehicleIdConstant + counter.toString)
}.feed(vehicleIdData).exec(jms(“JMSScenarioRefreshVehicle”).reqreply
.queue(“REQUEST_QUEUE”)
.replyQueue(“REPLY_QUEUE”)
.textMessage(StringBody(body))
.property(msgVersionJMS, “1.2”)
.property(msgTypeJMS, “PROFILEMATCH”)
.property(trackingIdJMS, trackingID)
.property(clientIDJMS, clientId)
.property(“notificationtype”, “JMS_POST”)
.property(“VGTClient”, “${id}”))
}
Could anyone help me out?
Regards
Subu