UnsupportOperationException when recording

Hi,
I get UnsupportedOperationException when I try to record a scenario. Everything works fine until I click on a button. The button has a javascript onclick listener that should open a menu. Then I get this exception:

Aug 16, 2012 1:51:09 PM org.jboss.netty.channel.SimpleChannelHandler
WARNING: EXCEPTION, please implement com.excilys.ebi.gatling.recorder.http.handler.ServerHttpResponseHandler.exceptionCaught() for proper handling.
java.lang.UnsupportedOperationException
at org.jboss.netty.buffer.CompositeChannelBuffer.array(CompositeChannelBuffer.java:166)
at com.excilys.ebi.gatling.recorder.scenario.RequestElement.(RequestElement.scala:58)
at com.excilys.ebi.gatling.recorder.controller.RecorderController.processRequest(RecorderController.scala:184)
at com.excilys.ebi.gatling.recorder.controller.RecorderController.receiveResponse(RecorderController.scala:102)
at com.excilys.ebi.gatling.recorder.http.handler.ServerHttpResponseHandler.messageReceived(ServerHttpResponseHandler.scala:31)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:193)
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:127)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:455)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:538)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:487)
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:91)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:373)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:247)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Do you know what I’m doing wrong?

Thanks,

Mariann

Hi Mariann,

This has already been fixed in master:
https://github.com/excilys/gatling/issues/629

Could you try the SNAPSHOT available here, please:
https://github.com/excilys/gatling/downloads

Cheers,

Stéphane

2012/8/16 Mariann Orvedal <mariann.orvedal@gmail.com>

Hi Stéphane,

I just tried the latest version (1.3.3) and i got the same issue.

Cheers

Really?!

Could you provide a test case, please?

Cheers,

Steph

2012/10/19 Sh@dow <mkissa@octo.com>

Have been browsing for 15 minutes on various big websites (merchant, banking…), with tons of resources and javascript, and couldn’t reproduce.
I’m afraid I won’t be able to do anything without a test case, sorry…

Stéphane

2012/10/19 Stéphane Landelle <slandelle@excilys.com>

It works after updating my JVM and rebooting.

My apologies for this non-issue and thanks for your quick response.

No problem. I’d rather have this kind of false issues than real ones…

Thanks for letting us know.
Cheers,

Stéphane

2012/10/19 Sh@dow <mkissa@octo.com>