Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 77935 invoked from network); 22 Aug 2006 21:32:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2006 21:32:53 -0000 Received: (qmail 67718 invoked by uid 500); 22 Aug 2006 21:32:53 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 67198 invoked by uid 500); 22 Aug 2006 21:32:52 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 67187 invoked by uid 99); 22 Aug 2006 21:32:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 14:32:52 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.162.192 as permitted sender) Received: from [64.233.162.192] (HELO nz-out-0102.google.com) (64.233.162.192) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 14:32:51 -0700 Received: by nz-out-0102.google.com with SMTP id o1so1131117nzf for ; Tue, 22 Aug 2006 14:32:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gN6E2gEeijOzD7tEnE41ErQThRQC9stM6bYXKYbbiAsWjweUFpMk+X/nUG/ATVDtzFNAeE/sCqk/fWhOo7qXIDdv/0D4C8umszPwgbfUdRByVRyFI5ZWp7sfEgyM2h5DpvxG4s9LqSwFZxb7XTSN1gTAlMk5c3hDx8OTKvDCCdY= Received: by 10.35.78.13 with SMTP id f13mr16397687pyl; Tue, 22 Aug 2006 14:32:30 -0700 (PDT) Received: by 10.35.28.20 with HTTP; Tue, 22 Aug 2006 14:32:30 -0700 (PDT) Message-ID: <25aac9fc0608221432we280ed4w9a5081ccc66e82c1@mail.gmail.com> Date: Tue, 22 Aug 2006 22:32:30 +0100 From: sebb To: "JMeter Users List" Subject: Re: Unable to get out through authenticated proxy In-Reply-To: <0C260F619E428642BFA6380177C3ADF30410D890@exmsea005.us.wamu.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0C260F619E428642BFA6380177C3ADF30410D890@exmsea005.us.wamu.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think this was fixed in JMeter 2.2 On 22/08/06, Karr, David 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.(NTCredentials.java:83 > ) > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler2.setupConnection(HTT > PSampler2.java:274) > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2 > .java:518) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl > erBase.java:658) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl > 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