Hi, When I run HTTPS requests in CLI (jmeter -n -t https_tests.jmx) I get the response and tests are successful..
But if I open the same jmx file containing https requests in GUI, I don't get any response. Following is the error message in jmeter.log file. ======================================================= 05/29/2003 4:57:00 PM INFO - jmeter.util: Supported Cipher: SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA 05/29/2003 4:57:00 PM INFO - jmeter.util: JsseSSLManager installed 05/29/2003 4:57:00 PM ERROR - jmeter.engine: java.lang.NullPointerException at com.sun.net.ssl.internal.ssl.SunJSSE_l.<init>(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_n.<init>(DashoA6275) at com.sun.net.ssl.internal.ssl.ClientHandshaker.getKickstartMessage(DashoA6275) at com.sun.net.ssl.internal.ssl.Handshaker.kickstart(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at java.io.OutputStream.write(OutputStream.java:58) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connect(DashoA6275) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.connect(HTTPSampler.java:839) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:905) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:391) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:141) at java.lang.Thread.run(Thread.java:536) =========================================================== Please let me know what should I do to get rid of this and make my jmx file work in GUI. Is it require to change anything in jmeter.properties file !!! Thanks Sriram Tarang Patel wrote: > What you are seeing is the normal behavior, with the > client sending an "Alert:warning" of a "Close notify" > needed to notify to the server that the client has > finished sending data. > > There is no problem as far as the log you provide, > now whether you had a successful test or not may be a > separate issue. > > Tarang > > --- "Sriram Anandraj .S" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I also stored the keystore with p12 extension using > > keytool. > > I get the following exception in the command prompt. > > > > D:\tools\jakarta-jmeter-1.8.1\bin>jmeter.bat > > keyStore is : > > D:\javahome\jdk1.4\lib\security\cacerts.p12 > > keyStore type is : pkcs12 > > init keystore > > default context init failed: java.io.IOException: > > DerInputStream.getLength(): > > le > > ngthTag=109, too big. > > Thread Group-1, SEND SSL v3.1 ALERT: warning, > > description = close_notify > > Thread Group-1, WRITE: SSL v3.1 Alert, length = 2 > > Thread Group-1, SEND SSL v3.1 ALERT: warning, > > description = close_notify > > Thread Group-1, WRITE: SSL v3.1 Alert, length = 2 > > > > > > Any info will be of great help. > > > > Thanks > > Sriram > > > > "Sriram Anandraj .S" wrote: > > > > > Hi Tarang, > > > > > > I ftped the server.crt file from solaris to my > > windows > > > machine(d:\javahome\jdk1.4\bin) where JMeter is > > installed. > > > I did the following > > > D:\javahome\jdk1.4\bin>keytool.exe -import -file > > server.crt -keystore > > > ..\lib\security\cacerts > > > > > > Executing the above asked for password, I gave the > > application login > > > passoword. > > > Keystore cacerts got created in > > d:\javahome\jdk1.4\lib\security folder. > > > > > > Now I started JMeter in the command prompt. Using > > SSL Manger link in the > > > options menu I selected 'cacerts' file from > > > the security folder. > > > > > > When running the test which basically sends https > > login request to the > > > server. I get the following message in the command > > promt. > > > I don't see any response to the request in 'View > > Results in table'. > > > > > > > > > ================================================================ > > > D:\tools\jakarta-jmeter-1.8.1\bin>jmeter.bat > > > keyStore is : > > D:\javahome\jdk1.4\lib\security\cacerts > > > keyStore type is : jks > > > init keystore > > > init keymanager of type SunX509 > > > trustStore is: > > d:\javahome\jdk1.4\lib\security\cacerts > > > trustStore type is : jks > > > init truststore > > > adding as trusted cert: [ > > > [ > > > Version: V3 > > > Subject: [EMAIL PROTECTED], CN=ssr-ultra, > > OU=aa, O=aa, L=aa, S > > > T=aa, C=aa > > > Signature Algorithm: MD5withRSA, OID = > > 1.2.840.113549.1.1.4 > > > > > > Key: > > [EMAIL PROTECTED] > > > Validity: [From: Thu May 29 08:35:08 GMT+05:30 > > 2003, > > > To: Fri May 28 08:35:08 GMT+05:30 > > 2004] > > > Issuer: [EMAIL PROTECTED], CN=ssr-ultra, > > OU=aa, O=aa, L=aa, ST > > > =aa, C=aa > > > SerialNumber: [ 0 ] > > > > > > ] > > > Algorithm: [MD5withRSA] > > > Signature: > > > 0000: 77 88 E4 F5 2B 98 BA FA 11 F9 13 2E E8 FF > > D9 73 w...+..........s > > > > > > 0010: 42 8C 0A D0 81 24 B0 73 F1 DA 21 F5 7F 72 > > 4F B0 B....$.s..!..rO. > > > > > > 0020: E3 C9 50 2F 23 02 A6 C5 C6 AF 79 CE 4D 40 > > A9 D9 ..P/[EMAIL PROTECTED] > > > > > > 0030: DF 29 2E 80 5E 3E D4 8E A1 AB 21 E0 22 9C > > A4 A1 .)..^>....!."... > > > > > > 0040: CB F0 D8 8C 40 E3 9B 7A 31 F5 2D 25 C3 41 > > B3 51 [EMAIL PROTECTED] > > > > > > 0050: A7 05 B9 04 83 0D 8D D3 EA 51 4C B4 11 3E > > 15 BD .........QL..>.. > > > > > > 0060: 77 B2 36 DC C6 88 33 4F 82 92 03 06 CF 2D > > 04 D5 w.6...3O.....-.. > > > > > > 0070: 22 70 6B E2 A4 26 D5 97 7F 58 28 FA 5A 45 > > 65 10 "pk..&...X(.ZEe. > > > > > > ] > > > init context > > > trigger seeding of SecureRandom > > > done seeding SecureRandom > > > Thread Group-1, SEND SSL v3.1 ALERT: warning, > > description = close_notify > > > > > > Thread Group-1, WRITE: SSL v3.1 Alert, length = 2 > > > Thread Group-1, SEND SSL v3.1 ALERT: warning, > > description = close_notify > > > > > > Thread Group-1, WRITE: SSL v3.1 Alert, length = 2 > > > > > > > > > ====================================================================== > > > > > > NOTE: In JMeter.properties file I uncommented the > > following line inorder > > > to get the SSL Manager' link in options menu. > > > > > ssl.provider=com.sun.net.ssl.internal.ssl.Provider. > > > > > > Am I missing something for testing HTTPS requests. > > Any Info will be of > > > great help. > > > > > > Thanks > > > Sriram > > > > > > Tarang Patel wrote: > > > > > > > I am running 1.8.1, and it does have the SSL > > manager > > > > in the option menu. > > > > > > > > Check your jmeter.properties file, as there is > > > > not_in_menu key that controls what appears in > > the > > > > menu, and you may have SSL_Manager scoped out. > > > > > > > > You need to store your server cert into a > > keystore > > > > file, use JDK keystore utility, comes with JDK. > > Then > > > > in Jmeter use the Options->SSL Manager to point > > to the > > > > keystore file. It will ask for a password, the > > > > keystore password. > > > > > > > > Then you are set to go. > > > > > > > > Tarang > > > > > > > > --- "Sriram Anandraj .S" <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > Hi, > > > > > > > > > > I am using 1.8.1 version, I am not able to see > > the > > > > > SSL Manager in options > > > > > menu bar. Which version supports SSL ? > > > > > Require authentication through JMeter for > > subsequent > > > > > https requests, what > > > > > need to be done. Any input will be of great > > help. > > > > > > > > > > Thanks > > > > > Sriram > > > > > > > > > > > > > > > Tarang Patel wrote: > > > > > > > > > > > Yes, but my experience indicates that it > > isn't to > > > > > be > > > > > > relied on for any load test that you might > > do. > > > > > > > > > > > > > > > > > > > > > > > > --- "Sriram Anandraj .S" > > <[EMAIL PROTECTED]> > > > === message truncated === > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > --------------------------------------------------------------------- > 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]

