Re: [Gatling List] Getting java.net.ConnectException: Connection timed out: no further information: http://www.amazon.com/72.21.215.232:80

684 views
Skip to first unread message

Alex Bagehot

unread,
Aug 19, 2014, 10:42:21 AM8/19/14
to gat...@googlegroups.com
Hi, I am not totally clear whether you tested the connection on the gatling injector server outside of gatling eg. with wget/curl?




On Tue, Aug 19, 2014 at 1:57 PM, Artyom Hvedjuk <art....@gmail.com> wrote:
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_67]
at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source) ~[na:1.7.0_67]
at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) [netty-3.9.2.Final.jar:na]
... 8 common frames omitted
Wrapped by: java.net.ConnectException: Connection timed out: no further information : http://www.amazon.com/72.21.215.232:80 to http://www.amazon.com
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:103) ~[async-http-client-1.8.12.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:418) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:109) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.2.Final.jar:na]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.2.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_67]



I've tried running a tests on some server always got a connection timed out , that went to test it on something regular : I run the test from local machine . I can access www.amazon.com 
I can post the request with postman app , but with Gatling get this error.
These are the tests. Gatling 1.5.6 


sim1.scala :

class sim1 extends Simulation {

val httpConf = httpConfig.baseURL("http://www.amazon.com")
setUp(scn1.scn.users(1).ramp(5).protocolConfig(httpConf))
}


scn1.scala :

object scn1  {
val pauseTime= 1
val scn = scenario("Scenario 1")
.exec(http("run_content_match_GET")
.get("/"))
}

And still get this error , any idea why it could happen ? 

Thanks in advance ! 


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sa

unread,
Aug 21, 2014, 5:51:28 PM8/21/14
to gat...@googlegroups.com
There might be a proxy setup from remote machine. If there is


val httpConf = http
.baseURL(baseUrl)
.proxy(Proxy("sample.com", 8080).httpsPort(8080))
Reply all
Reply to author
Forward
0 new messages