You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Daniel Wilson <dw...@yearcap.com> on 2014/07/26 15:43:32 UTC

Error reading key store on Windows

In order to get the key store into an area in which I have write rights, I
have added this to my system.properties file:
proxy.cert.directory="d:\"

*jmeter.protocol.http.proxy.ProxyControl: Could not open/read key store
"d:"\proxyserver.jks (The filename, directory name, or volume label syntax
is incorrect) *

I've tried several different paths with the same result.

I'm running JRE 7 and have set the JAVA_HOME to point to it from within
jmeter.bat.  I have also added the java/bin folder to the PATH in that
batch file.


set JAVA_HOME="c:\program files\java\jre7"
set PATH=%PATH%;%JAVA_HOME%\bin

Can you tell what I'm doing wrong?  thanks!

Re: Error reading key store on Windows

Posted by Daniel Wilson <dw...@yearcap.com>.
The quotes were the problem.  I'd tried both \ and / but didn't think to
omit the quotes.  Unfortunately I could find no example of the use of this
property as a guide ... and java is not my strongest language.

Thanks!


On Sun, Jul 27, 2014 at 8:09 AM, Shmuel Krakower <sh...@gmail.com> wrote:

> BTW I simply use jks from current working Dir so I don't have to deal with
> paths. Especially as the same script is used from different servers, OS,
> users and paths..
>
> www.beatsoo.org - free application performance monitoring from world wide
> locations.
> On Jul 27, 2014 1:45 PM, "sebb" <se...@gmail.com> wrote:
>
> > On 26 July 2014 14:43, Daniel Wilson <dw...@yearcap.com> wrote:
> > > In order to get the key store into an area in which I have write
> rights,
> > I
> > > have added this to my system.properties file:
> > > proxy.cert.directory="d:\"
> >
> > Why did you add quotes?
> >
> > >
> > > *jmeter.protocol.http.proxy.ProxyControl: Could not open/read key store
> > > "d:"\proxyserver.jks (The filename, directory name, or volume label
> > syntax
> > > is incorrect) *
> >
> > Note that the path contains quotes...
> >
> > > I've tried several different paths with the same result.
> > >
> > > I'm running JRE 7 and have set the JAVA_HOME to point to it from within
> > > jmeter.bat.  I have also added the java/bin folder to the PATH in that
> > > batch file.
> > >
> > >
> > > set JAVA_HOME="c:\program files\java\jre7"
> > > set PATH=%PATH%;%JAVA_HOME%\bin
> > >
> > > Can you tell what I'm doing wrong?  thanks!
> >
> > Although "\" is the Windows path segment separator, it is also the
> > escape character used in Java strings.
> > The Windows JVM will happily use "/" instead of "\", so that is
> > another thing to try.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>

Re: Error reading key store on Windows

Posted by Shmuel Krakower <sh...@gmail.com>.
BTW I simply use jks from current working Dir so I don't have to deal with
paths. Especially as the same script is used from different servers, OS,
users and paths..

www.beatsoo.org - free application performance monitoring from world wide
locations.
On Jul 27, 2014 1:45 PM, "sebb" <se...@gmail.com> wrote:

> On 26 July 2014 14:43, Daniel Wilson <dw...@yearcap.com> wrote:
> > In order to get the key store into an area in which I have write rights,
> I
> > have added this to my system.properties file:
> > proxy.cert.directory="d:\"
>
> Why did you add quotes?
>
> >
> > *jmeter.protocol.http.proxy.ProxyControl: Could not open/read key store
> > "d:"\proxyserver.jks (The filename, directory name, or volume label
> syntax
> > is incorrect) *
>
> Note that the path contains quotes...
>
> > I've tried several different paths with the same result.
> >
> > I'm running JRE 7 and have set the JAVA_HOME to point to it from within
> > jmeter.bat.  I have also added the java/bin folder to the PATH in that
> > batch file.
> >
> >
> > set JAVA_HOME="c:\program files\java\jre7"
> > set PATH=%PATH%;%JAVA_HOME%\bin
> >
> > Can you tell what I'm doing wrong?  thanks!
>
> Although "\" is the Windows path segment separator, it is also the
> escape character used in Java strings.
> The Windows JVM will happily use "/" instead of "\", so that is
> another thing to try.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: Error reading key store on Windows

Posted by sebb <se...@gmail.com>.
On 26 July 2014 14:43, Daniel Wilson <dw...@yearcap.com> wrote:
> In order to get the key store into an area in which I have write rights, I
> have added this to my system.properties file:
> proxy.cert.directory="d:\"

Why did you add quotes?

>
> *jmeter.protocol.http.proxy.ProxyControl: Could not open/read key store
> "d:"\proxyserver.jks (The filename, directory name, or volume label syntax
> is incorrect) *

Note that the path contains quotes...

> I've tried several different paths with the same result.
>
> I'm running JRE 7 and have set the JAVA_HOME to point to it from within
> jmeter.bat.  I have also added the java/bin folder to the PATH in that
> batch file.
>
>
> set JAVA_HOME="c:\program files\java\jre7"
> set PATH=%PATH%;%JAVA_HOME%\bin
>
> Can you tell what I'm doing wrong?  thanks!

Although "\" is the Windows path segment separator, it is also the
escape character used in Java strings.
The Windows JVM will happily use "/" instead of "\", so that is
another thing to try.

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