You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Tarun Bhaduria <bh...@yahoo-inc.com> on 2010/09/08 13:32:36 UTC

Using JMeter + Maven with https protocol

Hello All,

I have been trying hard to make https request work with JMeter+Maven.
Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)

I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"

Now when I execute the test form Maven I encounter following exception JMeter log -

    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
                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)

     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
                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)

One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem

Have u guys ever been able to execute test successfully on https using JMeter+Maven

Thanks in advance
Tarun K

RE: Using JMeter + Maven with https protocol

Posted by Tarun Bhaduria <bh...@yahoo-inc.com>.
I had a look at xml file which is generated after tests and pushed in to "jmeter-reports" folder under "target" folder. Most of its lines say - 
"<httpSample t="78" lt="0" ts="1283963419756" s="false" lb="/" rc="Non HTTP response code" rm="Non HTTP response message" tn="Thread Group 1-1" dt="text"/>"

The very first sample is https in the JMeter Test Plan...
I find it more surprising because I don't encounter any exception when I execute test from JMeter itself!
These exception are encountered only when I execute the JMeter test from maven.

-----Original Message-----
From: Tarun Bhaduria 
Sent: Wednesday, September 08, 2010 9:26 PM
To: JMeter Users List
Subject: RE: Using JMeter + Maven with https protocol

Sorry missed the basic etiquettes.......

Maven - 2.1.0
JMeter - 2.4
JMeter Maven plug-in - 1.0

As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip

Thanks for quick response
Tarun K


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, September 08, 2010 5:17 PM
To: JMeter Users List
Subject: Re: Using JMeter + Maven with https protocol

On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> Hello All,
>
> I have been trying hard to make https request work with JMeter+Maven.

Which version of Maven?
Which version of JMeter?
Which version of JMeter Maven plugin?

> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>
> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>
> Now when I execute the test form Maven I encounter following exception JMeter log -
>
>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>                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)
>
>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>                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)
>
> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>
> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>
> Thanks in advance
> Tarun K
>

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


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


Re: Using JMeter + Maven with https protocol

Posted by sebb <se...@gmail.com>.
On 11 September 2010 18:57, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> I had a look at my JMeter dir and got to see "ApacheJMeter.jar" but I don't think it is same jmeter.jar which I need as ApacheJMeter.jar seems to be having really less number of classes than jmeter.jar
>
> Now where could I get jmeter.jar file from? or how could I build myself?

These are questions for the developers of the JMeter Maven plugin.

> Thanks
> ~ T
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, September 09, 2010 9:32 PM
> To: JMeter Users List
> Subject: Re: Using JMeter + Maven with https protocol
>
> On 9 September 2010 16:48, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>> I stumbled upon this - http://www.jajakarta.org/jmeter/1.5.1/en/running.html which speaks of using JSSE for JMeter.
>
> That is not the official JMeter documentation, and is seriously out of
> date. JMeter is now at 2.4, whereas that documents 1.5.1.
> The current documentation is at:
>
> http://jakarta.apache.org/jmeter/usermanual/index.html
>
>> I am using java 1.6 and get to see "jsse.jar" in jre/lib folder. I have also set JMeter properties - "ssl.provider=com.sun.net.ssl.internal.ssl.Provider" but I still come across this problem. I am afraid that probably my JMeter properties file is not being considered......
>
> Java 1.6 already includes JSSE, and you don't need to set any
> properties to use SSL.
>
> I think the problem is that the Maven JMeter plugin is rather out of date.
>
> I suggest you contact the plugin author.
>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Wednesday, September 08, 2010 10:44 PM
>> To: JMeter Users List
>> Subject: Re: Using JMeter + Maven with https protocol
>>
>> On 8 September 2010 16:56, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>>> Sorry missed the basic etiquettes.......
>>>
>>> Maven - 2.1.0
>>> JMeter - 2.4
>>
>> Probably not ...
>>
>>> JMeter Maven plug-in - 1.0
>>>
>>> As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip
>>
>> Which appears to contain JMeter 2.2, which is very out of date (class
>> files were compiled in 2006)
>>
>> I've no idea how the JMeter Maven plugin works.
>> It is not an Apache project and I don't know if you can update the
>> JMeter version that it uses.
>>
>>> Thanks for quick response
>>> Tarun K
>>>
>>>
>>> -----Original Message-----
>>> From: sebb [mailto:sebbaz@gmail.com]
>>> Sent: Wednesday, September 08, 2010 5:17 PM
>>> To: JMeter Users List
>>> Subject: Re: Using JMeter + Maven with https protocol
>>>
>>> On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>>>> Hello All,
>>>>
>>>> I have been trying hard to make https request work with JMeter+Maven.
>>>
>>> Which version of Maven?
>>> Which version of JMeter?
>>> Which version of JMeter Maven plugin?
>>>
>>>> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>>>>
>>>> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>>>>
>>>> Now when I execute the test form Maven I encounter following exception JMeter log -
>>>>
>>>>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>>>>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>>>>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>>>>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>>>>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>>>                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)
>>>>
>>>>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>>>>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>>>>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>>>>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>>>>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>>>>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>>>>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>>>                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)
>>>>
>>>> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>>>>
>>>> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>>>>
>>>> Thanks in advance
>>>> Tarun K
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


