On 06/07/07, smithas <[EMAIL PROTECTED]> wrote:

Hi,

I have created some scripts for HTTPS website. I am using default SSL
certificate  provided by sun . It works in JMeter UI mode once I enter the
default password. But when I tried to run the same script in command line ,
It failed .

Do you mean you entered the password in the "Keystore Password" dialogue box?

If so, then you need to provide the password in the jmeter.properties
file for non-GUI mode:

javax.net.ssl.keyStorePassword=password

command :jmeter -n -t analytics_home.jmx -l log.jtl

Error message I am seeing is the .keystore file cannot be found. Can any one

That can be ignored in JMeter 2.2

please tell me where and How to set the SSL certificate path correctly to
make it run from command line.

error message from one of the response files

java.net.SocketException: java.security.NoSuchAlgorithmException: Error
constructing implementation (algorithm: Default, provider: SunJSSE, class:
com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
       at javax.net.ssl.DefaultSSLSocketFactory.throwException(Unknown Source)
       at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
       at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
       at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
       at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(Unknown
Source)
       at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:406)
       at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
       at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
       at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
       at java.lang.Thread.run(Unknown Source)
Caused by: java.security.NoSuchAlgorithmException: Error constructing
implementation (algorithm: Default, provider: SunJSSE, class:
com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
       at java.security.Provider$Service.newInstance(Unknown Source)
       at sun.security.jca.GetInstance.getInstance(Unknown Source)
       at sun.security.jca.GetInstance.getInstance(Unknown Source)
       at javax.net.ssl.SSLContext.getInstance(Unknown Source)
       at javax.net.ssl.SSLContext.getDefault(Unknown Source)
       at javax.net.ssl.SSLSocketFactory.getDefault(Unknown Source)
       at com.sun.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(Unknown
Source)
       at com.sun.net.ssl.HttpsURLConnection.<init>(Unknown Source)
       at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.<init>(Unknown
Source)
       at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection(Unknown
Source)
       at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection(Unknown
Source)
       at java.net.URL.openConnection(Unknown Source)
       at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:154)
       at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
       ... 4 more
Caused by: java.security.PrivilegedActionException:
java.io.FileNotFoundException: C:\Documents and Settings\smithas\.keystore
(The system cannot find the file specified)
       at java.security.AccessController.doPrivileged(Native Method)
       at
com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.getDefaultKeyManager(Unknown
Source)
       at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.<init>(Unknown
Source)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at java.lang.Class.newInstance0(Unknown Source)
       at java.lang.Class.newInstance(Unknown Source)
       ... 18 more
Caused by: java.io.FileNotFoundException: C:\Documents and
Settings\smithas\.keystore (The system cannot find the file specified)
       at java.io.FileInputStream.open(Native Method)
       at java.io.FileInputStream.<init>(Unknown Source)
       at java.io.FileInputStream.<init>(Unknown Source)
       at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl$2.run(Unknown 
Source)
       at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl$2.run(Unknown 
Source)
--
View this message in context: 
http://www.nabble.com/SSL-not-found-error-when-running-in-command-line-mode-tf4037108.html#a11469489
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to