Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 83644 invoked from network); 8 Sep 2010 17:14:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 17:14:44 -0000 Received: (qmail 79449 invoked by uid 500); 8 Sep 2010 17:14:44 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 79406 invoked by uid 500); 8 Sep 2010 17:14:43 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 79395 invoked by uid 99); 8 Sep 2010 17:14:43 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 17:14:43 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qy0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 17:14:22 +0000 Received: by qyk1 with SMTP id 1so4936388qyk.10 for ; Wed, 08 Sep 2010 10:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=IR8GYY4vBcb6dZI094MaIEys8yn6wtIUs7+XhKP97NU=; b=qfwMZd18ZXPXA5cuXLQIkHaM0UoeLbuECaTxeDR8faqdcC0e98ld+5gaW0/A+NZdQt sc3g+nLYOs949JVFNhcXEAacUfV2owqyY3QRv5NETxW/mceLcyTHgDRPqtLbuuRYud12 2QEOr9GgRbInIoLgWM6w3G5q8a2El45eEC5eI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=m0yU8ldd+IdAAslFMx9uooM5ZapxxRrI0jJ6kVEy1LsRPB5AtYs9+SE9uW1cUpt/iP BTgzGaFUcv1RgMoVvZ4T1mQCUAYb/QuubKMUzvE3mFu6o9+zS2KCCz7OBZwXw6vwrhq9 lDVRgXNHXf4EROy6KZ9Zh3L0FAxWhzk7rtJtw= MIME-Version: 1.0 Received: by 10.224.105.146 with SMTP id t18mr749972qao.363.1283966040942; Wed, 08 Sep 2010 10:14:00 -0700 (PDT) Received: by 10.229.220.139 with HTTP; Wed, 8 Sep 2010 10:14:00 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Sep 2010 18:14:00 +0100 Message-ID: Subject: Re: Using JMeter + Maven with https protocol From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 8 September 2010 16:56, Tarun Bhaduria 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/91= 313/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 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 H= ome page (this is http) >> >> I recorded these tests using HTTP Proxy of JMeter. And then as specified= here changed the "HTTP request protocol" of sampler to "= https" >> >> Now when I execute the test form Maven I encounter following exception J= Meter log - >> >> =A0 =A02010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception= occurred java.lang.NullPointerException >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.util.SSLManager.getK= eyStore(SSLManager.java:132) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.util.JsseSSLManager.= getContext(JsseSSLManager.java:141) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.util.JsseSSLManager.= (JsseSSLManager.java:88) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at sun.reflect.NativeConstructorAccessorI= mpl.newInstance0(Native Method) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at sun.reflect.NativeConstructorAccessorI= mpl.newInstance(NativeConstructorAccessorImpl.java:39) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at sun.reflect.DelegatingConstructorAcces= sorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at java.lang.reflect.Constructor.newInsta= nce(Constructor.java:513) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.util.SSLManager.getI= nstance(SSLManager.java:231) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSampler.setupConnection(HTTPSampler.java:148) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSampler.sample(HTTPSampler.java:404) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSamplerBase.sample(HTTPSamplerBase.java:658) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSamplerBase.sample(HTTPSamplerBase.java:647) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.threads.JMeterThread= .run(JMeterThread.java:247) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:619) >> >> =A0 =A0 2010/09/08 16:25:38 INFO =A0- jmeter.util.JsseSSLManager: JsseSS= LManager installed >> =A0 =A0 2010/09/08 16:25:38 WARN =A0- jmeter.protocol.http.sampler.HTTPS= ampler: You may have forgotten to set the ssl.provider property in jmeter.p= roperties java.lang.IllegalStateException: SSLContextImpl is not initialize= d >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at com.sun.net.ssl.internal.ssl.SSLContex= tImpl.engineGetSocketFactory(SSLContextImpl.java:145) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at javax.net.ssl.SSLContext.getSocketFact= ory(SSLContext.java:260) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at com.sun.net.ssl.SSLContextSpiWrapper.e= ngineGetSocketFactory(SSLSecurity.java:365) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at com.sun.net.ssl.SSLContext.getSocketFa= ctory(SSLContext.java:168) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.util.JsseSSLManager.= setContext(JsseSSLManager.java:101) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSampler.setupConnection(HTTPSampler.java:160) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSampler.sample(HTTPSampler.java:404) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSamplerBase.sample(HTTPSamplerBase.java:658) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.protocol.http.sample= r.HTTPSamplerBase.sample(HTTPSamplerBase.java:647) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at org.apache.jmeter.threads.JMeterThread= .run(JMeterThread.java:247) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at 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 J= Meter+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