RE: Using JMeter + Maven with https protocol

Posted by Tarun Bhaduria <bh...@yahoo-inc.com>.
I had a look at my JMeter dir and got to see "ApacheJMeter.jar" but I don't think it is same jmeter.jar which I need as ApacheJMeter.jar seems to be having really less number of classes than jmeter.jar

Now where could I get jmeter.jar file from? or how could I build myself?

Thanks
~ T

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Thursday, September 09, 2010 9:32 PM
To: JMeter Users List
Subject: Re: Using JMeter + Maven with https protocol

On 9 September 2010 16:48, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> I stumbled upon this - http://www.jajakarta.org/jmeter/1.5.1/en/running.html which speaks of using JSSE for JMeter.

That is not the official JMeter documentation, and is seriously out of
date. JMeter is now at 2.4, whereas that documents 1.5.1.
The current documentation is at:

http://jakarta.apache.org/jmeter/usermanual/index.html

> I am using java 1.6 and get to see "jsse.jar" in jre/lib folder. I have also set JMeter properties - "ssl.provider=com.sun.net.ssl.internal.ssl.Provider" but I still come across this problem. I am afraid that probably my JMeter properties file is not being considered......

Java 1.6 already includes JSSE, and you don't need to set any
properties to use SSL.

I think the problem is that the Maven JMeter plugin is rather out of date.

I suggest you contact the plugin author.

> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, September 08, 2010 10:44 PM
> To: JMeter Users List
> Subject: Re: Using JMeter + Maven with https protocol
>
> On 8 September 2010 16:56, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>> Sorry missed the basic etiquettes.......
>>
>> Maven - 2.1.0
>> JMeter - 2.4
>
> Probably not ...
>
>> JMeter Maven plug-in - 1.0
>>
>> As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip
>
> Which appears to contain JMeter 2.2, which is very out of date (class
> files were compiled in 2006)
>
> I've no idea how the JMeter Maven plugin works.
> It is not an Apache project and I don't know if you can update the
> JMeter version that it uses.
>
>> Thanks for quick response
>> Tarun K
>>
>>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Wednesday, September 08, 2010 5:17 PM
>> To: JMeter Users List
>> Subject: Re: Using JMeter + Maven with https protocol
>>
>> On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>>> Hello All,
>>>
>>> I have been trying hard to make https request work with JMeter+Maven.
>>
>> Which version of Maven?
>> Which version of JMeter?
>> Which version of JMeter Maven plugin?
>>
>>> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>>>
>>> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>>>
>>> Now when I execute the test form Maven I encounter following exception JMeter log -
>>>
>>>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>>>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>>>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>>>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>>>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>>                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)
>>>
>>>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>>>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>>>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>>>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>>>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>>>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>>>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>>                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)
>>>
>>> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>>>
>>> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>>>
>>> Thanks in advance
>>> Tarun K
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


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


