Created attachment 35153 [details] Sampler-500 false
Created attachment 35154 [details] smtpler false
Are there any exceptions in the jmeter.log file? It's probably best to discuss problems with unknown causes on the users mailing list first.
(In reply to Felix Schumacher from comment #2) > jmeter.log文件中是否有异常? > > 最好先在用户邮件列表上讨论未知原因的问题。 This is log:2017-07-20 18:11:47,698 INFO o.a.j.e.StandardJMeterEngine: Running the test! 2017-07-20 18:11:47,700 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2017-07-20 18:11:47,700 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2017-07-20 18:11:47,706 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*) 2017-07-20 18:11:47,963 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : 线程组 2017-07-20 18:11:47,963 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group 线程组. 2017-07-20 18:11:47,963 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 2017-07-20 18:11:47,963 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false 2017-07-20 18:11:47,968 INFO o.a.j.t.ThreadGroup: Started thread group number 1 2017-07-20 18:11:47,968 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 2017-07-20 18:11:47,985 INFO o.a.j.t.JMeterThread: Thread started: 线程组 1-1 2017-07-20 18:11:48,059 INFO o.a.j.p.s.s.p.SendMailCommand: Use ssl/tls protocols for mail: SSLv2Hello SSLv3 TLSv1 TLSv1.1 TLSv1.2 2017-07-20 18:11:48,723 WARN o.a.j.p.s.s.SmtpSampler: 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_131] Caused by: java.io.FileNotFoundException: C:\Users\lenovo\Desktop (拒绝访问。) at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_131] at java.io.FileInputStream.open(Unknown Source) ~[?:1.8.0_131] at java.io.FileInputStream.<init>(Unknown Source) ~[?:1.8.0_131] at javax.activation.FileDataSource.getInputStream(Unknown Source) ~[?:1.8.0_131] at javax.activation.DataHandler.writeTo(Unknown Source) ~[?:1.8.0_131] at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1574) ~[mail-1.5.0-b01.jar:1.5.0-b01] at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:948) ~[mail-1.5.0-b01.jar:1.5.0-b01] at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:538) ~[mail-1.5.0-b01.jar:1.5.0-b01] at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103) ~[mail-1.5.0-b01.jar:1.5.0-b01] at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source) ~[?:1.8.0_131] at javax.activation.DataHandler.writeTo(Unknown Source) ~[?:1.8.0_131] at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1574) ~[mail-1.5.0-b01.jar:1.5.0-b01] at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1840) ~[mail-1.5.0-b01.jar:1.5.0-b01] at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1119) ~[mail-1.5.0-b01.jar:1.5.0-b01] ... 7 more 2017-07-20 18:11:48,743 INFO o.a.j.t.JMeterThread: Thread is done: 线程组 1-1 2017-07-20 18:11:48,743 INFO o.a.j.t.JMeterThread: Thread finished: 线程组 1-1 2017-07-20 18:11:48,744 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 2017-07-20 18:11:48,745 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
Created attachment 35155 [details] SMTP Sampler test.jmx SMTP Sampler test.jmx
I uploaded the script. "SMTP Sampler test.jmx"
Thanks for the report (especially the jmeter.log). The bug will be fixed in JMeter v3.3. It would be nice, if you could test the next nightly and report back, if it fixes your problem. Date: Thu Jul 20 17:28:59 2017 New Revision: 1802515 URL: http://svn.apache.org/viewvc?rev=1802515&view=rev Log: Fix regression: SMTP Sampler could not send mails, when no attachements where specified. Bugzilla Id: 61319 Modified: jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4441
The content of attachment 35155 [details] has been deleted for the following reason: INFRA-24613