Error in recorder (2.0.0-RC2)

I set up the recorder, and set up my browser (Safari) to go through it. Then I pointed my browser to http://www.Booker.com and clicked the login link, and I get the following error.

`
Aug 09, 2014 12:29:59 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler
WARNING: EXCEPTION, please implement org.jboss.netty.handler.codec.http.HttpChunkAggregator.exceptionCaught() for proper handling.
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:127)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:644)
at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:108)
at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleDownstream(HttpClientCodec.java:97)
at org.jboss.netty.channel.Channels.connect(Channels.java:634)
at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
at io.gatling.recorder.http.handler.server.HttpServerHandler.propagateRequest(HttpServerHandler.scala:59)
at io.gatling.recorder.http.handler.server.ServerHandler.messageReceived(ServerHandler.scala:52)
at io.gatling.recorder.http.handler.server.PortUnificationServerHandler.messageReceived(PortUnificationServerHandler.scala:42)
at org.jboss.netty.handler.codec.http.HttpContentEncoder.messageReceived(HttpContentEncoder.java:81)
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.HttpServerCodec.handleUpstream(HttpServerCodec.java:56)
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:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

`

Hi John,

I checked on my machine, It seems to work for me - recorder RC2, safari, www.booker.com.

Looking at the error:
java.nio.channels.UnresolvedAddressException

This suggests that you cannot resolve www.booker.com to an IP address?

I am guessing it might not be as simple as that but currently that is all I see from this.

Can you try a couple of other things like

does it work for other sites?
run “nslookup www.booker.com” from the command prompt, or “grep booker /etc/hosts”, to determine if your machine can resolve booker to an IP address?
point safari to another proxy (eg. charles proxy) as a control test to see if it is the gatling proxy or something in the safari/system set up?
does it work on RC1 or M3?

Thanks,
Alex

I am having more of a look:

  • I do get those errors in the logs. I missed them because of a previous error which I ignored as it related to a control test I did before accessing www.booker.com. However, I haven’t noticed any error with booker.com home page.

  • I got this when accessing the login link through the recorder (works ok direct):
    (going to: https://app.secure-booker.com/App/Admin/Login.aspx)
    no error in the recorder logs.
    do you see this or something different?

Server Error in ‘/’ Application.

… it appears to work with the snapshot I had from the 24th July, but not RC1.

Will have a look to bisect which commit this evening if time.

Let me know what you find, because I could really use the recorder to tell me what is happening between my browser and their server as I navigate around. I’m trying to automate report generation.

I’ll investigate.
In the mean time, if you’re in desperate need of the Recorder, you still have to ability to create a HAR (Http ARchive) file from your navigation and export it to a Gatling simulation with the Recorder.

Cheers,

Pierre

Hi John,
This should be fixed in latest snapshot by a change from James Pickering.
http://gatling.io/docs/2.0.0-RC2/developing_gatling/building_gatling.html?highlight=snapshot

Let us know if there’s any further issues so they can be resolved before 2.0.

Thanks,
Alex