Re: Using JMeter + Maven with https protocol

Posted by sebb <se...@gmail.com>.
On 9 September 2010 16:48, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> I stumbled upon this - http://www.jajakarta.org/jmeter/1.5.1/en/running.html which speaks of using JSSE for JMeter.

That is not the official JMeter documentation, and is seriously out of
date. JMeter is now at 2.4, whereas that documents 1.5.1.
The current documentation is at:

http://jakarta.apache.org/jmeter/usermanual/index.html

> I am using java 1.6 and get to see "jsse.jar" in jre/lib folder. I have also set JMeter properties - "ssl.provider=com.sun.net.ssl.internal.ssl.Provider" but I still come across this problem. I am afraid that probably my JMeter properties file is not being considered......

Java 1.6 already includes JSSE, and you don't need to set any
properties to use SSL.

I think the problem is that the Maven JMeter plugin is rather out of date.

I suggest you contact the plugin author.

> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, September 08, 2010 10:44 PM
> To: JMeter Users List
> Subject: Re: Using JMeter + Maven with https protocol
>
> On 8 September 2010 16:56, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>> Sorry missed the basic etiquettes.......
>>
>> Maven - 2.1.0
>> JMeter - 2.4
>
> Probably not ...
>
>> JMeter Maven plug-in - 1.0
>>
>> As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip
>
> Which appears to contain JMeter 2.2, which is very out of date (class
> files were compiled in 2006)
>
> I've no idea how the JMeter Maven plugin works.
> It is not an Apache project and I don't know if you can update the
> JMeter version that it uses.
>
>> Thanks for quick response
>> Tarun K
>>
>>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Wednesday, September 08, 2010 5:17 PM
>> To: JMeter Users List
>> Subject: Re: Using JMeter + Maven with https protocol
>>
>> On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>>> Hello All,
>>>
>>> I have been trying hard to make https request work with JMeter+Maven.
>>
>> Which version of Maven?
>> Which version of JMeter?
>> Which version of JMeter Maven plugin?
>>
>>> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>>>
>>> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>>>
>>> Now when I execute the test form Maven I encounter following exception JMeter log -
>>>
>>>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>>>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>>>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>>>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>>>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>>                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)
>>>
>>>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>>>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>>>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>>>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>>>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>>>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>>>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>>                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)
>>>
>>> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>>>
>>> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>>>
>>> Thanks in advance
>>> Tarun K
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


RE: Using JMeter + Maven with https protocol

Posted by Tarun Bhaduria <bh...@yahoo-inc.com>.
I stumbled upon this - http://www.jajakarta.org/jmeter/1.5.1/en/running.html which speaks of using JSSE for JMeter. I am using java 1.6 and get to see "jsse.jar" in jre/lib folder. I have also set JMeter properties - "ssl.provider=com.sun.net.ssl.internal.ssl.Provider" but I still come across this problem. I am afraid that probably my JMeter properties file is not being considered......

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, September 08, 2010 10:44 PM
To: JMeter Users List
Subject: Re: Using JMeter + Maven with https protocol

On 8 September 2010 16:56, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> Sorry missed the basic etiquettes.......
>
> Maven - 2.1.0
> JMeter - 2.4

Probably not ...

> JMeter Maven plug-in - 1.0
>
> As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip

Which appears to contain JMeter 2.2, which is very out of date (class
files were compiled in 2006)

I've no idea how the JMeter Maven plugin works.
It is not an Apache project and I don't know if you can update the
JMeter version that it uses.

