https://issues.apache.org/bugzilla/show_bug.cgi?id=48479

--- Comment #5 from Milamber <milambersp...@gmail.com> 2010-01-04 15:30:44 UTC 
---
I think I found the origine of this problem. It isn't a JMeter bug.
When we use JMeter proxy to record a navigating session with a http file
upload, the browser sending only the local filename without path in post data. 
Thus JMeter will only save filename alone in the HTTP Sampler, and will fail
with this error (in view results tree) : see below.

A solution is to put file to upload in the JMeter "working directory" i.e.
JMETER_HOME/bin
With this workaround, it's works for upload and download, because JMeter try to
find the file in this directory when the HTTP Sampler has need to sample in
recording sessions and in load tests.


=== Error message in record session ===
java.io.FileNotFoundException: doc1.doc (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at
org.apache.jmeter.protocol.http.sampler.PostWriter.writeFileToStream(PostWriter.java:406)
    at
org.apache.jmeter.protocol.http.sampler.PostWriter.sendPostData(PostWriter.java:115)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sendPostData(HTTPSampler.java:159)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:514)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:195)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to