|
|
|
Can you tell me how exactly your env is configured ( client, jmeter, server ) ? I'll try to reproduce the same situation.
The client is generated with xfire and uses the same JDK as the server: jdk150_b6
JMeter Version is 2.2. The server (tomcat 5.5.20) is listening on localhost port 8080 As stated above, I just implemented the proxy feature for jmeter on thursday and If you can tell me in which part of the code the decision to use a proxy or not is taken, The problem can be caused by new code used to determine noproxyhosts :/ you can take a look at CommonsHttpMessageSender class. Maybe try to build xfire-core and xfire-java5 modules from svn and see if anything is fixed. If not, in CommonsHttpMessageSender there is variable useProxyUtils, set it to false and see if it helps.
The following code
Method method = clazz.getDeclaredMethod("isNonProxyHost", new Class[]{String.class}); returns true in any of the above configurations b), c). The call to ps.select(uri); in ProxyUtils returns a a list with a single entry [Direct]. As I am in a debugging Environment, my server, client and proxy are all on localhost. A patch could be to check if server and proxy are on the same host and to ignore the result ProxyUtils.isNonProxyHost String proxyHost = System.getProperty("http.proxyHost", ""); By the way: One last question I have solved my problem with a workaround and a modified version of ProxyUtils.java Fixes problem when server and proxy are on the same host.
JVM-Args: -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8081 Fixed in svn.
No you can disable proxyUtils by setting CommonsHttpMessageSender.DISABLE_PROXY_UTILS client property to "true", then all host will be marked as proxied. You can also specify your own implementation of proxyUtils with CommonsHttpMessageSender.PROXY_UTILS_CLASS like client.setProperty(CommonsHttpMessageSender.PROXY_UTILS_CLASS ,"my.custom.proxy.utils"); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I have been using a proxy for debugging and performance analysis with jmeter.
I am using a jdk150_b6 and a tomcat 5.5.20
So far I have used the code above to configure the proxy but after the upgrade neither method seems to work.
The client always ignores any proxy settings
a) works with 1.2.3, broken with 1.2.4
MySoap client = stub.getMySoap();
Client http = ((XFireProxy) Proxy.getInvocationHandler(client)).getClient();
http.setProperty(CommonsHttpMessageSender.HTTP_PROXY_HOST, "localhost");
http.setProperty(CommonsHttpMessageSender.HTTP_PROXY_PORT, "8080");
b) did not work on any version (1.2.3, 1.2.4)
-Dhttp.proxyHost=localhost
-Dhttp.proxyPort=8081
-Dhttp.nonProxyHosts=
b) did not work on any version (1.2.3, 1.2.4)
-Dhttp.proxyHost=localhost
-Dhttp.proxyPort=8081