You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bruno Charloup <bc...@jouve.fr> on 2005/10/27 17:23:25 UTC

RE: Problem while recording scenario with the JMeter internal proxy / OK with other proxy like OpenSTA

 Another information about the page which can not be recorded by the JMeter
proxy :
I've recorded the same scenario using OpenSTA (and the proxy included in
OpenSTA), and it works fine (no Cocoon error from my application).
The header recorded by OpenSTA is as listed below :
	PRIMARY POST URI &
		"http://bsg-front.univ-paris1.fr/repons/portal/" &
	
"portal?cocoon-portal-action=0&cocoon-portal-event=194&cocoon-portal-event=1
95&cocoon-portal-eve" &
	
"nt=196&cocoon-portal-event=197&cocoon-portal-event=198&cocoon-portal-event=
199 HTTP/1.0" ON 153 &
		HEADER DEFAULT_HEADERS &
		,WITH {"Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, " &
				"application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint, " &
				"application/msword, */*", &
			"Referer: " &
	
"http://bsg-front.univ-paris1.fr/repons/portal/" &
	
"portal?cocoon-portal-action=0&cocoon-portal-event=194&cocoon-portal-event=1
95&cocoon-portal-eve" &
	
"nt=196&cocoon-portal-event=197&cocoon-portal-event=198&cocoon-portal-event=
199", &
			"Accept-Language: fr,en;q=0.5", &
			"Content-Type: multipart/form-data;
boundary=---------------------------7d5a629400a2", &
			"Content-Length: 5580", &
			"Connection: Keep-Alive", &
			"Pragma: no-cache", &
			"Cookie: "+cookie_44_0}	 &
		,BODY "-----------------------------7d5a629400a2~<CR>~<LF>"
&
			"Content-Disposition: form-data;
name=~<22>forms_submit_id~<22>~<CR>~<LF>~<CR>~<LF>~<CR>~<LF>" &
	
"-----------------------------7d5a629400a2~<CR>~<LF>" &
			"Content-Disposition: form-data;
name=~<22>continuation-id~<22>~<CR>~<LF>~<CR>~<LF>" &
			"448f2b526f6c4426536c64396b02255e3a705c08~<CR>~<LF>"
&
[more lines with the same structure ...]
			"Content-Disposition: form-data;
name=~<22>cancel.y~<22>~<CR>~<LF>~<CR>~<LF>5~<CR>~<LF>" &
	
"-----------------------------7d5a629400a2--~<CR>~<LF>"

According to me, JMeter and its proxy has pb while recording the "BODY" part
(does information of the body are supposed to be included in the file
referred by the part "Send a File With the Request", and in my case
"FileName" is left blank) ?

But using OpenSTA is not a solution for me, because I can't make functional
testing with it (only load and performance testing)

-----Message d'origine-----
De : Bruno Charloup 
Envoyé : jeudi 27 octobre 2005 16:27
À : 'JMeter Users List'
Objet : RE: Problem while recording scenario with the JMeter internal proxy

To add information about my previous email, please find the extract from the
log file concerning recording of my scenario
 
2005/10/27 16:20:17 INFO  - jmeter.protocol.http.proxy.Daemon: Proxy up and
running! 
2005/10/27 16:21:22 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://bsg-front.univ-paris1.fr/repons/portal/portal?cocoon-portal-action=0
<http://bsg-front.univ-paris1.fr/repons/portal/portal?cocoon-portal-action=0
&cocoon-portal-event=194&cocoon-portal-event=195&cocoon-portal-event=196&coc
oon-portal-event=197&cocoon-portal-event=198&cocoon-portal-event=199>
&cocoon-portal-event=194&cocoon-portal-event=195&cocoon-portal-event=196&coc
oon-portal-event=197&cocoon-portal-event=198&cocoon-portal-event=199
2005/10/27 16:21:22 ERROR - jmeter.protocol.http.sampler.HTTPSampler: 
<html><head><title>Problem in creating the Request</title><style><!--body {
background-color: white; color: black; font-family: verdana, helvetica, sanf
serif;}h1 {color: #336699; margin: 0px 0px 20px 0px; border-width: 0px 0px
1px 0px; border-style: solid; border-color: #336699;}p.footer { color:
#336699; border-width: 1px 0px 0px 0px; border-style: solid; border-color:
#336699; }span {color: #336699;}pre {padding-left: 20px;}a:link
{font-weight: bold; color: #336699;}a:visited {color: #336699; }a:hover
{color: #800000; background-color: #ffff80;}a:active {color:
#006666;}--></style></head><body><h1>Problem in creating the
Request</h1><p><span>Message:</span> null</p><p><span>Description:</span> No
details available.</p><p><span>Sender:</span>
org.apache.cocoon.servlet.CocoonServlet</p><p><span>Source:</span> Cocoon
Servlet</p><p><span>cause</span><pre>Malformed
stream</pre></p><p><span>request-uri</span><pre>/repons/portal/portal</pre><
/p><p class='footer'><a href='http://cocoon.apac  ... 
2005/10/27 16:21:26 INFO  - jmeter.protocol.http.proxy.Daemon: Proxy Server
stopped 
 
 


  _____  

De : Bruno Charloup [] Envoyé : jeudi 27 octobre 2005 15:57 À : 'JMeter
Users List'
Objet : Problem while recording scenario with the JMeter internal proxy


Hi all,
(I'm working with JMeter 2.1.1, JDK 1.4.2_09).
I'm registering scenario through the JMeter proxy, with IE6.
My application is developped using Apache Cocoon (I'm only the tester of
this application, I've no knowledge about Cocoon).
In my application, I've a form, with enctype "multipart/form-data;" (I have
other scenario with this kind of forms, and it works fine).
 
But, with this "famous" form, JMeter proxy creates an http request and
automatically fills part of the "Send a File With the Request" frame :
- the field "Filename" is left blank,
- the field "Parameter name" is filled with "upload" and 
- the field "MIME Type" is filled with "application/octet-stream"
 
After posting this form while recording my scenario, Cocoon returns an
error, with the following information : Malformed stream (see screen copy
below)

I have the same result with differents configuration of the proxy : "capture
http headers" checked or "capture http headers" unchecked ...
 
Does anybody has ever met such a problem ? any idea to solve this problem ?
 
This behaviour is really blocking for me ...
 
Thanking you in advance,

--
Bruno 



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