[2.0.0-SNAPSHOT] Some Trouble to record scripts because of the not trusted SSL certification.

The URL is HTTPS link, and the certification is not the offcial trusted certification, so the browser often prompts the certification is not trusted and asks if you will continue to use it or not, if you answer yes, the browser will jump to the correct web page.

Gatling [2.0.0-M3a] recorder could deal with such situation and record the scripts, after answer yes, the browser could jump to the correct web page.

Gatling [2.0.0-SNAPSHOT] recorder looks like have some trouble to deal with it, after answer yes, the browser pending there and could NOT jump to the correct web page, and looks like the Gatling recorder can’t jump into the correct web page. And Recorder will report some exceptions like below:

The Gatling [2.0.0-SNAPSHOT] was downloaded from below URL according the wiki page :
https://oss.sonatype.org/content/repositories/snapshots/io/gatling/highcharts/gatling-charts-highcharts/2.0.0-SNAPSHOT/.

GATLING_HOME is set to “C:\Gatling\2.0.0-SNAPSHOT”
Mar 10, 2014 10:22:28 AM org.jboss.netty.channel.SimpleChannelHandler
WARNING: EXCEPTION, please implement io.gatling.recorder.http.handler.ServerHttpResponseHandler.exceptionCaught() for proper handling.
java.lang.ClassCastException: org.jboss.netty.handler.codec.http.DefaultHttpResponse incompatible with org.jboss.netty.handler.codec.http.HttpRequest
at org.jboss.netty.handler.codec.http.HttpRequestEncoder.encodeInitialLine(HttpRequestEncoder.java:31)
at org.jboss.netty.handler.codec.http.HttpMessageEncoder.encode(HttpMessageEncoder.java:86)
at org.jboss.netty.handler.codec.http.HttpClientCodec$Encoder.encode(HttpClientCodec.java:112)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleDownstream(HttpClientCodec.java:97)
at org.jboss.netty.channel.Channels.write(Channels.java:704)
at org.jboss.netty.channel.Channels.write(Channels.java:671)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248)
at io.gatling.recorder.http.handler.ServerHttpResponseHandler.messageReceived(ServerHttpResponseHandler.scala:50)
at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
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:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
at java.lang.Thread.run(Thread.java:804)

10:22:33.989 [ERROR] i.g.r.h.h.ClientHttpsRequestHandler - SSLException Received fatal alert: bad_certificate, did you accept the certificate for https://sb-ssl.google.com:443?

Stupid mistake.
Fixed: https://github.com/excilys/gatling/issues/1682

Thanks for reporting!