jmeter uses the BeanShell post-processor to store files and reports an error:

created at 05-29-2022 views: 10

error

2022-05-26 16:45:03,122 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``FileWriter fstream = new FileWriter("D:\\softs\apache-jmeter-5.4.1\testDATA\se . . . '' : Typed variable declaration : Object constructor
2022-05-26 16:45:03,122 WARN o.a.j.e.BeanShellPostProcessor: Problem in BeanShell script: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval  Sourced file: inline evaluation of: ``FileWriter fstream = new FileWriter("D:\\softs\apache-jmeter-5.4.1\testDATA\se . . . '' : Typed variable declaration : Object constructor

reason

There is a path like \t in the read path, such as D:\softs\apache-jmeter-5.4.1\test\test.csv; jmeter escapes \t, which makes it impossible to read

solution

Modify the file name, do not start with t, such as D:\softs\apache-jmeter-5.4.1\dtataTest.csv

created at:05-29-2022
edited at: 05-29-2022: