Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039577 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | always | 2018-11-01 08:28 | 2018-11-08 19:34 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR18Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | c98632daecbf | ||||
Projection | none | ETA | none | Target Version | 3.0PR18Q4 | |||
OS | Any | Database | Any | Java version | 10+ | |||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039577: JDK 10+: cannot send email | |||||||
Description | It is not possible to send emails using Java 10 or 11. | |||||||
Steps To Reproduce | 1. Open Client window and configure Email settings tabs 2. Create and complete a Sales Invoice 3. Click on Email toolbar button and send it -> ERROR: "An unexpected error has occurred" In logs: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:179) at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:85) at javax.activation.DataHandler.getCommandMap(DataHandler.java:167) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:629) at javax.activation.DataHandler.writeTo(DataHandler.java:329) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:340) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1573) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1172) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:522) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1531) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2271) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2231) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1910) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1315) at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:224) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0107708) hgbot (developer) 2018-11-01 11:58 |
Repository: erp/backports/3.0PR18Q4 Changeset: c98632daecbf1a9fc415dd2916a300134efd266c Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu Nov 01 09:54:53 2018 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/c98632daecbf1a9fc415dd2916a300134efd266c [^] fixed bug 39577: cannot send email with JDK10+ It was not possible because mail libraries relies on some classes that were in hidden modules by default starting from JDK 10 and completelly reomved in 11. Fixed by replacing javax.activation-api-1.2.0 by javax.activation-1.2.0 (com.sun.activation:javax.activation). Note javax.activation-api is not purely an API but it also includes implementation for classes in javax.activation package (which was included in previous JDKs) but it depends on classes in com.sun.activation which have also been removed from JDK and not included in activation-api jar but yes in activation one. The contents of javax.activation package are identicall in both jars. Note also javax.mail-1.6.1 depends on activation-1.1 (javax.activation:activation) to manage MIME data, that version was released in 2009; newer javax.activation-1.2.0 (2017) has same API including new fixes. --- M legal/Licensing.txt A lib/runtime/javax.activation-1.2.0.jar R lib/runtime/javax.activation-api-1.2.0.jar --- |
(0107813) caristu (developer) 2018-11-08 19:34 |
Reviewed + tested OK. |
Issue History | |||
Date Modified | Username | Field | Change |
2018-11-01 08:30 | alostale | Type | defect => backport |
2018-11-01 08:30 | alostale | Target Version | => 3.0PR18Q4 |
2018-11-01 11:58 | hgbot | Checkin | |
2018-11-01 11:58 | hgbot | Note Added: 0107708 | |
2018-11-01 11:58 | hgbot | Status | scheduled => resolved |
2018-11-01 11:58 | hgbot | Resolution | open => fixed |
2018-11-01 11:58 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/c98632daecbf1a9fc415dd2916a300134efd266c [^] |
2018-11-08 19:34 | caristu | Note Added: 0107813 | |
2018-11-08 19:34 | caristu | Status | resolved => closed |
2018-11-08 19:34 | caristu | Fixed in Version | => 3.0PR18Q4 |
Copyright © 2000 - 2009 MantisBT Group |