NoSuchElementException: dequeue on empty queue

Hi have a lot of exception i could not identify the reason.

Below ths stackTrace. If AnyOne had similar problems.

15:16:00.221 [ERROR] i.g.h.a.ResponseProcessor - ResponseProcessor crashed on session=Session(MobilePartGlobale$,20,Map(codesuivi → RJ939600606CN, urlproduit → /toto-product/commande-de-toto/beaux-toto/beaux-toto-a-l-unite/toto-loi-sur-l-organisation-du-credit-au-commerce-et-a-l-industrie/p/1117030, gatling.http.cache.dns → io.gatling.http.resolver.ShuffleJdkNameResolver@65bbd463, truefalse → false, ugproduit → 1117030, gatling.http.referer → https://monsite/, login → moncompte4008@yopmail.com, gatling.http.cookies → CookieJar(Map(CookieKey(jsessionid,monsite,/) → StoredCookie(JSESSIONID=959A4585325540160EBCA7DD3F0AA22E.hybrisf10; path=/; HTTPOnly,true,false,1515507358008))), password → password01),1515507356910,0,OK,List(GroupBlock(List(mobile, accueil),1515507356910,1089,OK), GroupBlock(List(mobile),1515507356910,1089,OK)),io.gatling.core.protocol.ProtocolComponentsRegistry$$Lambda$237/246745017@6c4b9c2f) request=request_50: https://monsite/medias//9677506641950.jpg GET headers: Connection:keep-alive User-Agent:Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36 Referer:https://monsite/ resourceFetcher=Some(Actor[akka://GatlingSystem/user/resourceFetcher-1692#800605728]) redirectCount=0, forwarding user to the next action
java.util.NoSuchElementException: dequeue on empty queue
at scala.collection.immutable.Queue.dequeue(Queue.scala:130)
at io.gatling.core.util.cache.Cache.add(Cache.scala:57)
at io.gatling.core.util.cache.Cache.$plus(Cache.scala:50)
at io.gatling.core.util.cache.SessionCacheHandler.addEntry(SessionCacheHandler.scala:59)
at io.gatling.http.cache.HttpContentCacheSupport$class.io$gatling$http$cache$HttpContentCacheSupport$class$$$anonfun$1(HttpContentCacheSupport.scala:59)
at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52)
at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52)
at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52)
at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52)
at io.gatling.http.ahc.ResponseProcessor.logAndExecuteNext(ResponseProcessor.scala:175)
at io.gatling.http.ahc.ResponseProcessor.checkAndProceed$1(ResponseProcessor.scala:301)
at io.gatling.http.ahc.ResponseProcessor.processResponse(ResponseProcessor.scala:331)
at io.gatling.http.ahc.ResponseProcessor.onCompleted(ResponseProcessor.scala:66)
at io.gatling.http.ahc.AsyncHandler.io$gatling$http$ahc$AsyncHandler$$$anonfun$1(AsyncHandler.scala:136)
at io.gatling.http.ahc.AsyncHandler.io$gatling$http$ahc$AsyncHandler$$$anonfun$1$adapted(AsyncHandler.scala:134)
at io.gatling.http.ahc.AsyncHandler.withResponse(AsyncHandler.scala:127)
at io.gatling.http.ahc.AsyncHandler.onCompleted(AsyncHandler.scala:134)
at io.gatling.http.ahc.AsyncHandler.onCompleted(AsyncHandler.scala:47)
at org.asynchttpclient.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:189)
at org.asynchttpclient.netty.NettyResponseFuture.done(NettyResponseFuture.java:223)
at org.asynchttpclient.netty.handler.HttpHandler.finishUpdate(HttpHandler.java:58)
at org.asynchttpclient.netty.handler.HttpHandler.handleChunk(HttpHandler.java:159)
at org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:187)
at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:76)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1228)
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1039)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:643)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:566)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Unknown Source)

Could be related to https://github.com/gatling/gatling/issues/3371 whose fix will be shipped in 2.3.1.

Could you please provide the version you’re using and an actionable reproducer (we really can’t do anything without a complete sample we can execute).

I am using version 2.2.5.
I will upgrade to 2.3.1 when availabling.

HI,

I am juste upgrade to 2.3.1 but same issue fot this version.

:frowning:

Then, sorry, bug again, it’s impossible to investigate without you providing a way to reproduce your problem on our side.