Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039649 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2018-11-20 09:35 | 2018-12-11 20:22 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR19Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 55ec291da794 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0108005) hgbot (developer) 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 (developer) 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 (developer) 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 --- |
(0108015) caristu (developer) 2018-11-20 17:16 |
Added new test in TestLink: https://testlink.openbravo.com/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-11026 [^] |
(0108080) hgbot (developer) 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 --- |
(0108479) hudsonbot (developer) 2018-12-11 20:22 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/470e3cd384c5 [^] Maturity status: Test |
(0108483) hudsonbot (developer) 2018-12-11 20:22 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/470e3cd384c5 [^] Maturity status: Test |
(0108495) hudsonbot (developer) 2018-12-11 20:22 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/470e3cd384c5 [^] Maturity status: Test |
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 | View Revisions |
2018-11-20 10:40 | caristu | Description Updated | View Revisions |
2018-11-20 10:40 | caristu | Steps to Reproduce Updated | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |