You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Hari Krishna Dara <ha...@gmail.com> on 2007/08/16 23:37:19 UTC

can't proxy to custom ports after upgrading to 2.3RC3

Hello,

I have been successfully using 2.2 and upgraded to 2.3RC3 to take advantage
of some new features related BSH integration, however I am no longer able to
get the proxy working while accessing my server running on custom ports.

- I start with a blank test plan.
- Add one Thread Group.
- Add HTTP Request Defaults with server: xxx and port: 8080
- Add HTTP Proxy with port running at: 8090 (and includes pattern as ".*"
and the thread group as the destination, but it doesn't really matter for
this discussion).
- Start the proxy.

In IE,
- configure the proxy server to be localhost:8090

When I access http://xxx:8080, I see a "Connection refused" exception on the
browser (pasted at the end). Some basic debugging shows that jmeter is
trying to access xxx:80 instead of xxx:8080 which is what I think is
triggering this exception. Is this a regression in this release?

NOTE: I followed the exact above steps in 2.2 and it works fine.

Thank you,
Hari

java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.Socket.connect(Socket.java:516)
    at java.net.Socket.connect(Socket.java:466)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    at sun.net.www.http.HttpClient.(HttpClient.java:214)
    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
HttpURLConnection.java:796)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(
HttpURLConnection.java:748)
    at sun.net.www.protocol.http.HttpURLConnection.connect(
HttpURLConnection.java:673)
    at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(
HTTPSampler.java:457)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
HTTPSamplerBase.java:889)
    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:163)

Re: can't proxy to custom ports after upgrading to 2.3RC3

Posted by Hari Krishna Dara <ha...@gmail.com>.
On 8/16/07, sebb <se...@gmail.com> wrote:
> Sorry, this is a known bug - try the latest nightly instead, or wait
> for the next release.

Thanks for confirming that it is a known issue. I will use the latest nightly.

 -- Hari

PS: Apologies for posting in HTML earlier.

> On 16/08/07, Hari Krishna Dara <ha...@gmail.com> wrote:
> > Hello,
> >
> > I have been successfully using 2.2 and upgraded to 2.3RC3 to take advantage
> > of some new features related BSH integration, however I am no longer able to
> > get the proxy working while accessing my server running on custom ports.
> >
> > - I start with a blank test plan.
> > - Add one Thread Group.
> > - Add HTTP Request Defaults with server: xxx and port: 8080
> > - Add HTTP Proxy with port running at: 8090 (and includes pattern as ".*"
> > and the thread group as the destination, but it doesn't really matter for
> > this discussion).
> > - Start the proxy.
> >
> > In IE,
> > - configure the proxy server to be localhost:8090
> >
> > When I access http://xxx:8080, I see a "Connection refused" exception on the
> > browser (pasted at the end). Some basic debugging shows that jmeter is
> > trying to access xxx:80 instead of xxx:8080 which is what I think is
> > triggering this exception. Is this a regression in this release?
> >
> > NOTE: I followed the exact above steps in 2.2 and it works fine.
> >
> > Thank you,
> > Hari
> >
> > java.net.ConnectException: Connection refused: connect
> >    at java.net.PlainSocketImpl.socketConnect(Native Method)
> >    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >    at java.net.Socket.connect(Socket.java:516)
> >    at java.net.Socket.connect(Socket.java:466)
> >    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> >    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
> >    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
> >    at sun.net.www.http.HttpClient.(HttpClient.java:214)
> >    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
> >    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
> >    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
> > HttpURLConnection.java:796)
> >    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(
> > HttpURLConnection.java:748)
> >    at sun.net.www.protocol.http.HttpURLConnection.connect(
> > HttpURLConnection.java:673)
> >    at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(
> > HTTPSampler.java:457)
> >    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
> > HTTPSamplerBase.java:889)
> >    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:163)
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: can't proxy to custom ports after upgrading to 2.3RC3

Posted by sebb <se...@gmail.com>.
Sorry, this is a known bug - try the latest nightly instead, or wait
for the next release.

On 16/08/07, Hari Krishna Dara <ha...@gmail.com> wrote:
> Hello,
>
> I have been successfully using 2.2 and upgraded to 2.3RC3 to take advantage
> of some new features related BSH integration, however I am no longer able to
> get the proxy working while accessing my server running on custom ports.
>
> - I start with a blank test plan.
> - Add one Thread Group.
> - Add HTTP Request Defaults with server: xxx and port: 8080
> - Add HTTP Proxy with port running at: 8090 (and includes pattern as ".*"
> and the thread group as the destination, but it doesn't really matter for
> this discussion).
> - Start the proxy.
>
> In IE,
> - configure the proxy server to be localhost:8090
>
> When I access http://xxx:8080, I see a "Connection refused" exception on the
> browser (pasted at the end). Some basic debugging shows that jmeter is
> trying to access xxx:80 instead of xxx:8080 which is what I think is
> triggering this exception. Is this a regression in this release?
>
> NOTE: I followed the exact above steps in 2.2 and it works fine.
>
> Thank you,
> Hari
>
> java.net.ConnectException: Connection refused: connect
>    at java.net.PlainSocketImpl.socketConnect(Native Method)
>    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>    at java.net.Socket.connect(Socket.java:516)
>    at java.net.Socket.connect(Socket.java:466)
>    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
>    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
>    at sun.net.www.http.HttpClient.(HttpClient.java:214)
>    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
>    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
>    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
> HttpURLConnection.java:796)
>    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(
> HttpURLConnection.java:748)
>    at sun.net.www.protocol.http.HttpURLConnection.connect(
> HttpURLConnection.java:673)
>    at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(
> HTTPSampler.java:457)
>    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
> HTTPSamplerBase.java:889)
>    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:163)
>

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