Could not initialize class javax.mail.internet.InternetAddress
search cancel

Could not initialize class javax.mail.internet.InternetAddress

book

Article ID: 250630

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

install Reporter of 6.10.101. The extraction works if not asked to send an email. If asked to send an email, following error, NoClassDefFoundError, occurs in server.log:

[INFO ] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.manager.report.ReportInternalJasperFilePM - save operation succeed into writing file D:\Automic\Reporter\data\reports\internal\jasperprints\tmp_T4-2 Average Load Distribution Throughout the Week_-_Charges moyenne par semaine_-_12.zip
[INFO ] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.manager.report.ReportInternalJasperFilePM - D:\Automic\Reporter\data\reports\internal\ jasperprints\tmp_T4-2 Average Load Distribution Throughout the Week_-_Charges moyenne par semaine_-_12.zip has been closed
[INFO ] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.process.ReportGenerationProcess - Report export to PDF format started
[INFO ] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.process.ReportGenerationProcess - Report export to PDF format finished. Output file name = [T4-2 Average Load Distribution Throughout the Week_-_Charges moyenne par semaine_-_12.pdf].
[INFO ] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.process.ReportGenerationProcess - Trying to send email to [[email protected]] with the execution of the report [Charges moyenne par semaine].
[ERROR] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.process.ReportGenerationProcess - Error in report generation process. Reason:
java.lang.NoClassDefFoundError: Could not initialize class javax.mail.internet.InternetAddress
at com.orsyp.reppub.server.mail.EmailSender.processRecipientList(EmailSender.java:201) ~[RepPubServer.jar:?]
at com.orsyp.reppub.server.mail.EmailSender.setTo(EmailSender.java:89) ~[RepPubServer.jar:?]
at com.orsyp.reppub.server.mail.EmailSender.setTo(EmailSender.java:69) ~[RepPubServer.jar:?]
at com.orsyp.reppub.server.util.SendEmailUtility.sendEmail(SendEmailUtility.java:55) ~[RepPubServer.jar:?]
at com.orsyp.reppub.server.process.ReportGenerationProcess.runReport(ReportGenerationProcess.java:462) [RepServerJava.jar:ORSYP_VERSION]
at com.orsyp.reppub.server.process.ReportGenerationProcess.generateReport(ReportGenerationProcess.java:174) [RepServerJava.jar:ORSYP_VERSION]
at com.orsyp.reppub.server.process.ReportGenerationProcess.call(ReportGenerationProcess.java:107) [RepServerJava.jar:ORSYP_VERSION]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
[ERROR] 22 Sep 2022 15:12:04 [pool-2-thread-35] com.orsyp.reppub.server.process.ReportGenerationProcess - [22 Sep 2022 15:12:04] Process ABORTED. Status changed to ABORTED. Report generation error: Could not initialize class javax.mail.internet.InternetAddress
[Ljava.lang.StackTraceElement;@207bf5d1

Environment

Release : 6.10.101

Component : Reporter Server

Cause

The issue is known issue and tracked under DU_AS-6921

 

Resolution

Update to a fix version listed below or a newer version if available.

Fix version(s): 
Component: Reporter
Dollar Universe 6.10.102 - Available

 

Additional Information

Solution Details: Reporter 6.10.101 cannot send reports via email.


It was due to an incompatibility with external libraries.
We had to change the library used by another.