jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@wamu.net>
Subject RE: Unable to get out through authenticated proxy
Date Tue, 22 Aug 2006 21:52:54 GMT
I'm using Jmeter 2.2. 

> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com] 
> Sent: Tuesday, August 22, 2006 2:33 PM
> To: JMeter Users List
> Subject: Re: Unable to get out through authenticated proxy
> 
> I think this was fixed in JMeter 2.2
> 
> On 22/08/06, Karr, David <david.karr@wamu.net> wrote:
> > I've been making progress on testing the service that runs on my 
> > localhost, but I'm also trying to test an external service, through 
> > our authenticated proxy.
> >
> > I found that the request wasn't going anywhere.  I 
> monitored it with 
> > etheral, and it never tried to hit the proxy or the 
> downstream host.  
> > I turned on all the debug levels, but the log file didn't show me 
> > anything meaningful.
> >
> > I finally thought to add a "Save results to file" 
> postprocessor.  When 
> > I inspected the file, I found this:
> >
> > java.lang.IllegalArgumentException: Host may not be null
> >         at
> > 
> org.apache.commons.httpclient.NTCredentials.<init>(NTCredentials.java:
> > 83
> > )
> >         at
> > 
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.setupConnection(H
> > TT
> > PSampler2.java:274)
> >         at
> > 
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSample
> > r2
> > .java:518)
> >         at
> > 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSam
> > pl
> > erBase.java:658)
> >         at
> > 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSam
> > pl
> > erBase.java:647)
> >         at
> > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> >         at java.lang.Thread.run(Thread.java:534)
> >
> > I looked at the code for HTTPSampler2, and it has this code:
> >
> > ------------
> >             if (PROXY_USER.length() > 0){
> >                 httpClient.getState().setProxyCredentials(
> >                     new
> > AuthScope(PROXY_HOST,PROXY_PORT,null,AuthScope.ANY_SCHEME),
> >                     // NT Includes other types of Credentials
> >                     new NTCredentials(
> >                             PROXY_USER,
> >                             PROXY_PASS,
> >                             null, // "thishost",
> >                             "" // domain
> >                 ));
> >             }
> > ------------
> >
> > I looked at the javadoc for NTCredentials, and it specifically says 
> > that the hostname cannot be null.
> >
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 

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


Mime
View raw message