Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 84560 invoked from network); 21 Oct 2008 23:00:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 23:00:58 -0000 Received: (qmail 77069 invoked by uid 500); 21 Oct 2008 23:00:54 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 77039 invoked by uid 500); 21 Oct 2008 23:00:54 -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 77027 invoked by uid 99); 21 Oct 2008 23:00:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 16:00:54 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=SPF_PASS,WEIRD_PORT,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 22:59:43 +0000 Received: by fg-out-1718.google.com with SMTP id 22so98870fge.1 for ; Tue, 21 Oct 2008 16:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rv/cbvDXd5yoNGOlxAw9HOjoVYSCK4Xn9dCh9bHgkGQ=; b=kxMbbVbxZ9tixihDVh+tc0WxAYBiXtM2Dbxveme6hSEwQC/yhPJus12EKQ0Od0HSgH S/RB5xoDo+modBELDON2zC88oBUCfSE25+MDFEhzcbJSquEuUv8BMQE6h9ijeDWKNVyz ZuiQsICDe/4rmQqOyn7dx1Aa0qW4C4CPliILQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jF1rK6jV0qQzzZx3oXmmjB0owAXO1MiuCtKgugB9X+7baPGcsahb1CQGpUc/Vi1Q0g Kx8gbHEZsTA04G02DhhoBvFqeR0aRdEvaO7yHWdtIN4ZgR0QI96b7QhbilCWOwCgcUc+ 9SaT+dUMZkTXKSDuM3Hsm9bujdNlyi/4aj550= Received: by 10.86.23.18 with SMTP id 18mr285375fgw.6.1224630010266; Tue, 21 Oct 2008 16:00:10 -0700 (PDT) Received: by 10.86.1.2 with HTTP; Tue, 21 Oct 2008 16:00:10 -0700 (PDT) Message-ID: <25aac9fc0810211600j33526453g94e8cebad43cf9f7@mail.gmail.com> Date: Wed, 22 Oct 2008 00:00:10 +0100 From: sebb To: "JMeter Users List" Subject: Re: Error when running JMeter In-Reply-To: <20099625.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <19958807.post@talk.nabble.com> <19962820.post@talk.nabble.com> <25aac9fc0810131843m59b419ecu81ac7b3587bf2a63@mail.gmail.com> <19984258.post@talk.nabble.com> <40d9d4a10810141835g5b626710td9f69fcfde281b7a@mail.gmail.com> <25aac9fc0810150329h2379cfc2s9dddeb9195c8f29f@mail.gmail.com> <20001661.post@talk.nabble.com> <25aac9fc0810161228k2bf6d2d4pa425963e0af4b5f7@mail.gmail.com> <20099625.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org OK, thanks for letting us know the problem has been resolved On 21/10/2008, jkhanal wrote: > > Hi Sebb and Himanshu, > > Problem got resolved after new QA build automatically. As Sebb suggested, it > should have been server problem earlier which might have been fixed later > on. Finally, I would like to thank you both of you for all the suggestions > you provided in resolving this issue, > > Regards, > Jagan > > > > sebb-2-2 wrote: > > > > On 16/10/2008, jkhanal wrote: > >> > >> Hi Sebb and Himanshu, > >> > >> Thank you for your advice. I tried to figure out but could not get what > >> went > >> wrong. I recorded listener as well while recording and also i have > >> listener > >> that I got after execution. I have pasted that below for your review. > >> Thanks > >> a lot for your cooperation. > >> > >> Request while recording (WorkBench) > >> > >> > >> GET http://www.sonomavich.com:9080/pages/checkout > >> > >> > >> [no cookies] > > > > So the browser does not send any cookies here. > > > >> > >> > >> Request Headers: > >> Accept-Language: en-us > >> Host: www.sonomavich.com:9080 > >> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR > >> 2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0) > >> Connection: keep-alive > >> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > >> application/x-shockwave-flash, application/vnd.ms-excel, > >> application/vnd.ms-powerpoint, application/msword, */* > >> UA-CPU: x86 > >> > >> > >> ----------------------------------------------- > >> > >> Sample Result while recording (WorkBench) > >> > >> Thread Name: > >> Sample Start: 2008-10-15 13:15:04 PDT > >> Load time: 125 > >> Latency: 125 > >> Size in bytes: 8573 > >> Sample Count: 1 > >> Error Count: 0 > >> Response code: 200 > >> Response message: OK > >> > >> Response headers: > >> HTTP/1.1 200 OK > >> > >> Server: Apache-Coyote/1.1 > >> Pragma: no-cache > >> Cache-Control: no-cache, max-age=0, must-revalidate > >> Content-Type: text/html;charset=UTF-8 > >> Content-Language: en-US > >> > >> Transfer-Encoding: chunked > >> Date: Wed, 15 Oct 2008 20:15:06 GMT > >> > >> > >> ********************************************** > >> Request After Exeicution (Test Plan) > >> > >> > >> > >> GET http://www.sonomavich.com:9080/pages/checkout > >> > >> Cookie Data: > >> > >> inertia-bid=e2f33580a20a411fadbf06592641f5bc > > > > Yet JMeter is sending a cookie. > > > > Where has this cookie come from? Presumably from some earlier server > > responses. > > So why does the browser not send the cookie? > > > > You'll need to compare all the earlier recording and test run samples > > and responses to see why JMeter is send a cookie when the browser is > > not (BTW, it's normally the other way about - e.g. if you forget the > > Cookie Manager). > > > > Try working backwards to trace the source of the cookie, and then have > > a look to see where the browser stops sending it. Then try to figure > > out why the browser stops sending it. > > > >> > >> > >> Request Headers: > >> Accept-Language: en-us > >> Host: www.sonomavich.com:9080 > >> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR > >> 2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0) > >> Connection: keep-alive > >> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > >> application/x-shockwave-flash, application/vnd.ms-excel, > >> application/vnd.ms-powerpoint, application/msword, */* > >> UA-CPU: x86 > >> > >> > >> ------------------------- > >> > >> Sample Result after Execution (Test Plan) > >> > >> Thread Name: Thread Group 1-1 > >> Sample Start: 2008-10-15 13:17:06 PDT > >> Load time: 16 > >> Latency: 16 > >> > >> Size in bytes: 1407 > >> Sample Count: 1 > >> Error Count: 1 > >> Response code: 500 > >> Response message: Internal Server Error > >> > > > > As far as I can tell, the only difference between the requests is the > > cookie. > > [Of course, the server state may be different if previous requests > > differed.] > > > > This indicates an error in the server code, which ought to be reported > > to the developers. > > > > The presence (or absence) of a cookie should never result in a server > > error - the server should respond with a valid page containing an > > error message that means something to the user. > > > >> Response headers: > >> HTTP/1.1 500 Internal Server Error > >> Server: Apache-Coyote/1.1 > >> Pragma: no-cache > >> Cache-Control: no-cache, max-age=0, must-revalidate > >> Content-Type: text/html;charset=UTF-8 > >> Content-Language: en-US > >> Content-Length: 1407 > >> > >> Date: Wed, 15 Oct 2008 20:17:08 GMT > >> Connection: close > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> sebb-2-2 wrote: > >> > > >> > I agree - it looks like cookies are being handled OK. The values don't > >> > matter, just check that the browser and JMeter are sending the same > >> > cookie names. You can check JMeter cookies in the Tree View Listener. > >> > > >> > You should only need to use a regex extractor if there are hidden form > >> > values that the server expects back. > >> > > >> > Again, compare browser with JMeter to see that the same names are > >> being > >> > used. > >> > > >> > On 15/10/2008, Himanshu Ghai wrote: > >> >> Jagan try to correlate the requests to what your browser sends.. > >> >> things you might need to check are the parameters/cookies/ correct > >> >> http method.. > >> >> > >> >> are you sure for checkout http method is get and does not have any > >> >> parameters? Jsessionid is picked up by cookie manager correctly it > >> >> seems.. > >> >> > >> >> > >> >> Himanshu > >> >> > >> >> > >> >> > >> >> > >> >> On Tue, Oct 14, 2008 at 4:42 PM, jkhanal wrote: > >> >> > >> >> > > >> >> > Hi Sebb, > >> >> > > >> >> > Thank you for your response > >> >> > > >> >> > I ran two times and Cookie Data: was different. Looks like I need > >> to > >> >> create > >> >> > regular expression for inertia-bid and JSESSIONID that are > >> different > >> >> in two > >> >> > different runs [I have pasted the results below]. But, I am not > >> sure > >> >> how to > >> >> > create Regular Expression as I am new in RegEx. It would be great > >> if > >> >> you > >> >> > could give some idea on that. > >> >> > > >> >> > Thanks a lot, > >> >> > Jagan > >> >> > > >> >> > Result of First Run: > >> >> > > >> >> > GET http://www.sonomavich.com:9080/pages/checkout > >> >> > > >> >> > Cookie Data: > >> >> > inertia-bid=ec293cd3c6f1436b84fe74554e88f601; > >> >> > JSESSIONID=BA7E255703C3FCAED9436B7D7BF68BBF > >> >> > > >> >> > Request Headers: > >> >> > Accept-Language: en-us > >> >> > Host: www.sonomavich.com:9080 > >> >> > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; > >> .NET > >> >> CLR > >> >> > 2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0) > >> >> > Connection: keep-alive > >> >> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > >> >> > application/x-shockwave-flash, application/vnd.ms-excel, > >> >> > application/vnd.ms-powerpoint, application/msword, */* > >> >> > UA-CPU: x86 > >> >> > > >> >> > Result of 2nd Run: > >> >> > > >> >> > GET http://www.sonomavich.com:9080/pages/checkout > >> >> > > >> >> > Cookie Data: > >> >> > inertia-bid=77e1adb1a24041e594c6dae275122ff7; > >> >> > JSESSIONID=3079C4EA8BBEF5B0F1820F3272C4E258 > >> >> > > >> >> > Request Headers: > >> >> > Accept-Language: en-us > >> >> > Host: www.sonomavich.com:9080 > >> >> > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; > >> .NET > >> >> CLR > >> >> > 2.0.50727; MS-RTC LM 8; KTXN B0A0T0U0) > >> >> > Connection: keep-alive > >> >> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > >> >> > application/x-shockwave-flash, application/vnd.ms-excel, > >> >> > application/vnd.ms-powerpoint, application/msword, */* > >> >> > UA-CPU: x86 > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > sebb-2-2 wrote: > >> >> > > > >> >> > > On 13/10/2008, jkhanal wrote: > >> >> > >> > >> >> > >> Additional Information in Error which is as follows: > >> >> > >> > >> >> > >> Sample Start: 2008-10-13 13:55:03 PDT > >> >> > >> Load time: 32 > >> >> > >> Latency: 32 > >> >> > >> Size in bytes: 1407 > >> >> > >> Sample Count: 1 > >> >> > >> Error Count: 1 > >> >> > >> Response code: 500 > >> >> > >> Response message: Internal Server Error > >> >> > >> > >> >> > >> Response headers: > >> >> > >> HTTP/1.1 500 Internal Server Error > >> >> > >> Server: Apache-Coyote/1.1 > >> >> > >> Pragma: no-cache > >> >> > >> Cache-Control: no-cache, max-age=0, must-revalidate > >> >> > >> Content-Type: text/html;charset=UTF-8 > >> >> > >> Content-Language: en-US > >> >> > >> Content-Length: 1407 > >> >> > >> Date: Mon, 13 Oct 2008 20:55:01 GMT > >> >> > >> Connection: close > >> >> > >> > >> >> > > > >> >> > > That error is generated by the webserver. This is a bug, > >> probably in > >> >> > > the web application rather than the server itself. > >> >> > > > >> >> > > You'll need to find what is triggering the bug, e.g. by > >> comparing > >> >> what > >> >> > > the browser sent when you recorded the test with what JMeter is > >> now > >> >> > > sending. > >> >> > > > >> >> > > Maybe there is some extra information that needs to be sent, or > >> more > >> >> > > likely the recording captured some variable information which > >> needs > >> >> to > >> >> > > be changed for each run - e.g. a hidden field on a form. You'll > >> need > >> >> > > to find where the browser is picking up this information and use > >> the > >> >> > > Regex Extractor to save it in a variable for the appropriate > >> sample. > >> >> > > > >> >> > > > >> >> > >> > >> >> > >> jkhanal wrote: > >> >> > >> > > >> >> > >> > Hi, > >> >> > >> > > >> >> > >> > I used Proxy Server to record the Use Case. Also, I have > >> used > >> >> Cookie > >> >> > >> > Manager. My flow of use case is order an Item online. When > >> >> running > >> >> > the > >> >> > >> > JMeter, I am getting error in "Checkout". Everything else is > >> >> fine. > >> >> > >> Error > >> >> > >> > response code is 500 when checked in Log. Can you suggest me > >> >> what > >> >> > >> might > >> >> > >> > have went wrong? > >> >> > >> > > >> >> > >> > I would really appreciate your suggestions. > >> >> > >> > > >> >> > >> > Thank you, > >> >> > >> > Jagan > >> >> > >> > > >> >> > >> > >> >> > >> -- > >> >> > >> > >> >> > >> View this message in context: > >> >> > >> > >> >> > > >> >> > >> http://www.nabble.com/Error-when-running-JMeter-tp19958807p19962820.html > >> >> > >> > >> >> > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> >> > >> > >> >> > >> > >> >> > >> > >> >> > >> > >> >> --------------------------------------------------------------------- > >> >> > >> 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 > >> >> > > > >> >> > > > >> >> > > > >> >> > > >> >> > -- > >> >> > View this message in context: > >> >> > > >> >> > >> http://www.nabble.com/Error-when-running-JMeter-tp19958807p19984258.html > >> >> > Sent from the JMeter - User mailing list archive at Nabble.com. > >> >> > > >> >> > > >> >> > > >> --------------------------------------------------------------------- > >> >> > 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 > >> > > >> > > >> > > >> > >> -- > >> > >> View this message in context: > >> http://www.nabble.com/Error-when-running-JMeter-tp19958807p20001661.html > >> > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> 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 > > > > > > > > -- > > View this message in context: http://www.nabble.com/Error-when-running-JMeter-tp19958807p20099625.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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