Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 851A61035D for ; Sat, 22 Feb 2014 11:11:33 +0000 (UTC) Received: (qmail 77489 invoked by uid 500); 22 Feb 2014 11:11:32 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 77255 invoked by uid 500); 22 Feb 2014 11:11:32 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 77246 invoked by uid 99); 22 Feb 2014 11:11:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Feb 2014 11:11:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 74.125.82.46 as permitted sender) Received: from [74.125.82.46] (HELO mail-wg0-f46.google.com) (74.125.82.46) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Feb 2014 11:11:25 +0000 Received: by mail-wg0-f46.google.com with SMTP id x13so3244412wgg.25 for ; Sat, 22 Feb 2014 03:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/+fBrLg23EVrQInMNA8MXccbmDWMy6U+Vp8DMDUdRv0=; b=GCmF7aC2PcfFRj+gTeEDPjIpQtM+OHPA14hkda2sMzkBpl9Q4GNX8/azLSU+XK6gTK 9m8RP60kQzmb9hJk+pskXOzwNcYR0oYtAuWS68gMeogXDDOcQN5Lf1nxpNiAI6xtMegw SXszpyjWCrEp01C0AIUQ3AYPyz0rwDSBHDLmHw2vpNyohpT4/ZTy3CDmUEntDdOvu7Gp NDh2flNimIZXFbyv8VZb34SqdiQzn6xt2cj7SQ3IFXfMxkbqFq5vSsq1prbXEKtlODAM /R/wmtXiCGtcfiY2KiFUOiiX0KvCpYwNCrNolyQ5fKeGsiSPhcX0RGrz5nRc18mf1lzk ChUw== MIME-Version: 1.0 X-Received: by 10.194.82.69 with SMTP id g5mr10959939wjy.85.1393067465165; Sat, 22 Feb 2014 03:11:05 -0800 (PST) Received: by 10.194.86.198 with HTTP; Sat, 22 Feb 2014 03:11:05 -0800 (PST) In-Reply-To: References: Date: Sat, 22 Feb 2014 11:11:05 +0000 Message-ID: Subject: Re: Using HTTP Script Recorder on JMeter 2.10 and 2.11 on Darwin From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 21 February 2014 01:51, sebb wrote: > On 21 February 2014 01:25, S L wrote: >> Hi, >> I'm having trouble starting a proxy server for jmeter 2.10 and 2.11. I >> found a couple links on stack overflow and apache.org on this issue but my >> error message is slightly different that what's written on these links. >> Per the wiki from apache.org, I don't think I have trouble finding >> `keytool` because it returns the path when I do a >> >> $ which keytool >> /usr/bin/keytool >> >> and I don't have trouble creating a file in the jmeter-210 and >> jmeter-211/bin dirs. This is the error message I get in my jmeter.log file: >> >> ERROR - jmeter.protocol.http.proxy.ProxyControl: Could not initialise key >> store java.io.IOException: Command :'"keytool" "-genkeypair" "-alias" >> ":root_ca:" "-dname" "CN=_ DO NOT INSTALL unless this is your certificate >> (JMeter root CA), OU=Username: COMPANY\user.name, C=US" "-keyalg" "RSA" >> "-keystore" "proxyserver.jks" "-storepass" "randomstr1" "-keypass" >> "randomstr1" "-validity" "7" "-ext" "bc:c"' failed, code: 1 >> keytool error: java.io.IOException: Invalid escaped character in AVA: 's' >> >> I don't know what this "invalid escaped char in AVA" is. My company and >> username don't have the string "AVA" and I didn't find it in any of the >> property files in jmeter-21x/bin. > > I suspect it might be in the string "COMPANY\user.name" which is > derived from the Java system property "user.name". > You could try redefining it on the command line (or in > system.properties) to something simpler, for example: > > -Duser.name=foobar The issue is the format of the OU part of the distinguished name. When provided to keytool on the command-line via the -dname parameter, certain characters are not allowed unless they are escaped. For example, a bare comma is not allowed, as it separates parts of the dname. I'll create a Bugzilla for this. The work-round in the meantime is to simplify the user.name as already noted above. >> Not sure if this is affecting it but I'm running jmeter from Darwin on a >> MBP, OSX 10.7.5. >> JMeter 2.9 doesn't give me any proxy issues, although, I ran into other >> issues with it, which is why I tried using these 2 newer versions, which >> are giving me problems with the proxy server. I'll try going down to 2.8 >> to see what happens but I'd rather not if I can help it. That and I'm >> super curious what the issue is with 2.1x and my laptop. Thanks in advance >> for your help. >> >> Links I found: >> http://stackoverflow.com/questions/19550472/jmeter-2-10-http-recorder-throws-keytool-exception >> https://wiki.apache.org/jmeter/TestRecording210 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org