On 27/04/2009, Ed Young <[email protected]> wrote:
> I know there's a respons because I can see it when I invoke the
>  servlet from a browser, and I can see it in wireshark, just not in
>  jmeter.
>
>  Do I need to encode the data in the servlet or something like that so
>  jmeter will handle it correctly?

No.

>  it's clearly something about the way the servlet is rendering the
>  response. If I invoke it from the browser the servlet returns:
>  844fc1e22a274c7eba24daa06c3b275b
>
>  No html, nothing except the text.
>
>  If I change the url so it's bogus, jmeter's response data is a proper
>  error wrapped in html.
>
>  I can see the sampler response if I set it to write to a file, but
>  that won't work since I need to extract the response data in my test.

The file data is written from the response, so if it appears in the
file, it can be extracted, regardless of whether it is visible in the
Tree View Listener or not.

>  However, if I set it to write the response to a file and get:
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <testResults version="1.2">
>  <httpSample t="5" lt="5" ts="1240861767241" s="true" lb="HTTP Request"
>  rc="200" rm="OK" tn="Thread Group 1-1" dt="" de="ISO-8859-1" by="34"
>  sc="1" ec="0" ng="1" na="1" hn="cocmcl-naeng30">
>   <responseHeader class="java.lang.String">HTTP/1.1 200 OK
>
> Transfer-Encoding: chunked

Could perhaps be the chunking that is causing the problem.

>  Server: Jetty(6.1.16)
>
> </responseHeader>
>   <requestHeader class="java.lang.String">Connection: keep-alive
>  </requestHeader>
>   <responseData class="java.lang.String"/>

Which is an empty String, so no wonder the display shows nothing.

There's no sign of the string

844fc1e22a274c7eba24daa06c3b275b

which you say appears in the browser.

>   <responseFile class="java.lang.String"></responseFile>
>   <cookies class="java.lang.String"></cookies>
>   <method class="java.lang.String">GET</method>
>   <queryString class="java.lang.String"></queryString>
>   
> <java.net.URL>http://localhost:8080/loadtest-servlet/sessionid</java.net.URL>
>  </httpSample>
>
>  </testResults>
>

Please try using the Save Responses to a file element.

It may well also create an empty file, but it is a useful check.

Also, try using the HttpClient sampler in case that handles the response better.

Can you save the response from Wireshark?

>
>
>
>  On Mon, Apr 27, 2009 at 12:45 PM, sebb <[email protected]> wrote:
>
> > On 27/04/2009, Ed Young <[email protected]> wrote:
>  >> This has got to be a simple problem/solution. I did do an archive
>  >>  search, but no luck. It's killing me...
>  >
>  > Which version of JMeter?
>  >
>  >>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>  >>  a response, I don't see it in the Viewe Results Tree "Response Data"
>  >>  tab.
>  >>
>  >>  I can even see the response in Wireshark and it looks good.
>  >>
>  >>  I put the HTTP Request as a child to the Thread Group and added a View
>  >>  Results Tree to it.
>  >>
>  >>  Here's what the Sampler Result says:
>  >>  Thread Name: Thread Group 1-1
>  >>  Sample Start: 2009-04-27 12:13:43 MDT
>  >>  Load time: 8
>  >>  Latency: 8
>  >>  Size in bytes: 34
>  >>  Sample Count: 1
>  >>  Error Count: 0
>  >>  Response code: 200
>  >>  Response message: OK
>  >>
>  >>  Response headers:
>  >>  HTTP/1.1 200 OK
>  >>  Server: Apache-Coyote/1.1
>  >>  Transfer-Encoding: chunked
>  >>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>  >>
>  >>  I'm tweaking all the View Results Tree parameters, but I can't see the
>  >>  response...
>  >
>  > Does this happen for all samples, or just this particular one?
>  > Have you checked for errors in the JMeter log file?
>  >
>  > What is the Content-Type?
>  >
>  >>  ---------------------------------------------------------------------
>  >>  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]
>  >
>  >
>
>
>
>
> --
>
> - Ed
>
>
>  ---------------------------------------------------------------------
>  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]

Reply via email to