jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Hoang <damho...@yahoo.com>
Subject Re: Spring REST @PathVariable with JMeter
Date Wed, 24 Mar 2010 01:38:22 GMT

Deepak,

I got it working now.  You are right.  I was missing the count in the
request parameter.  Thank you very much for you help.

Justin


Deepak Shetty wrote:
> 
> the 500 internal server error means it did hit your service and got an
> error
> response from your application .
> Your app logs might give you more information. The only parameter I can
> see
> missing is count , Other possibilities may be date format handling or
> something
>  its easy to compare if you have a working request/response (e.g. from
> browser ) and you can then compare with request/response from view results
> tree listener
> 
> regards
> deepak
> 
> On Mon, Mar 22, 2010 at 3:51 PM, Justin Hoang <damhoang@yahoo.com> wrote:
> 
>>
>> Deepak,
>>
>> Thanks for your response.  Actually i have it wrong in the pic, the
>> correct
>> path is:
>>
>> /clientservices/requestbroker/1.0/035BD2B8-6BC5-A929-45A8-C40306484D12/feedItems.atom
>>
>> 035BD2B8-6BC5-A929-45A8-C40306484D12 is the userId.
>>
>> Seems like it never hits my service.  I got error message back in JMeter
>> report: <httpSample t="194" lt="194" ts="1269297833209" s="false" lb="Get
>> Feed Items" rc="500" rm="Internal Server Error" tn="ClientServices Users
>> 1-1" dt="text" by="5106"/>
>>
>>
>> Deepak Shetty wrote:
>> >
>> > whats the ${UUID} you have in your path? You probably want this to be a
>> > user
>> > id correct? where should this user id be got from? Do you have a
>> working
>> > request to this REST service(from the browser or anywhere)? Your error
>> > message on the server should probably tell you whats happening (are you
>> > missing count?)
>> >
>> > regards
>> > deepak
>> >
>> > On Mon, Mar 22, 2010 at 3:22 PM, Justin Hoang <damhoang@yahoo.com>
>> wrote:
>> >
>> >>
>> >> Hello everyone,
>> >>
>> >> I am trying to use JMeter to load test my Spring REST for the below
>> >> service:
>> >>
>> >>    @RequestMapping(value = "/{userId}/feedItems.*", method =
>> >> RequestMethod.POST)
>> >>    public ModelAndView getFeedItemsByUser(@PathVariable("userId")
>> String
>> >> userId, int count, String[] filterByFeedUrls, Date afterDate,  Date
>> >> beforeDate)
>> >>    {
>> >>     some code here...
>> >>    }
>> >>
>> >> and i have the following
>> >> http://old.nabble.com/file/p27993579/spring_rest_jmeter.png
>> >>
>> >> But i am keep getting the below error for the test:
>> >> <httpSample t="747" lt="747" ts="1269294212285" s="false" lb="Get Feed
>> >> Items" rc="500" rm="Internal Server Error" tn="ClientServices Users
>> 1-1"
>> >> dt="text" by="5106"/>
>> >>
>> >> Other REST calls worked fine only one with @PathVariable have problem.
>> >> Does anyone have encounter similar problem?  Any help or advice is
>> >> greatly
>> >> appreciated.
>> >>
>> >> Thanks
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Spring-REST-%40PathVariable-with-JMeter-tp27993579p27993579.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
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Spring-REST-%40PathVariable-with-JMeter-tp27993579p27993876.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
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Spring-REST-%40PathVariable-with-JMeter-tp27993579p28009624.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


Mime
View raw message