You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by shri hulisandra <sh...@yahoo.com> on 2009/03/18 02:59:23 UTC

Re: Jmeter with dwr ajax calls

We too had this problem... setting the content type to text/plain also did
not help.

Here is what we found :

# "callCount" basically represents the no. of DWR function calls the client
is requesting.

# this info is required by DWR so, it can construct a list of calls and
execute them one after the other.

# dwr gets the inputstream on the request and reads each lines.. it expects
to get parameters and their values like "callCount=1",
"scriptName=DiscountCalculator", "methodName=calculateDiscount",
"httpSessioId=FH65865GHFG" etc.  each time it reads a line (a
parameter=value pair).

# in our case the whole string went in as one line
"callCount=1scriptName=DiscountCalculatormethodName=calculateDiscounthttpSessioId=FH65865GHFG"....

# so, dwr thought that the value for parameter "callCount" was
"1scriptName=DiscountCalculatormethodName=calculateDiscounthttpSessioId=FH65865GHFG"...
which obviously, is not a number. so this exception.

#  The other thing that one can do is, add a "&" between "parameter=value"
pairs. dwr understands that as well and will work fine. like
"callCount=1&scriptName=DiscountCalculator&methodName=calculateDiscount&httpSessioId=FH65865GHFG"

Hope understanding this will help you resolve the problem you are facing.
-- 
View this message in context: http://www.nabble.com/Jmeter-with-dwr-ajax-calls-tp18109320p22571582.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: Jmeter with dwr ajax calls

Posted by Pramod_bambore <pr...@yahoo.co.in>.
Some good information on DWR and Jmeter is provided at
http://jmetertips.blogspot.com.
It may be a help for some one in the forum.

-- 
View this message in context: http://www.nabble.com/Jmeter-with-dwr-ajax-calls-tp18109320p23033460.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org