[#3364] - Send Job Status Notifications do not work

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

The new "Send job status notifications" do not work in V5.5 (Community Edition). Normal Email Notifications work fine. This has been reproduced both in an upgrade environment (5.0->5.5) and also on a new 5.5 install. Mail settings have been verified in js.quartz.properties (and as stated above, normal notifications do work).

Stack trace

2014-01-23 15:26:03,312 ERROR ReportExecutionJobAlertImpl,quartzScheduler_Worker-1:104 - Error while sending report job alert notification
javax.mail.internet.AddressException: Illegal address in string ``''
at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:708)
at org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:592)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobAlertImpl.sendAlertMail(ReportExecutionJobAlertImpl.java:78)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendAlertMail(ReportExecutionJob.java:594)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:574)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:217)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
2014-01-23 15:26:03,312 ERROR ReportExecutionJob,quartzScheduler_Worker-1:306 - fail to send out alert mail notification
com.jaspersoft.jasperserver.api.JSExceptionWrapper:
javax.mail.internet.AddressException: Illegal address in string ``''
at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:708)
at org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:592)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobAlertImpl.sendAlertMail(ReportExecutionJobAlertImpl.java:78)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendAlertMail(ReportExecutionJob.java:594)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:574)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:217)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)

v5.5
mikegeorge99's picture
Joined: Sep 24 2012 - 2:29am
Last seen: 2 years 9 months ago

2 Comments:

#1
  • Assigned:nobody»

We have a bug report on this error and currently are working on a fix to solve this problem.

Until a fix is made available, users need to make sure all their users in repository user table have e-mail address provided. This can be done through Manage - User tab in JRS 5.5 web UI, then edit and enter an e-mail address for each user.

#2
  • Assigned:» anonymous

To clarify, the issue is that when a job status notification is send, it also copies the job initiator and its organization administrator. The any of them does not have an e-mail address, then the entire e-mail will fail. If you provide an e-mail, even it is a fake one, at least the job status notification will be sent to the intended recipients. Any cc'ed recipient with fake address will be rejected by the mail service, but this will not block any good recipients from getting the e-mail. Therefore, users can make a whole sale DB update using the following query, if they do not wish to edit each user profile manually and individually:

update jiuser set emailaddress = 'johndoe@doamain.com' where emailaddress = ''

Feedback
randomness