You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Aliasgar S Hararwala <al...@gmail.com> on 2007/01/04 19:34:58 UTC

No HTTP Response code returned

Hi All,

I have installed JMETER, but am unable to get response codes for the HTTP
request sampler (the Respose Code in the 'View Results Tree' listener is
'Non HTTP response code'). It throws the below error in the 'Response data'
tab

java.net.NoRouteToHostException: No route to host: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress (Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient .<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect (Unknown
Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(
HTTPSampler.java:406)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample (
HTTPSamplerBase.java:658)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
HTTPSamplerBase.java:647)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
    at java.lang.Thread.run (Unknown Source)

Additional Info:

OS: Windows XP SP2
JAVA_HOME - setup to C:\j2sdk1.4.2_13

The Internet is accessed over a Proxy server with the port no (3128)

Regards,
Ali

Re: No HTTP Response code returned

Posted by Aliasgar S Hararwala <al...@gmail.com>.
Hi All,

I have got the response to my question I should I have executed the command

jmeter -H my.proxy.server -P my.port

e.g. jmeter -H 10.209.56.23 -P 3128

This will open an instance of JMeter from which I can run my script

Thanks,
Ali


On 1/4/07, sebb <se...@gmail.com> wrote:
>
> On 04/01/07, Aliasgar S Hararwala <al...@gmail.com> wrote:
> > Hi All,
> >
> > I have installed JMETER, but am unable to get response codes for the
> HTTP
> > request sampler (the Respose Code in the 'View Results Tree' listener is
> > 'Non HTTP response code'). It throws the below error in the 'Response
> data'
> > tab
> >
> > java.net.NoRouteToHostException: No route to host: connect
>
> The above error says it all, really - not a lot JMeter can do if the
> connect fails, as it cannot then get the HTTP Response code.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


-- 
Regards,
Aliasgar

Mobile No: +91-9866130683

Re: No HTTP Response code returned

Posted by sebb <se...@gmail.com>.
On 04/01/07, Aliasgar S Hararwala <al...@gmail.com> wrote:
> Hi All,
>
> I have installed JMETER, but am unable to get response codes for the HTTP
> request sampler (the Respose Code in the 'View Results Tree' listener is
> 'Non HTTP response code'). It throws the below error in the 'Response data'
> tab
>
> java.net.NoRouteToHostException: No route to host: connect

The above error says it all, really - not a lot JMeter can do if the
connect fails, as it cannot then get the HTTP Response code.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org