I had the same sort of problem. I thought I gave Jmeter the right path
but it wasn't quite right. I was using relative paths and found in a
module that the path to the file in the main test plan changed in a
module [I also changed the rel path in a Jmeter startup script I wrote
so I didn't take all that much notice and assumed it was my fault]. It
looks like this isn't the problem here however because you have written
an absolute path to the file. You didn't mention if Jmeter has read
permissions to the file in your response.
Also are you sure F:\\Folder1\file1.doc is correct? What's with the
double slash after the drive letter? I thought it's either \\ for
network place or F:\ for a [let's say] mapped network drive. If this is
a network drive then I'd say really check permissions. Also I'd advise
to try to simplify & put the file on a local drive in a simple place eg.
c:\ before trying to source it from a network drive. If you can get a
simple case working you can go from there.
Chad
akshata s.m. wrote:
Hello,
The file exists on the location specified. In actual it is a ".fpz"
file which i am trying to upload to a file attribute in my web
application.
I have also tried uploading a valid document file which gave me similar logs as
below..
Kindly let me know the steps or the proceedure to generate HTTP request
samplers in this scenario.
Regards,
Akshata
--- On Tue, 10/14/08, sebb <[EMAIL PROTECTED]> wrote:
From: sebb <[EMAIL PROTECTED]>
Subject: Re: File Upload failure
To: "JMeter Users List" <[email protected]>, [EMAIL PROTECTED]
Date: Tuesday, October 14, 2008, 7:41 AM
On 14/10/2008, akshata s.m. <[EMAIL PROTECTED]> wrote:
Hello,
I tried to generate HTTP requests (using HTTP proxy server) to upload a
file. I browse the file. Say the location is
F:\\Folder1\file1.doc and
click 'Ok' to save the file.
I obseve the following logs:
java.io.FileNotFoundException: file1.doc (The system cannot find the file
specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at
org.apache.jmeter.protocol.http.sampler.PostWriter.writeFileToStream(PostWriter.java:402)
at
org.apache.jmeter.protocol.http.sampler.PostWriter.sendPostData(PostWriter.java:110)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sendPostData(HTTPSampler.java:111)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:455)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1021)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:195)
How can i resolve this issue?
Make sure that the file exists and is readable at the location specified.
Thanks in advance.
Regards,
Akshata
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Anthony Chadszinow
MySource Classic Lead Developer
Squiz
92 Jarrett St Leichhardt, Sydney NSW, Australia 2040
t: 13000 SQUIZ ( Support )
t: 8507 9900 / 1300 130 661
f: 8507 9988
e: [EMAIL PROTECTED]
w: www.matrix.squiz.net
w: www.squiz.net
Sydney | Melbourne | Canberra | Hobart | Wellington | London
Open Source - Own it - Squiz.net
----------------------------------------------------
IMPORTANT:This email (and any attachments) is commercial-in-confidence and
or may be legally privileged and must not be forwarded, copied or shared
without express permission from Squiz. If you are not the intended
recipient, you may not legally copy, disclose or use the contents in any way
and you should
contact [EMAIL PROTECTED] immediately and destroy this message and any
attachments. Thank you.