Java教程

jemter 运行java.io.FileNotFoundException: (拒绝访问。)

本文主要是介绍jemter 运行java.io.FileNotFoundException: (拒绝访问。),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

2021-09-22 11:43:09,458 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2021-09-22 11:43:09,459 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-09-22 11:43:09,459 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, local)
2021-09-22 11:43:09,490 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : 线程组
2021-09-22 11:43:09,491 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group 线程组.
2021-09-22 11:43:09,491 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2021-09-22 11:43:09,491 INFO o.a.j.t.ThreadGroup: Starting thread group… number=1 threads=1 ramp-up=1 delayedStart=false
2021-09-22 11:43:09,491 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2021-09-22 11:43:09,491 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2021-09-22 11:43:09,491 INFO o.a.j.t.JMeterThread: Thread started: 线程组 1-1
2021-09-22 11:43:09,491 INFO c.b.c.RandomCSVReader: Start reading the file: E:\jmeter\学历记录
2021-09-22 11:43:09,492 ERROR c.b.c.RandomCSVReader: Cannot initialize RandomCSVReader, because of error:
java.io.FileNotFoundException: E:\jmeter\学历记录 (拒绝访问。)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:219) ~[?:?]
at java.io.FileInputStream.(FileInputStream.java:157) ~[?:?]
at com.blazemeter.csv.RandomCSVReader.createReader(RandomCSVReader.java:195) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.csv.RandomCSVReader.initOffsets(RandomCSVReader.java:182) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.csv.RandomCSVReader.(RandomCSVReader.java:61) [jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.jmeter.RandomCSVDataSetConfig.createRandomCSVReader(RandomCSVDataSetConfig.java:163) [jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.jmeter.RandomCSVDataSetConfig.trySetFinalFilename(RandomCSVDataSetConfig.java:53) [jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.jmeter.RandomCSVDataSetConfig.iterationStart(RandomCSVDataSetConfig.java:60) [jmeter-plugins-random-csv-data-set-0.7.jar:?]
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:399) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:391) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.control.GenericController.next(GenericController.java:160) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.control.LoopController.next(LoopController.java:134) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:91) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core.jar:5.4.1]
at java.lang.Thread.run(Thread.java:834) [?:?]
2021-09-22 11:43:09,492 ERROR o.a.j.t.JMeterThread: Test failed!
java.lang.RuntimeException: Cannot initialize RandomCSVReader, because of error: E:\jmeter\学历记录 (拒绝访问。)
at com.blazemeter.csv.RandomCSVReader.(RandomCSVReader.java:70) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.jmeter.RandomCSVDataSetConfig.createRandomCSVReader(RandomCSVDataSetConfig.java:163) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.jmeter.RandomCSVDataSetConfig.trySetFinalFilename(RandomCSVDataSetConfig.java:53) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.jmeter.RandomCSVDataSetConfig.iterationStart(RandomCSVDataSetConfig.java:60) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:399) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:391) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.control.GenericController.next(GenericController.java:160) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.control.LoopController.next(LoopController.java:134) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:91) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core.jar:5.4.1]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.io.FileNotFoundException: E:\jmeter\学历记录 (拒绝访问。)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:219) ~[?:?]
at java.io.FileInputStream.(FileInputStream.java:157) ~[?:?]
at com.blazemeter.csv.RandomCSVReader.createReader(RandomCSVReader.java:195) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.csv.RandomCSVReader.initOffsets(RandomCSVReader.java:182) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
at com.blazemeter.csv.RandomCSVReader.(RandomCSVReader.java:61) ~[jmeter-plugins-random-csv-data-set-0.7.jar:?]
… 10 more
2021-09-22 11:43:09,492 INFO o.a.j.t.JMeterThread: Thread finished: 线程组 1-1
2021-09-22 11:43:09,492 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2021-09-22 11:43:09,492 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)

因为添加了Random CSV Data Set Config 路径为空导致
删除或禁用 bzm - Random CSV Data Set Config 就ok

这篇关于jemter 运行java.io.FileNotFoundException: (拒绝访问。)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!