jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Krishna Dara" <harid...@gmail.com>
Subject can't proxy to custom ports after upgrading to 2.3RC3
Date Thu, 16 Aug 2007 21:37:19 GMT
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)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message