jakarta-jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MCMURTRIE, Dion" <Dion.McMURT...@suncorp.com.au>
Subject RE: Problems with proxy server and redirection
Date Fri, 02 Aug 2002 01:30:03 GMT
Sorry I should have mentioned that. I downloaded from
.7.zip>  but when I click Help->About Apache JMeter it identifies itself as
Apache JMeter Version1.7Beta3. There was a
.7Beta3.zip> , but that was not the one that I downloaded...not sure why it
says that it is Apache JMeter Version1.7Beta3.

The really odd thing is that up to yesterday afternoon I could not get it to
work. I ran it this morning before sending this email, and it now works. I
can't explain it. Perhaps some environmental changes that I am unaware of to
do with our proxy and firewalls? Historically what was it that caused the
redirection errors in JMeter?

On the proxy authentication thing, I just created a class I called
ProxyAuthenticator (see attached) that subclassed java.net.Authenticator.
Then I modified (the benefit of opensource products) the class that the
jmeter.bat file was running (may/may not have been the right place, but I
just wanted to see it work) org.apache.jmeter.NewDriver so that it
constructed an instance of my ProxyAuthenticator class and then called set
it as the default authenticator. See the attached modified NewDriver file
for exact implementation. Finally I modified jmeter.bat to pass in my values
as system properties because it was the easiest thing to do at the time. All
are attached if you want to have a look.

If it is true that there is no mechanism for Proxy Authentication in JMeter
(I'll take your word for it since I see you wrote the NewDriver class) it
would be a really good feature to add. Most big corporations (and even
smaller ones) have environments where it is necessary to sidestep firewalls
and proxy servers. For us there is a firewall and proxy between us and our
development and testing regions.

BTW thanks for the fast response...

 <<jmeter.bat>>  <<NewDriver.java>>  <<ProxyAuthenticator.java>>

	-----Original Message-----
	From:	Mike Stover [SMTP:mstover_ya@yahoo.com]
	Sent:	Thursday, August 01, 2002 10:13 PM
	To:	JMeter Users List; MCMURTRIE, Dion
	Subject:	Re: Problems with proxy server and redirection

	Two things:

	Which version of JMeter are you running?  The
	redirection problems have been fixed in the most
	recent version.

	I'd like to see your authentication solution -
	JMeter's proxy doesn't account for proxy

	--- "MCMURTRIE, Dion" <Dion.McMURTRIE@suncorp.com.au>
	> I'm trying to get jMeter to work in my work
	> environment and having quite a
	> bit of trouble.
	> Firstly access to the web site that I wish to test
	> using jMeter is behind a
	> firewall via a proxy server. I saw that proxy server
	> and port options could
	> be specified to the jmeter.bat file and did that,
	> but I received a 407 http
	> error "Proxy authentication required".
	> I could not find anywhere to put my proxy
	> authentication information into
	> jMeter so I hacked the class started by the
	> jmeter.bat file just so that I
	> could keep going until I found the right way to set
	> the proxy authentication
	> information. The thing that I added was a subclass
	> of java.net.Authenticator
	> that would authenticate to my proxy for me. That
	> seemed to work for me, but
	> does anyone know the correct jMeter way to set up
	> proxy Authentication?
	> Anyway that seemed to get me past the proxy
	> authentication although a little
	> hacky, and now I am getting the following exception
	> whenever I request a url
	> (for example http://www.mgcars.org.uk/index.html
	> <http://www.mgcars.org.uk/index.html> ) - 
	> java.net.ProtocolException: Server redirected too
	> many times (5)
	>         at
	> .java:556)
	>         at
	> ion.java:814)
	>         at
	> TPSampler.java:502)
	>         at
	> 442)
	>         at
	> 164)
	>         at
	>         at java.lang.Thread.run(Thread.java:484)
	> Does anyone know the cause of this and if it can be
	> fixed? I have tried
	> calling a number of different URLs and the result is
	> always the same.
	> Any help much appreciated.
	> Thanks,
	> Dion.
	> The contents of this message are the views of the
	> Author and do not necessarily reflect the views of
	> SUNCORP METWAY LTD  ABN 66 010 831 722. 
	> The content of this e-mail, including attachments is
	> a confidential communication between the Suncorp
	> Metway Group and the intended addressee. Any
	> unauthorised use of the contents is expressly
	> prohibited. If you have received this e-mail in
	> error please contact the sender immediately and then
	> delete the message and any attachment(s).
	> http://www.suncorp.com.au
	> --
	> To unsubscribe, e-mail:  
	> <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
	> For additional commands, e-mail:
	> <mailto:jmeter-user-help@jakarta.apache.org>

	Mike Stover
	Apache JMeter developer

	Contact Info:
	Email: mstover1@apache.org
	Yahoo Instant Messenger: mstover_ya
	ICQ: 152975688

	Do You Yahoo!?
	Yahoo! Health - Feel better, live better

View raw message