MCMURTRIE, Dion | 1 Aug 2002 08:08
Picon
Favicon

Problems with proxy server and redirection

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
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:556)
        at
sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnect
ion.java:814)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.saveConnectionCookies(HT
TPSampler.java:502)
(Continue reading)

MCMURTRIE, Dion | 2 Aug 2002 03:30
Picon
Favicon

RE: Problems with proxy server and redirection

Sorry I should have mentioned that. I downloaded from
http://jakarta.apache.org/builds/jakarta-jmeter/release/v1.7/ApacheJMeter_1.
7.zip
<http://jakarta.apache.org/builds/jakarta-jmeter/release/v1.7/ApacheJMeter_1
.7.zip>  but when I click Help->About Apache JMeter it identifies itself as
Apache JMeter Version1.7Beta3. There was a
http://jakarta.apache.org/builds/jakarta-jmeter/release/v1.7/ApacheJMeter_1.
7Beta3.zip
<http://jakarta.apache.org/builds/jakarta-jmeter/release/v1.7/ApacheJMeter_1
.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
(Continue reading)

MCMURTRIE, Dion | 2 Aug 2002 05:01
Picon
Favicon

RE: Problems with proxy server and redirection

Apologies to all those who had this email blocked by their content and virus
checkers, I really should have thought of that with a .bat attachment.

Here is the java source files as attachments and the .bat file contents as
plain text below -
set LOG4JCONFIG=log4j.configuration=log4j.conf
set HOST=
set PORT=
IF "%1" == "-f" set PROP=%2
IF "%1" == "-h" set HOST=-Dhttp.proxyHost=%2 -Dhttps.proxyHost=%2
IF "%1" == "-p" set PORT=-Dhttp.proxyPort=%2 -Dhttps.proxyPort=%2
IF "%1" == "-u" set USER=-Dproxy.authentication.username=%2
IF "%1" == "-w" set PASS=-Dproxy.authentication.password=%2
IF "%3" == "-f" set PROP=%4
IF "%3" == "-h" set HOST=-Dhttp.proxyHost=%4 -Dhttps.proxyHost=%4
IF "%3" == "-p" set PORT=-Dhttp.proxyPort=%4 -Dhttps.proxyPort=%4
IF "%3" == "-u" set USER=-Dproxy.authentication.username=%4
IF "%3" == "-w" set PASS=-Dproxy.authentication.password=%4
IF "%5" == "-f" set PROP=%6
IF "%5" == "-h" set HOST=-Dhttp.proxyHost=%6 -Dhttps.proxyHost=%6
IF "%5" == "-p" set PORT=-Dhttp.proxyPort=%6 -Dhttps.proxyPort=%6
IF "%5" == "-u" set USER=-Dproxy.authentication.username=%6
IF "%5" == "-w" set PASS=-Dproxy.authentication.password=%6
IF "%7" == "-f" set PROP=%8
IF "%7" == "-h" set HOST=-Dhttp.proxyHost=%8 -Dhttps.proxyHost=%8
IF "%7" == "-p" set PORT=-Dhttp.proxyPort=%8 -Dhttps.proxyPort=%8
IF "%7" == "-u" set USER=-Dproxy.authentication.username=%8
IF "%7" == "-w" set PASS=-Dproxy.authentication.password=%8
IF "%9" == "-f" set PROP=%10
IF "%9" == "-h" set HOST=-Dhttp.proxyHost=%10 -Dhttps.proxyHost=%10
(Continue reading)

Mike Stover | 2 Aug 2002 16:17
Picon
Favicon

Re: How can I generating dynamic Post data

it sounds like you could make use of either the User Parameter Modifier or the HTML 
Parameter Mask Modifier.  Under the "Modifier" menu.  

-Mike

On 30 Jul 2002 at 9:30, KETTERER,MARKUS (HP-Germany,ex1) wrote:

> Hi all,
> 
> in my load test I want to send different form data for each virtual client
> by Post. Does someone know how I can create dynamic Post data or get the
> data from a file?
> I am testing an application with EJBs, but when if each virtual client
> accesses the same EJB all the time, it is cached by the application server.
> For example, I am accessing and creating customer EJBs. Is it possible to
> have a dynamic thread which creates customer_1 in the first cycle,
> customer_2 in the next cycle and so on. This way I could prevent the
> caching.
> 
> Can someone send me a small example?
> 
> Thanks
> 
> Best regards
> Markus Ketterer
> 
> --
> To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe <at> jakarta.apache.org>
> For additional commands, e-mail: <mailto:jmeter-user-help <at> jakarta.apache.org>
> 
(Continue reading)

Chris Wopat | 2 Aug 2002 17:32

RE: How can I generating dynamic Post data

Hmm, I'm unable to get to the modifier menu, as it's always grayed out in my
modification controller (and other controllers Ive tested). What are they to
be nested in?

thanks,
Chris

-----Original Message-----
From: Mike Stover [mailto:mstover1 <at> apache.org]
Sent: Friday, August 02, 2002 9:17 AM
To: 'jmeter-user <at> jakarta.apache.org'
Subject: Re: How can I generating dynamic Post data

