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 2013/06/13 16:08:41 UTC

[Bug 55099] New: FileNotFoundException "Save responses to a file" listener

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

            Bug ID: 55099
           Summary: FileNotFoundException "Save responses to a file"
                    listener
           Product: JMeter
           Version: 2.9
          Hardware: PC
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: peter.eichenauer@giz.de

A FileNotFoundException is thrown if you use a relative path as 'Filename
prefix' and a directory doesn't exist.

jmeter.reporters.ResultSaver: Error creating sample file for PicURL
java.io.FileNotFoundException: 
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.jmeter.reporters.ResultSaver.saveSample(ResultSaver.java:188)
    at
org.apache.jmeter.reporters.ResultSaver.processSample(ResultSaver.java:150)
    at
org.apache.jmeter.reporters.ResultSaver.sampleOccurred(ResultSaver.java:140)
    at
org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
    at
org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
    at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:442)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)

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

[Bug 55099] FileNotFoundException "Save responses to a file" listener

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

Peter <pe...@giz.de> changed:

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

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

[Bug 55099] ResultSaver should create intermediate directories

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

--- Comment #3 from Peter <pe...@giz.de> ---
Created attachment 30737
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30737&action=edit
Patch for ResultSaver

patch includes a TestCase

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

[Bug 55099] ResultSaver should create intermediate directories

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
           Hardware|PC                          |All
            Summary|FileNotFoundException "Save |ResultSaver should create
                   |responses to a file"        |intermediate directories
                   |listener                    |
           Severity|minor                       |enhancement

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

[Bug 55099] FileNotFoundException "Save responses to a file" listener

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

--- Comment #2 from peter.eichenauer@giz.de ---
The file is generated at run time. I read the description from JMeter
documentation: "Prefix for the generated file names; this can include a
directory name."

In my case it would be convenient to generate directories as well because the
directory structure depends on the test plan.

To generate directories should be a small modification of ResultSaver.

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

[Bug 55099] FileNotFoundException "Save responses to a file" listener

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

Sebb <se...@apache.org> changed:

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

--- Comment #1 from Sebb <se...@apache.org> ---
That's a valid response - the file cannot be found.

What do you expect to happen?

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