Hi
Stéphane Landelle, and Sujatha,
I'm facing the same difficulty.
Could you elaborate it in terms of where and what should be written,
right now my query is this:
val
feederdb = jdbcFeeder("jdbc:mysql://xx.x.
169.xxx/usfdbuser",
"username", "pwd", "select otp from customer_otp_history where id in
(select max(id) from customer_otp_history where bu_id=42 and
email_id='
${userName}' group by email_id)")
val watchers = scenario("Watchers")
.feed(feederUserName)
.exec(createOtp)
.feed(
feederdb)
.exec(confirmOtp) //(i'll use retrieved value from Db in confirm otp api)
and by executing it is giving exception
Exception in thread "main" java.lang.
IllegalStateException: Feeder is now empty, stopping engine
at io.gatling.core.action.SingletonFeed$$anonfun$receive$1.applyOrElse(SingletonFeed.scala:61)
at akka.actor.Actor$class.aroundReceive(Actor.scala:484)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:23)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)