You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/12/19 09:47:15 UTC

[Bug 54326] New: AjpSampler send file in post throws FileNotFoundException

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

            Bug ID: 54326
           Summary: AjpSampler send file in post throws
                    FileNotFoundException
           Product: JMeter
           Version: 2.8
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: widzian@gmail.com
    Classification: Unclassified

java.io.FileNotFoundException: 
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at
org.apache.jmeter.protocol.http.sampler.AjpSampler.setConnectionHeaders(AjpSampler.java:266)
    at
org.apache.jmeter.protocol.http.sampler.AjpSampler.setupConnection(AjpSampler.java:192)
    at
org.apache.jmeter.protocol.http.sampler.AjpSampler.sample(AjpSampler.java:116)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1075)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1064)
    at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:426)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
    at java.lang.Thread.run(Unknown Source)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54326] AjpSampler send file in post throws FileNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54326

widzian@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from widzian@gmail.com ---
Hello,
Unfortunately, I can't do this, but I'm suppouse the proboblem lying in
AjpSampler
 263 String fn = fa.getName();
 264 File input = new File(fn);
In my opinion this should look like:
 263 String fn = fa.getPath();
 264 File input = new File(fn);

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54326] AjpSampler send file in post throws FileNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54326

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
                 OS|                            |All

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Can you attach a simple Test plan showing the issue , also attach jmeter.log
and finally tell where is the folder in which you put the file to send and
where it is relative to jmeter install folder and jmx file

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54326] AjpSampler send file in post throws FileNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54326

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Hardware|PC                          |All
         Resolution|---                         |FIXED

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Thu Dec 20 12:55:00 2012
New Revision: 1424442

URL: http://svn.apache.org/viewvc?rev=1424442&view=rev
Log:
Bug 54326 - AjpSampler send file in post throws FileNotFoundException
Fix also file leak
Bugzilla Id: 54326

Modified:
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/AjpSampler.java
    jmeter/trunk/xdocs/changes.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.