> Ok, I've found that the first HTTPS request always fails. > If I send the same thing twice, then the second one always works. > I think I've seen this thing documented somewhere else
Over here? : http://issues.apache.org/bugzilla/show_bug.cgi?id=25505 Are you using an old version of JMeter? Take a look at the last few responses - the status is fixed in JMeter 2.1.1; won't fix in 1.9.1. Sincerely, Sonam Chauhan -- Corporate Express Australia Ltd. Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED] -----Original Message----- From: Per Ekman [mailto:[EMAIL PROTECTED] Sent: Monday, 10 April 2006 7:18 PM To: [email protected] Subject: Re: Running jmeter through Ant with HTTPS requests Ok, I've found that the first HTTPS request always fails. If I send the same thing twice, then the second one always works. I think I've seen this thing documented somewhere else >From: "Per Ekman" <[EMAIL PROTECTED]> >Reply-To: "JMeter Users List" <[email protected]> >To: [email protected] >Subject: Re: Running jmeter through Ant with HTTPS requests >Date: Mon, 10 Apr 2006 09:25:19 +0200 > >I've also recevied this error in the jtl log > > ><httpSample t="843" lt="0" ts="1144417571633" s="false" lb="Reset counter >in AP-Simulator" rc="Non HTTP response code" rm="Non HTTP response message" >tn="TC129_1_1 1-1" dt="text"> > <responseData class="java.lang.String">java.io.IOException: HTTPS >hostname wrong: should be <130.100.123.45> > at >sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:490) > at >sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:415) > 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:399) > at >org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:554) > at >org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:543) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) > at java.lang.Thread.run(Thread.java:595) ></responseData> > <cookies class="java.lang.String"></cookies> > <method class="java.lang.String">GET</method> > <queryString class="java.lang.String"></queryString> > <url>https://130.100.123.45:8443/services/counters/setCounter</url> ></httpSample> > > > >>From: "Per Ekman" <[EMAIL PROTECTED]> >>Reply-To: "JMeter Users List" <[email protected]> >>To: [email protected] >>Subject: Re: Running jmeter through Ant with HTTPS requests >>Date: Mon, 10 Apr 2006 08:59:35 +0200 >> >>I will try non-gui without Ant now >> >>I'm getting the log below. My keystore is stored as C:\jmeter. What I >>don't understand is that it seems like it accepts that but is getting an >>error on the default keystore >> >> >>2006/04/07 17:03:39 INFO - jmeter.threads.JMeterThread: Thread TC129_1_1 >>1-1 started >>2006/04/07 17:03:39 INFO - jmeter.util.SSLManager: KeyStore Type: JKS >>2006/04/07 17:03:39 ERROR - jmeter.util.SSLManager: Couldn't load keystore >>java.io.IOException: Keystore was tampered with, or password was incorrect >> at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768) >> at java.security.KeyStore.load(KeyStore.java:1150) >> at >>org.apache.jmeter.util.keystore.DefaultKeyStore.load(DefaultKeyStore.java:48) >> at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:139) >> at >>org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:148) >> at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:95) >> 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:494) >> at org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:219) >> at >>org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:137) >> at >>org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:397) >> at >>org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:554) >> at >>org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:543) >> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) >> at java.lang.Thread.run(Thread.java:595) >> >>2006/04/07 17:03:39 INFO - jmeter.util.SSLManager: JmeterKeyStore >>Location: C:/jmeter >>2006/04/07 17:03:39 INFO - jmeter.util.SSLManager: JmeterKeyStore type: >>class org.apache.jmeter.util.keystore.DefaultKeyStore >>2006/04/07 17:03:39 INFO - jmeter.util.JsseSSLManager: class >>org.apache.jmeter.util.keystore.DefaultKeyStore >>2006/04/07 17:03:39 INFO - jmeter.util.SSLManager: KeyStore Type: JKS >>2006/04/07 17:03:39 INFO - jmeter.util.SSLManager: TrustStore Location: >>2006/04/07 17:03:39 INFO - jmeter.util.SSLManager: TrustStore type: class >>org.apache.jmeter.util.keystore.DefaultKeyStore >>2006/04/07 17:03:39 INFO - jmeter.util.JsseSSLManager: JsseSSLManager >>installed >> >>>From: sebb <[EMAIL PROTECTED]> >>>Reply-To: "JMeter Users List" <[email protected]> >>>To: "JMeter Users List" <[email protected]> >>>Subject: Re: Running jmeter through Ant with HTTPS requests >>>Date: Fri, 7 Apr 2006 17:07:25 +0100 >>> >>>Have you tried non-GUI mode without Ant? >>> >>>Any messages in jmeter.log? >>> >>>S. >>> >>>On 07/04/06, Per Ekman <[EMAIL PROTECTED]> wrote: >>> > Has anyone succeeded in running HTTPS requests through jmeter with >>>Ant? >>> > >>> > I'm running a script that has the following target: >>> > >>> > <!-- ================================= >>> > target: >>> > ================================= --> >>> > >>> > <target name="test" depends="prepare"> >>> > <jmeter >>> > jmeterhome="${jmeterenv.dir}" >>> > resultlog="${testplan.dir}${output.dir}/JMeterResults.jtl"> >>> > <property name="ipaddress" value="${ipaddress}"/> >>> > <property name="port" value="${port}"/> >>> > <property name="javax.net.ssl.keyStore" >>>value="${keystore_path}"/> >>> > <property name="javax.net.ssl.keyStorePassword" >>>value="${keystore_path}"/> >>> > <testplans dir="${testplan.dir}/test" includes="*.jmx"/> >>> > </jmeter> >>> > </target> >>> > >>> > where I'm pointing to a keystore generated through: >>> > >>> > keytool -genkey -alias tomcat -keyalg RSA -keystore jmeter >>> > >>> > It's working for me in GUI mode when using the SSL manager but not in >>> > non-GUI mode. Anyone have any ideas what should be done here? >>> > >>> > _________________________________________________________________ >>> > Chat: Ha en fest på Habbo Hotel >>> > http://habbohotel.msn.se/habbo/sv/channelizer Checka in här! >>> > >>> > >>> > --------------------------------------------------------------------- >>> > 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] >>> >> >>_________________________________________________________________ >>Chat: Ha en fest på Habbo Hotel >>http://habbohotel.msn.se/habbo/sv/channelizer Checka in här! >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> > >_________________________________________________________________ >Hitta rätt på nätet med MSN Search http://search.msn.se/ > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/ --------------------------------------------------------------------- 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]

