Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0039650 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| backport | [Openbravo ERP] A. Platform | major | have not tried | 2018-11-20 10:46 | 2018-11-23 13:22 | |||
| Reporter | caristu | View Status | public | |||||
| Assigned To | caristu | |||||||
| Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR18Q4 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | 874ba7f431a6 | ||||
| Projection | none | ETA | none | Target Version | 3.0PR18Q4 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | alostale | |||||||
| OBNetwork customer | No | |||||||
| 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 | 0039650: 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 |
|
|
(0108006) hgbot (developer) 2018-11-20 11:14 |
Repository: erp/backports/3.0PR18Q4 Changeset: 874ba7f431a6174e122631e31ab1527c894cb23d Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Tue Nov 20 10:58:55 2018 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/874ba7f431a6174e122631e31ab1527c894cb23d [^] fixes issue 39650: 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 --- |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2018-11-20 10:46 | caristu | New Issue | |
| 2018-11-20 10:46 | caristu | Assigned To | => caristu |
| 2018-11-20 10:46 | caristu | OBNetwork customer | => No |
| 2018-11-20 10:46 | caristu | Modules | => Core |
| 2018-11-20 10:46 | caristu | Triggers an Emergency Pack | => No |
| 2018-11-20 10:46 | caristu | Issue generated from | 0039649 |
| 2018-11-20 10:46 | caristu | Relationship added | blocks 0039649 |
| 2018-11-20 10:47 | caristu | Regression level | => Packaging and release |
| 2018-11-20 10:47 | caristu | Regression date | => 2018-06-25 |
| 2018-11-20 10:47 | caristu | Regression introduced in release | => main |
| 2018-11-20 10:47 | caristu | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/cf4416b527d97adba57b97484b66a33284101738 [^] |
| 2018-11-20 11:14 | hgbot | Checkin | |
| 2018-11-20 11:14 | hgbot | Note Added: 0108006 | |
| 2018-11-20 11:14 | hgbot | Status | new => resolved |
| 2018-11-20 11:14 | hgbot | Resolution | open => fixed |
| 2018-11-20 11:14 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/874ba7f431a6174e122631e31ab1527c894cb23d [^] |
| 2018-11-20 11:14 | caristu | Review Assigned To | => alostale |
| 2018-11-23 13:22 | alostale | Status | resolved => closed |
| 2018-11-23 13:22 | alostale | Fixed in Version | => 3.0PR18Q4 |
| Copyright © 2000 - 2009 MantisBT Group |