【发布时间】:2019-08-02 13:24:04
【问题描述】:
在 JMeter 中运行 SMTP 采样器时出现此错误:
响应代码:500
响应消息:发送消息时出现 IOException
我在日志中得到以下信息:
javax.mail.MessagingException:在发送消息时出现 IOException com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1167) ~[mail-1.5.0-b01.jar:1.5.0-b01] 在 org.apache.jmeter.protocol.smtp.sampler.protocol.SendMailCommand.execute(SendMailCommand.java:303) ~[ApacheJMeter_mail.jar:3.2 r1790748] 在 org.apache.jmeter.protocol.smtp.sampler.SmtpSampler.executeMessage(SmtpSampler.java:169) [ApacheJMeter_mail.jar:3.2 r1790748] 在 org.apache.jmeter.protocol.smtp.sampler.SmtpSampler.sample(SmtpSampler.java:146) [ApacheJMeter_mail.jar:3.2 r1790748] 在 org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core.jar:3.2 r1790748] 在 org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core.jar:3.2 r1790748] 在 org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core.jar:3.2 r1790748] 在 java.lang.Thread.run(未知 来源)[?:1.8.0_201] 引起:java.io.FileNotFoundException: V:\001 自动化\自动化脚本\测试计划\云\最终\优先级 6 - 在 java.io.FileInputStream.open0(Native) 处理(拒绝访问) 方法)~[?:1.8.0_201]
问题的可能原因是什么以及如何解决?
【问题讨论】: