Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 41310 invoked from network); 18 Feb 2011 18:33:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 18:33:08 -0000 Received: (qmail 52731 invoked by uid 500); 18 Feb 2011 18:33:08 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 52521 invoked by uid 500); 18 Feb 2011 18:33:06 -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 52513 invoked by uid 99); 18 Feb 2011 18:33:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 18:33:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 18:33:00 +0000 Received: by vws7 with SMTP id 7so2333516vws.31 for ; Fri, 18 Feb 2011 10:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=0hCSVwKfFfS5bwQi67Fzm0x5NPoCMW/pTvAfG4mWXnQ=; b=XwgEQmmS8k/N5HSRHRHkxZvn6QS6gpA1NziprxJNBNwgHoaEbWq3L8w2n95vbRo55l PsLPjPbi+l1cm8/n7i06PNSEWTjVbSi6EdcH5UTvd8HSS5Zwta2BkS3POmWcxeHSltuP 063JtIlrz+/cqxnIIlUzJY28aZcaDewVcnSQU= 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=q+4LpK5RlOSuG8PxC0+KxnLan/Yg04R/e3HSLLazqRb8dXJ6IfRy+Zi61LlT+M/GtT hD/IjOew95SOQ1IOfMwWG0m+8T/Zxk3y/T0vhe5OY5on4TNiVVk11HEWiMBweaRKeQCt PVXUIDHtN/ADb4t4CsS7sAdjVfeh5XhF5Lqjg= MIME-Version: 1.0 Received: by 10.52.166.41 with SMTP id zd9mr1911635vdb.87.1298053959390; Fri, 18 Feb 2011 10:32:39 -0800 (PST) Received: by 10.220.80.136 with HTTP; Fri, 18 Feb 2011 10:32:39 -0800 (PST) In-Reply-To: <4E40181BDEC7704D984F42ACFA2A5258034D5537@ct-beexch-4-1.cybage.com> References: <4E40181BDEC7704D984F42ACFA2A5258034D5537@ct-beexch-4-1.cybage.com> Date: Fri, 18 Feb 2011 18:32:39 +0000 Message-ID: Subject: Re: Bean shell Preprocessor Exception From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 18 February 2011 10:16, Ragini Thakur wrote: > Hi, > > > > I am getting Bean shell error in "Jmeter.log" while executing the JMeter > test plan. > > > > Exception is : jmeter.util.BeanShellInterpreter: Error invoking bsh > method: eval =A0 =A0 Parse error at line 1, column 23 : Error or number t= oo > big for integer type: 8780413182 > That should give a big clue as to the source of the problem ... > > > The test plan does following steps. > > > > * =A0 =A0 =A0 =A0 Send Post request using HTTP sampler > > * =A0 =A0 =A0 =A0 Extracts Order id from the response XML- Using XPath Ex= tractor > > * =A0 =A0 =A0 =A0 Pre processes the second request input before sending i= t. Here > I have used bean shell Preprocessor to insert the order Id in input xml > of second request. > > > > The script used in bean shell Preprocessor causing issue is: > vars.put("orderId",""+${rOrderId}); Which takes rOrderId and converts it to a string, probably via an integer. Why not just save the id as a string? vars.put("orderId","${rOrderId}"); > > > > Note: I have confirmed that error is at the above given script by > debugging my test plan from Eclipse. > > > > > > Regards, > > Ragini Thakur > > > > > > "Legal Disclaimer: This electronic message and all contents contain infor= mation from Cybage Software Private Limited which may be privileged, confid= ential, or otherwise protected from disclosure. The information is intended= to be for the addressee(s) only. If you are not an addressee, any disclosu= re, copy, distribution, or use of the contents of this message is strictly = prohibited. If you have received this electronic message in error please no= tify the sender by reply e-mail to and destroy the original message and all= copies. Cybage has taken every reasonable precaution to minimize the risk = of malicious content in the mail, but is not liable for any damage you may = sustain as a result of any malicious content in this e-mail. You should car= ry out your own malicious content checks before opening the e-mail or attac= hment." > www.cybage.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org