Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039650
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformmajorhave not tried2018-11-20 10:462018-11-23 13:22
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityimmediateResolutionfixedFixed in Version3.0PR18Q4
StatusclosedFix in branchFixed in SCM revision874ba7f431a6
ProjectionnoneETAnoneTarget Version3.0PR18Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression levelPackaging and release
Regression date2018-06-25
Regression introduced in releasemain
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/cf4416b527d97adba57b97484b66a33284101738 [^]
Triggers an Emergency PackNo
Summary

0039650: Cannot send mail using EmailEventManager

DescriptionCannot 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 ReproduceCreate 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

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0039649 closedcaristu Cannot send mail using EmailEventManager 

-  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 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
Powered by Mantis Bugtracker