From: Sander A. <sa....@fz...> - 2024-07-30 08:26:51
|
Hello again, we have also the issue that email notifications are failing on the server. We use the same config and message templates like in the 3.16.1 which is working on other servers. We got the following stacktrace. Do you have any idea about this? 2024-07-30T07:53:11,572 [ForkJoinPool-1-worker-4179] ERROR unity.server.notification.EmailFacility: E-mail notification failed java.lang.ClassCastException: class com.sun.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandler (com.sun.mail.handlers.text_plain and javax.activation.DataContentHandler are in unnamed module of loader 'app') at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:631) ~[javax.activation-api-1.2.0.jar:1.2.0] at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:585) ~[javax.activation-api-1.2.0.jar:1.2.0] at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:630) ~[javax.activation-api-1.2.0.jar:1.2.0] at javax.activation.DataHandler.writeTo(DataHandler.java:329) ~[javax.activation-api-1.2.0.jar:1.2.0] at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:340) ~[javax.mail-1.6.2.jar:1.6.2] at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1575) ~[javax.mail-1.6.2.jar:1.6.2] at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2271) ~[javax.mail-1.6.2.jar:1.6.2] at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2231) ~[javax.mail-1.6.2.jar:1.6.2] at javax.mail.Transport.send(Transport.java:123) ~[javax.mail-1.6.2.jar:1.6.2] at pl.edu.icm.unity.engine.notifications.email.EmailChannel.sendEmail(EmailChannel.java:110) ~[unity-server-engine-4.0.0.jar:?] at pl.edu.icm.unity.engine.notifications.email.EmailChannel.lambda$sendNotification$0(EmailChannel.java:92) ~[unity-server-engine-4.0.0.jar:?] at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnable.exec(ForkJoinTask.java:1382) [?:?] at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) [?:?] at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) [?:?] at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) [?:?] at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) [?:?] at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [?:?] The configuration of the message templates is attached. Best regards, Sander -- Large-Scale Data Science Juelich Supercomputing Centre phone: +49 2461 61 8847 fax: +49 2461 61 6656 email: sa....@fz... ----------------------------------------------------------------------- ----------------------------------------------------------------------- Forschungszentrum Jülich GmbH 52425 Jülich Sitz der Gesellschaft: Jülich Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Stefan Müller Geschäftsführung: Prof. Dr. Astrid Lambrecht (Vorsitzende), Karsten Beneke (stellv. Vorsitzender), Prof. Dr. Ir. Pieter Jansens ----------------------------------------------------------------------- ----------------------------------------------------------------------- |