Does anyone know if there is a problem with running HTTPS requests through JMeter when
not using the GUI client. I have gotten SSL to work with GUI client, but when I try
to use the -n option in starting JMeter, I get the following exception, which in turn
causes all of my HTTPS requests to return null pointer exceptions.
Thread Thread Group-1 started
KeyStore Type: JKS
java.lang.reflect.InvocationTargetException
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:274)
at org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:254)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:530)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:867)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:121)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.IllegalStateException: SSLContextImpl is not initialized
at
com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(DashoA6275)
at javax.net.ssl.SSLContext.getSocketFactory(DashoA6275)
at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(DashoA6275)
at com.sun.net.ssl.SSLContext.getSocketFactory(DashoA6275)
at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:212)
at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:131)
... 10 more
Does anyone know the trick to getting the SSL Cert Store initialized in NonGUI mode?
thanks in advance,
Dave
_____
David R. Anderson
Technical Architect
10340 Viking Drive Suite 125
Eden Prairie, MN 55344 P: 952.940.8278 x27
F: 952.941.4597 [EMAIL PROTECTED]
www.notiva.com <http://www.notiva.com/>
_____
Notiva-optimizing trade relationships.(tm)
_____