Very strange error?

Hello All,

I am a quite lost, because every time I run this scenario everything works.

import Setup._
import Test._
import scala.io.Source
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.core.feeder._
import io.gatling.core.json.Jackson

class Runner extends Simulation {

val httpProtocol = new configuration testProtocol
val login = new tLogin tLogin
val You = new tAdvies tYRun
val Advice = new configuration mAdvice
val Credentials = new configuration mUser // goes to => val mUser = csv(“mUser.csv”)

val scn = scenario(“Scenario”).feed(Credentials).feed(Advice)
.group(“testScenario”) {
exec(login, You)
}
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}

BUT when i run this with multiple users I get this error:

16:16:40.172 [GatlingSystem-akka.actor.default-dispatcher-17][ERROR][SingletonFeed.scala:59] i.g.c.a.SingletonFeed - Feeder is now empty, stopping engine

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.IllegalStateException: Feeder is now empty, stopping engine
at io.gatling.core.action.SingletonFeed.feed(SingletonFeed.scala:60)
at io.gatling.core.action.SingletonFeed$$anonfun$receive$1.applyOrElse(SingletonFeed.scala:28)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:23)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
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)

My feeder = val mUser = csv(“mUser.csv”)

and looks like this

username,password
JohnDoe,Passmatazz

JaneDoe,Passmawzz

and so one.

tnx all really lost in this one

http://gatling.io/docs/2.0.0/session/feeder.html#feeders

“.queue // default behavior: use an Iterator on the underlying sequence”
“If the Feeder can’t produce enough records, Gatling will complain about it and your simulation will stop.”

Sorry for wasting your time on something this small, but I am still at a loss.

How can it be that when I have 9 user/passwords and I want to use 9 users and the I use .circular or .random that I keep getting this error?

sorry and tnx

You’re obviously doing something wrong, but can’t tell without see your real code.

import Setup._

the strange thing is that I am seeing the credentials when I println the val?

My2cents: the feeder that’s empty is the second one: Advice.