You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bo Yu <bo...@gmail.com> on 2008/01/15 15:51:58 UTC

Can't display response data when application/octet-stream

Hi,

I am using jmeter 2.3.1. In "View Results Tree", the Response data tab
is empty although I can see the response body in the log. I suspect
that the content-type makes the problem. Please help.

In the Sampler Result tab:
Thread Name: RequestT 5-1
Sample Start: 2008-01-15 09:27:35 EST
Load time: 3487
Latency: 3462
Size in bytes: 361
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

Response headers:
HTTP/1.1 200 OK
Date: Tue, 15 Jan 2008 14:28:21 GMT
Server: Orion/2.0.6
Connection: Close
Content-Type: application/octet-stream

In jmeter.log (I replaced content by xxxx):

2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "POST
/QueryService HTTP/1.0[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "Connection:
close[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "User-Agent:
Jakarta Commons-HttpClient/3.1[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "Host:
pooh.xxxx:8080[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >>
"Content-Length: 284[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "Content-Type:
text/xml[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "[\r][\n]"
2008/01/15 09:27:38 DEBUG - httpclient.wire.content: >> "<?xml
version="1.0"?> <!DOCTYPE svc_init SYSTEM
"MLP_SVC_INIT_300.DTD"><svc_init ver="3.0.0"><xxxx></svc_init>"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "HTTP/1.1 200
OK[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "HTTP/1.1 200
OK[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Date: Tue, 15
Jan 2008 14:28:25 GMT[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Server:
Orion/2.0.6[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Connection:
Close[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Content-Type:
application/octet-stream[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "[\r][\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "<?xml
version="1.0" encoding="ISO-8859-1"?>[\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "<!DOCTYPE
svc_result SYSTEM "MLP_SVC_RESULT_300.DTD"><svc_result
ver="3.0.0">[\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "  xxxx[\n]"
2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "</svc_result>[\n]"
2008/01/15 09:27:42 INFO  - jmeter.threads.JMeterThread: Thread
LocationRequestT 5-1 is done

Thanks,
Bo

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


Re: Can't display response data when application/octet-stream

Posted by sebb <se...@gmail.com>.
On 15/01/2008, Bo Yu <bo...@gmail.com> wrote:
> Hi,
>
> I am using jmeter 2.3.1. In "View Results Tree", the Response data tab
> is empty although I can see the response body in the log. I suspect
> that the content-type makes the problem. Please help.
>
> In the Sampler Result tab:
> Thread Name: RequestT 5-1
> Sample Start: 2008-01-15 09:27:35 EST
> Load time: 3487
> Latency: 3462
> Size in bytes: 361
> Sample Count: 1
> Error Count: 0
> Response code: 200
> Response message: OK
>
> Response headers:
> HTTP/1.1 200 OK
> Date: Tue, 15 Jan 2008 14:28:21 GMT
> Server: Orion/2.0.6
> Connection: Close
> Content-Type: application/octet-stream
>

Arbitrary octet streams cannot be displayed.

You can use:


to save the contents to a file.

Or you can treat application/octet-stream as text, by changing the property:

content-type_text


> In jmeter.log (I replaced content by xxxx):
>
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "POST
> /QueryService HTTP/1.0[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "Connection:
> close[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "User-Agent:
> Jakarta Commons-HttpClient/3.1[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "Host:
> pooh.xxxx:8080[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >>
> "Content-Length: 284[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "Content-Type:
> text/xml[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.header: >> "[\r][\n]"
> 2008/01/15 09:27:38 DEBUG - httpclient.wire.content: >> "<?xml
> version="1.0"?> <!DOCTYPE svc_init SYSTEM
> "MLP_SVC_INIT_300.DTD"><svc_init ver="3.0.0"><xxxx></svc_init>"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "HTTP/1.1 200
> OK[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "HTTP/1.1 200
> OK[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Date: Tue, 15
> Jan 2008 14:28:25 GMT[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Server:
> Orion/2.0.6[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Connection:
> Close[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "Content-Type:
> application/octet-stream[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.header: << "[\r][\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "<?xml
> version="1.0" encoding="ISO-8859-1"?>[\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "<!DOCTYPE
> svc_result SYSTEM "MLP_SVC_RESULT_300.DTD"><svc_result
> ver="3.0.0">[\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "  xxxx[\n]"
> 2008/01/15 09:27:42 DEBUG - httpclient.wire.content: << "</svc_result>[\n]"
> 2008/01/15 09:27:42 INFO  - jmeter.threads.JMeterThread: Thread
> LocationRequestT 5-1 is done
>
> Thanks,
> Bo
>
> ---------------------------------------------------------------------
> 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