Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0051982 | Retail Modules | Send By Email | public | 2023-03-27 11:38 | 2023-04-04 12:45 |
Reporter | nicola_uva | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | pi | Fixed in Version | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | Gold | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0051982: Send Email is triggered before order getting processed | ||||
Description | Send Email is triggered before order getting processed. java.lang.NullPointerException at org.openbravo.retail.sendemail.classes.OBSMAIL_MailSender.sendEmail(OBSMAIL_MailSender.java:125) at org.openbravo.retail.sendemail.sync.OBSMAIL_SendEmailFromImportEntry.saveRecord(OBSMAIL_SendEmailFromImportEntry.java:45) at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:214) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:165) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:97) at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:57) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:434) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:348) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) 2023-03-27 15:00:00,249 [Import Entry - 6] ERROR org.openbravo.service.importprocess.ImportEntryProcessor.ImportEntryProcessRunnable - JSONObject["id"] not found. org.codehaus.jettison.json.JSONException: JSONObject["id"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) ~[jettison-1.3-patched.jar:?] at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) ~[jettison-1.3-patched.jar:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:255) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:165) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:97) ~[classes/:?] at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:57) ~[classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:434) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:348) [classes/:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] | ||||
Steps To Reproduce | Backoffice 1) Configure Email Config 2) Enable Send Email (Through preference, Touchpoint type) POS 1) Add all best sellers products (Mandatory) 2) Complete ticket 3) Send Mail & Continue Error occurred in backoffice. (Mail not sent). (If error not occurred , retry steps 1 to 3) | ||||
Proposed Solution | email event must be triggered after order is processed. https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/blob/master/src/org/openbravo/retail/sendemail/classes/OBSMAIL_MailSender.java#L125 [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-03-27 11:38 | nicola_uva | New Issue | |||
2023-03-27 11:38 | nicola_uva | Assigned To | => Retail | ||
2023-03-27 11:38 | nicola_uva | OBNetwork customer | => No | ||
2023-03-27 11:38 | nicola_uva | Triggers an Emergency Pack | => No | ||
2023-03-27 12:06 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2023-03-27 12:06 | ranjith_qualiantech_com | Status | new => scheduled | ||
2023-03-27 12:15 | nicola_uva | OBNetwork customer | No => Gold | ||
2023-03-27 12:15 | nicola_uva | Reproducibility | have not tried => always | ||
2023-03-27 17:41 | nicola_uva | Proposed Solution updated | |||
2023-03-28 06:41 | ranjith_qualiantech_com | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=25773#r25773 | ||
2023-03-28 07:10 | hgbot | Merge Request Status | => open | ||
2023-03-28 07:10 | hgbot | Note Added: 0148003 | |||
2023-04-04 12:45 | hgbot | Merge Request Status | open => approved | ||
2023-04-04 12:45 | hgbot | Resolution | open => fixed | ||
2023-04-04 12:45 | hgbot | Status | scheduled => closed | ||
2023-04-04 12:45 | hgbot | Note Added: 0148246 | |||
2023-04-04 12:45 | hgbot | Note Added: 0148247 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|