jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Rafkind" <drafk...@google.com>
Subject jmeter/ssl problem
Date Mon, 30 Apr 2007 14:57:39 GMT
Hello, I am running JMeter 2.2 (with jdk1.5.0) with the following command
line:


./jmeter -n -t script.jmx -Jjmeter.save.saveservice.output_format=xml -
Jjmeter.save.saveservice.saveout=true -
Jjmeter.save.saveservice.assertion_results_failure_meassage=true -
Jjmeter.save.saveservice.data_type=true -Jjmeter.save.saveservice.label=true-
Jjmeter.save.saveservice.response_code=true -
Jjmeter.save.saveservice.response_message=true -
Jjmeter.save.saveservice.response_data=true -
Jjmeter.save.saveservice.successful=true -
Jjmeter.save.saveservice.thread_name=true -l /tmp/fo


When I look at the output logs, I see errors (see below). What could be
going on here? The script runs fine in GUI mode, just not as a command line
app. I'm not so familiar with java SSL configurations
but I have modified the jmeter.properties file slightly to point at the
correct cacerts that came with my jdk.


<httpSample t="295" lt="0" ts="1177709440596" s="false" lb="Error" rc="Non
HTTP response code" rm="Non HTTP response message" tn="
File-&gt;Open-&gt;import 1-1" dt="text">
    <responseData class="java.lang.String">java.net.SocketException:
java.security.NoSuchAlgorithmException: Error constructing impl
ementation (algorithm: Default, provider: SunJSSE, class:
com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        at javax.net.ssl.DefaultSSLSocketFactory.throwException(
SSLSocketFactory.java:179)
        at javax.net.ssl.DefaultSSLSocketFactory.createSocket(
SSLSocketFactory.java:199)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(
HttpsClient.java:365)
        at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (
AbstractDelegateHttpsURLConnection.java:170)
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect
(HttpsURLConnectionOldImpl.java:122)
        at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample (
HTTPSampler.java:406)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(
HTTPSamplerBase.java:871)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing (
HTTPSamplerBase.java:934)
        at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(
HTTPSampler.java:474)
        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(Thread.java :619)
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 (Provider.java:1245)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:147)
        at javax.net.ssl.SSLContext.getInstance (SSLContext.java:125)
        at javax.net.ssl.SSLContext.getDefault(SSLContext.java:68)
        at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java
:102)
        at com.sun.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory (
HttpsURLConnection.java:147)
        at com.sun.net.ssl.HttpsURLConnection.&lt;init&gt;(
HttpsURLConnection.java:121)
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.&lt;init&gt;(
HttpsURLConnectionOldImpl.java:61)
        at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection(
Handler.java:34)
        at
com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection(
Handler.java :30)
        at java.net.URL.openConnection(URL.java:945)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(
HTTPSampler.java:154)
        at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample (
HTTPSampler.java:404)
        ... 7 more
Caused by: java.security.PrivilegedActionException:
java.io.FileNotFoundException: /home/drafkind/.keystore (No such file or
directo
ry)
        at java.security.AccessController.doPrivileged (Native Method)
        at
com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.getDefaultKeyManager(
DefaultSSLContextImpl.java:120)
        at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.&lt;init&gt;(
DefaultSSLContextImpl.java :40)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (
DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance (Class.java:308)
        at java.security.Provider$Service.newInstance(Provider.java:1221)
        ... 20 more
Caused by: java.io.FileNotFoundException: /home/drafkind/.keystore (No such
file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:106)
        at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:66)
        at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl$2.run(
DefaultSSLContextImpl.java:123)
        at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl$2.run(
DefaultSSLContextImpl.java:121)
        ... 30 more
</responseData>
  </httpSample>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message