An exception Thrown during mail notification

1

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>(java.io.OutputStream, boolean)'

        at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1631)

        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1889)

        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1121)

        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:450)

        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.ReportExecutionJobMailNotificationImpl.sendMailNotification(ReportExecutionJobMailNotificationImpl.java:141)

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1124)

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:582)

        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)

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 - 1 month 4 weeks 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 - 1 month 3 weeks ago

1 Answer:

0

Thanks mfarmer!

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

Try removing  mail-1.4.5.jar

ghudson_1's picture
32693
Joined: Oct 30 2012 - 12:51pm
Last seen: 5 days 18 hours ago
Feedback
randomness