Mike Hua Posted December 28, 2020 Share Posted December 28, 2020 js.quartz.properties: report.scheduler.mail.sender.host=mail.fenv.com.vn report.scheduler.mail.sender.username=fenvERPSystem report.scheduler.mail.sender.password=correct_password report.scheduler.mail.sender.from=ERPSystem@fenv.com.vn report.scheduler.mail.sender.protocol=smtp report.scheduler.mail.sender.port=25 applicationContext-report-scheduling.xml: true true true Error Log: 2020-12-29T00:49:06,886 ERROR SecureExceptionHandlerImpl,quartzScheduler_Worker-1:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 5acfba18-9189-4143-99b2-cb3a3227a04a) 2020-12-29T00:49:06,886 ERROR ReportExecutionJob,quartzScheduler_Worker-1:367 - fail to send out alert mail notification (Error UID: 5acfba18-9189-4143-99b2-cb3a3227a04a) org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:425) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobAlertImpl.sendAlertMail(ReportExecutionJobAlertImpl.java:97) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendAlertMail(ReportExecutionJob.java:768) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:607) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:249) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) Caused by: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:965) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:876) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:780) at javax.mail.Service.connect(Service.java:366) at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:503) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:422) ... 8 more Link to comment Share on other sites More sharing options...
Mike Hua Posted December 28, 2020 Author Share Posted December 28, 2020 The user name and password in the "js.quartz.properties" file is correct. But I tried to test the Scheduled Job Many Times, mail notification didn't run... What is the reasonThanks a lot! Link to comment Share on other sites More sharing options...
Mike Hua Posted December 28, 2020 Author Share Posted December 28, 2020 The "fenv" domain name cannot be supported in the "report.scheduler.mail.sender.username". But it could run successfully really in the Common Java Program. (Refer to the following attached picture.) Many thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now