> Thanks for quick response
> Tarun K
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, September 08, 2010 5:17 PM
> To: JMeter Users List
> Subject: Re: Using JMeter + Maven with https protocol
>
> On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>> Hello All,
>>
>> I have been trying hard to make https request work with JMeter+Maven.
>
> Which version of Maven?
> Which version of JMeter?
> Which version of JMeter Maven plugin?
>
>> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>>
>> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>>
>> Now when I execute the test form Maven I encounter following exception JMeter log -
>>
>>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>                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)
>>
>>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>                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)
>>
>> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>>
>> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>>
>> Thanks in advance
>> Tarun K
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


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


Re: Using JMeter + Maven with https protocol

Posted by sebb <se...@gmail.com>.
On 8 September 2010 16:56, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> Sorry missed the basic etiquettes.......
>
> Maven - 2.1.0
> JMeter - 2.4

Probably not ...

> JMeter Maven plug-in - 1.0
>
> As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip

Which appears to contain JMeter 2.2, which is very out of date (class
files were compiled in 2006)

I've no idea how the JMeter Maven plugin works.
It is not an Apache project and I don't know if you can update the
JMeter version that it uses.

> Thanks for quick response
> Tarun K
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, September 08, 2010 5:17 PM
> To: JMeter Users List
> Subject: Re: Using JMeter + Maven with https protocol
>
> On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
>> Hello All,
>>
>> I have been trying hard to make https request work with JMeter+Maven.
>
> Which version of Maven?
> Which version of JMeter?
> Which version of JMeter Maven plugin?
>
>> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>>
>> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>>
>> Now when I execute the test form Maven I encounter following exception JMeter log -
>>
>>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>                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)
>>
>>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>>                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)
>>
>> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>>
>> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>>
>> Thanks in advance
>> Tarun K
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


RE: Using JMeter + Maven with https protocol

Posted by Tarun Bhaduria <bh...@yahoo-inc.com>.
Sorry missed the basic etiquettes.......

Maven - 2.1.0
JMeter - 2.4
JMeter Maven plug-in - 1.0

As Maven JMeter plug-in is not available in public repo I had to install it manually from here - https://sass4j.dev.java.net/files/documents/8536/91313/jmeter-plugin-bundle-1.0.zip

Thanks for quick response
Tarun K


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, September 08, 2010 5:17 PM
To: JMeter Users List
Subject: Re: Using JMeter + Maven with https protocol

On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> Hello All,
>
> I have been trying hard to make https request work with JMeter+Maven.

Which version of Maven?
Which version of JMeter?
Which version of JMeter Maven plugin?

> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>
> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>
> Now when I execute the test form Maven I encounter following exception JMeter log -
>
>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>                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)
>
>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>                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)
>
> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>
> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>
> Thanks in advance
> Tarun K
>

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


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


Re: Using JMeter + Maven with https protocol

Posted by sebb <se...@gmail.com>.
On 8 September 2010 12:32, Tarun Bhaduria <bh...@yahoo-inc.com> wrote:
> Hello All,
>
> I have been trying hard to make https request work with JMeter+Maven.

Which version of Maven?
Which version of JMeter?
Which version of JMeter Maven plugin?

> Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http)
>
> I recorded these tests using HTTP Proxy of JMeter. And then as specified <a href="http://stackoverflow.com/questions/299529/jmeter-successfull-https-recording">here</a> changed the "HTTP request protocol" of sampler to "https"
>
> Now when I execute the test form Maven I encounter following exception JMeter log -
>
>    2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException
>                at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132)
>                at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
>                at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
>                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 org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>                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)
>
>     2010/09/08 16:25:38 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed
>     2010/09/08 16:25:38 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
>                at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
>                at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
>                at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(SSLSecurity.java:365)
>                at com.sun.net.ssl.SSLContext.getSocketFactory(SSLContext.java:168)
>                at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
>                at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
>                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)
>
> One more thing when I execute these tests from JMeter itself then I don't encounter any exception. But invocation of test from with in Maven causes this problem
>
> Have u guys ever been able to execute test successfully on https using JMeter+Maven
>
> Thanks in advance
> Tarun K
>

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