it sounds like you could make use of either the User Parameter Modifier or
the HTML 
Parameter Mask Modifier.  Under the "Modifier" menu.  

-Mike

On 30 Jul 2002 at 9:30, KETTERER,MARKUS (HP-Germany,ex1) wrote:

> Hi all,
> 
> in my load test I want to send different form data for each virtual client
> by Post. Does someone know how I can create dynamic Post data or get the
> data from a file?
> I am testing an application with EJBs, but when if each virtual client
> accesses the same EJB all the time, it is cached by the application
server.
> For example, I am accessing and creating customer EJBs. Is it possible to
(Continue reading)

Chuck.R.Irvine | 2 Aug 2002 22:54
Picon

EJB Load Testing Support?

I'd like to do load testing of an EJB application, i.e. set of session 
beans, and am wondering to what extent this might be supported in 
JMeter. I've looked at the mailing list archives, and have seen people 
ask about this, but I haven't seen any replies. Any relevant information 
or pointers are greatly appreciated. Thanks

Chuck Irvine
Sprint
Mike Stover | 2 Aug 2002 23:12
Picon
Favicon

Re: EJB Load Testing Support?

Support for direct EJB testing was created at one point, but the person who wrote 
it never quite finished.  Anyone who wanted to do so would have to write their own 
extensions to JMeter.  I'm willing to assist in explaining the basics of how to do that 
to anyone interested.

-Mike

On 2 Aug 2002 at 15:54, Chuck.R.Irvine <at> mail.sprint.com wrote:

> I'd like to do load testing of an EJB application, i.e. set of session 
> beans, and am wondering to what extent this might be supported in 
> JMeter. I've looked at the mailing list archives, and have seen people 
> ask about this, but I haven't seen any replies. Any relevant information 
> or pointers are greatly appreciated. Thanks
> 
> Chuck Irvine
> Sprint
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe <at> jakarta.apache.org>
> For additional commands, e-mail: <mailto:jmeter-user-help <at> jakarta.apache.org>
> 

--
Michael Stover
mstover1 <at> apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
(Continue reading)

Chuck.R.Irvine | 2 Aug 2002 23:24
Picon

RE: EJB Load Testing Support?

Before I embark on such a task, it would be helpful to get a rough 
guesstimate on how long it would take me. I am an experienced Java 
developer, but am new to JMeter. Are we talking about hours, days, 
weeks, months...? 

I would also be interested to know if there are multiple ways to do 
this, i.e. the "right way", "quick and dirty", etc.

Thanks!

Chuck

-----Original Message-----
From: mstover1 [mailto:mstover1 <at> apache.org]
Sent: Friday, August 02, 2002 4:12 PM
To: Chuck.R.Irvine; jmeter-user
Subject: Re: EJB Load Testing Support?

Support for direct EJB testing was created at one point, but the person 
who wrote 
it never quite finished.  Anyone who wanted to do so would have to write 
their own 
extensions to JMeter.  I'm willing to assist in explaining the basics of 
how to do that 
to anyone interested.

-Mike

On 2 Aug 2002 at 15:54, Chuck.R.Irvine <at> mail.sprint.com wrote:

(Continue reading)

Chris Wopat | 5 Aug 2002 17:19

1.7.2 startup (or not)

While working on another issue, it was suggested that I use the
1.7.2-unstable to have the latest features. I'm unable to get it to run on
both a Linux box AND a Win2k box:

Linux:

./jmeter 
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
        at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:117)

Win2k (echo turned ON, this it he command it sends when running jmeter.bat):
c:\jakarta-jmeter\bin>java -Xincgc -jar ApacheJMeter.jar
Exception in thread "main" java.lang.ExceptionInInitializerError: 
java.lang.NullPointerException
        at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:117)

This is all from ApacheJMeter_1.7.2.tar.gz

Thanks,
Chris
Mike Stover | 5 Aug 2002 19:00
Picon
Favicon

Re: 1.7.2 startup (or not)

You didn't mention which JDK you were using.  

-Mike

On 5 Aug 2002 at 10:19, Chris Wopat wrote:

> While working on another issue, it was suggested that I use the
> 1.7.2-unstable to have the latest features. I'm unable to get it to run on
> both a Linux box AND a Win2k box:
> 
> Linux:
> 
> ./jmeter 
> Exception in thread "main" java.lang.ExceptionInInitializerError:
> java.lang.NullPointerException
>         at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:117)
> 
> Win2k (echo turned ON, this it he command it sends when running jmeter.bat):
> c:\jakarta-jmeter\bin>java -Xincgc -jar ApacheJMeter.jar
> Exception in thread "main" java.lang.ExceptionInInitializerError: 
> java.lang.NullPointerException
>         at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:117)
> 
> This is all from ApacheJMeter_1.7.2.tar.gz
> 
> Thanks,
> Chris
> 
> --
> To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe <at> jakarta.apache.org>
(Continue reading)


Gmane