Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0039649 | Openbravo ERP | A. Platform | public | 2018-11-20 09:35 | 2018-12-11 20:22 |
|
Reporter | aferraz | |
Assigned To | caristu | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q1 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Packaging and release |
Regression date | 2018-06-25 |
Regression introduced in release | main |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/cf4416b527d97adba57b97484b66a33284101738 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0039649: Cannot send mail using EmailEventManager |
Description | Cannot send mail using EmailEventManager.
A NPE is raised in EmailManager line 225 when executing: transport.sendMessage(message, message.getAllRecipients()); See stack trace:
Caused by: java.lang.NullPointerException
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1265)
at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:225)
at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:69)
at org.openbravo.email.EmailEventManager.sendEmail(EmailEventManager.java:113)
... 51 more |
Steps To Reproduce | Create an event to send a mail following: http://wiki.openbravo.com/wiki/How_to_send_emails_on_events [^]
- Create an email event listener extending EmailEventContentGenerator class.
- Run EmailEventManager.sendEmail(String event, final String recipient, Object data)
- Check email is not sent
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0039650 | 3.0PR18Q4 | closed | caristu | Cannot send mail using EmailEventManager | caused by | design defect | 0038524 | | closed | jarmendariz | can't configure timeout for sending emails |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-11-20 09:35 | aferraz | New Issue | |
2018-11-20 09:35 | aferraz | Assigned To | => platform |
2018-11-20 09:35 | aferraz | Modules | => Core |
2018-11-20 09:35 | aferraz | Triggers an Emergency Pack | => No |
2018-11-20 09:35 | aferraz | Relationship added | caused by 0038524 |
2018-11-20 09:44 | caristu | Assigned To | platform => caristu |
2018-11-20 10:39 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17934#r17934 |
2018-11-20 10:40 | caristu | Description Updated | bug_revision_view_page.php?rev_id=17936#r17936 |
2018-11-20 10:40 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17937#r17937 |
2018-11-20 10:46 | caristu | Issue cloned | 0039650 |
2018-11-20 10:46 | caristu | Relationship added | depends on 0039650 |
2018-11-20 10:48 | caristu | Regression level | => Packaging and release |
2018-11-20 10:48 | caristu | Regression date | => 2018-06-25 |
2018-11-20 10:48 | caristu | Regression introduced in release | => main |
2018-11-20 10:48 | caristu | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/cf4416b527d97adba57b97484b66a33284101738 [^] |
2018-11-20 11:02 | hgbot | Checkin | |
2018-11-20 11:02 | hgbot | Note Added: 0108005 | |
2018-11-20 11:02 | hgbot | Status | new => resolved |
2018-11-20 11:02 | hgbot | Resolution | open => fixed |
2018-11-20 11:02 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/55ec291da7947213c8994b9d41fd849813036c96 [^] |
2018-11-20 16:18 | hgbot | Checkin | |
2018-11-20 16:18 | hgbot | Note Added: 0108013 | |
2018-11-20 17:09 | hgbot | Checkin | |
2018-11-20 17:09 | hgbot | Note Added: 0108014 | |
2018-11-20 17:16 | caristu | Note Added: 0108015 | |
2018-11-23 13:21 | hgbot | Checkin | |
2018-11-23 13:21 | hgbot | Note Added: 0108080 | |
2018-11-23 13:22 | alostale | Review Assigned To | => alostale |
2018-11-23 13:22 | alostale | Status | resolved => closed |
2018-11-23 13:22 | alostale | Fixed in Version | => 3.0PR19Q1 |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108479 | |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108483 | |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108495 | |
Notes |
|
(0108005)
|
hgbot
|
2018-11-20 11:02
|
|
Repository: erp/devel/pi
Changeset: 55ec291da7947213c8994b9d41fd849813036c96
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Nov 20 10:58:55 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/55ec291da7947213c8994b9d41fd849813036c96 [^]
fixes issue 39649: Cannot send mail using EmailEventManager
A NPE was being thrown when sending emails through the EmailEventManager because it was missing to send the email recipient
---
M src/org/openbravo/email/EmailEventManager.java
---
|
|
|
(0108013)
|
hgbot
|
2018-11-20 16:18
|
|
Repository: erp/devel/pi
Changeset: 1d87a548b2e0e4026bb9351457b1b10a948c97b3
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Nov 20 16:16:56 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1d87a548b2e0e4026bb9351457b1b10a948c97b3 [^]
related to issue 39649: minor code improvements
- Make anonymous inner Runnable a lambda
- Use stream API to retrieve the valid e-mail generators
---
M src/org/openbravo/email/EmailEventManager.java
---
|
|
|
(0108014)
|
hgbot
|
2018-11-20 17:09
|
|
Repository: erp/mods/org.openbravo.platform.features
Changeset: 81095ca78e7d54bcaedc5d00c149fae1a32d7ad8
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Nov 20 17:09:17 2018 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.platform.features/rev/81095ca78e7d54bcaedc5d00c149fae1a32d7ad8 [^]
related to issue 39649: added process definition to test e-mail events feature
---
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_TREENODE.xml
M src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
A src/org/openbravo/platform/features/email/EmailGenerator.java
A src/org/openbravo/platform/features/process/SendEmailActionHandler.java
---
|
|
|
|
|
|
(0108080)
|
hgbot
|
2018-11-23 13:21
|
|
Repository: erp/devel/pi
Changeset: e0749d9a2b2588663c8a7dbf451b2e2e3c96cfd9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Nov 23 13:21:32 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e0749d9a2b2588663c8a7dbf451b2e2e3c96cfd9 [^]
related to bug 39649: small refactors
- removed redundant comments
- no need to define small method to invoke from lambda
- added some context to log
---
M src/org/openbravo/email/EmailEventManager.java
---
|
|
|
|
|
|
|
|
|
|
|