0
votes

I am getting this error while running the SMTP Sampler in JMeter:
Response code: 500
Response message: IOException while sending message

And I got the following in the logs:

javax.mail.MessagingException: IOException while sending message at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1167) ~[mail-1.5.0-b01.jar:1.5.0-b01] at org.apache.jmeter.protocol.smtp.sampler.protocol.SendMailCommand.execute(SendMailCommand.java:303) ~[ApacheJMeter_mail.jar:3.2 r1790748] at org.apache.jmeter.protocol.smtp.sampler.SmtpSampler.executeMessage(SmtpSampler.java:169) [ApacheJMeter_mail.jar:3.2 r1790748] at org.apache.jmeter.protocol.smtp.sampler.SmtpSampler.sample(SmtpSampler.java:146) [ApacheJMeter_mail.jar:3.2 r1790748] at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491) [ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425) [ApacheJMeter_core.jar:3.2 r1790748] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254) [ApacheJMeter_core.jar:3.2 r1790748] at java.lang.Thread.run(Unknown Source) [?:1.8.0_201] Caused by: java.io.FileNotFoundException: V:\001 Automation\Automation Scripts\Test Plan\Cloud\Final\Priority 6 - Process (Access is denied) at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_201]

What would probably the cause of the issue and how it will be resolved?

1

1 Answers

0
votes

According to the error message JMeter cannot access the following file:

V:\001 Automation\Automation Scripts\Test Plan\Cloud\Final\Priority 6 - Process

make sure to amend the permissions to the file and make sure the user account under which you're running JMeter has access to the given file.

Also be aware that according to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.1 (or whatever is the latest stable version which is available at JMeter Downloads page) as soon as possible.