An exception Thrown during mail notification

SecureExceptionHandlerImpl,quartzScheduler_Worker-1:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 09522cb0-393e-45f3-b879-84ec51a6e601)

2020-06-01T23:05:13,159 ERROR ReportExecutionJob,quartzScheduler_Worker-1:367 - The job was not completed. A system error occurred while running it. (Error UID: 09522cb0-393e-45f3-b879-84ec51a6e601) java.lang.NoSuchMethodError: 'void com.sun.mail.util.LineOutputStream.<init>(, boolean)'

        at javax.mail.internet.MimeBodyPart.writeTo(

        at javax.mail.internet.MimeMessage.writeTo(

        at com.sun.mail.smtp.SMTPTransport.sendMessage(

        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(

        at org.springframework.mail.javamail.JavaMailSenderImpl.send(

        at org.springframework.mail.javamail.JavaMailSenderImpl.send(

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobMailNotificationImpl.sendMailNotification(

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(


        at org.quartz.simpl.SimpleThreadPool$

mohamedelsayed1996101's picture
Joined: Apr 27 2020 - 10:28pm
Last seen: 2 months 1 week ago

Just wanted to add that we're seeing the exact same problem (NoSuchMethodError: com.sun.mail.util.LineOutputStream) when trying to execute emailed reports.

levi_3 - 2 years 9 months ago

I just came across this issue myself.  After looking into it, there are duplicate packages for com.sun.mail.util on the classpath.  We removed the mail-1.4.5.jar file from WEB-INF/lib.  After diving into it, we saw that mail-1.4.5.jar AND javax.mail-1.6.2.jar contained the same classes but were at different versions.

mfarmer - 2 years 9 months ago

1 Answer:

Thanks mfarmer!

Jaspersoft Support is filing a bug against 7.5.x now.

Try removing  mail-1.4.5.jar

ghudson_1's picture
Joined: Oct 30 2012 - 12:51pm
Last seen: 1 year 9 months ago