Openbravo Issue Tracking System - Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0040215 | Modules | External Data Integration | public | 2019-02-15 11:47 | 2019-06-11 10:39 | ||||||||||||||
Reporter | caristu | ||||||||||||||||||
Assigned To | caristu | ||||||||||||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Regression level | |||||||||||||||||||
Review Assigned To | AugustoMauch | ||||||||||||||||||
Support ticket | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Summary | 0040215: An orphan import entry is left when the execution of a batch fails | ||||||||||||||||||
Description | An orphan import entry is left when the execution of a batch fails | ||||||||||||||||||
Steps To Reproduce | 0a) Install the EDL examples module[1] 0b) Apply the attached patch. It will force the failure in the batch processing of the sample EDL process. 0c) Run ant smartbuild -Dlocal=no 1) Go to the [EDL Configuration] window and create a new configuration for the "UOM Import Process". 2) Run the [Import UOM Asynchronously] process. 3) Check the logs. Note that apart from the errors in the batch processing. There are some additional errors: ERROR org.openbravo.service.importprocess.ImportEntryProcessor.ImportEntryProcessRunnable - null java.lang.NullPointerException: null at org.openbravo.externaldata.integration.process.EDLImportEntryProcessor$EDLEntryProcessRunnable.shouldWaitForDependencies(EDLImportEntryProcessor.java:170) ~[classes/:?] at org.openbravo.externaldata.integration.process.EDLImportEntryProcessor$EDLEntryProcessRunnable.processEntry(EDLImportEntryProcessor.java:144) ~[classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:376) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:297) [classes/:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] 2019-02-15 11:43:10,855 [Import Entry - 4] ERROR org.openbravo.service.importprocess.ImportEntryProcessor.ImportEntryProcessRunnable - null This is because when the complete batch fails the original EDL request line is deleted, but not the associated ImportEntry (see attached image). Therefore when this ImportEntry is executed again by the ImportEntryManager it fails because it does not have any EDL related information. [1] https://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration.examples [^] | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=12662&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12997&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2019-02-15 11:47 | caristu | New Issue | |||||||||||||||||
2019-02-15 11:47 | caristu | Assigned To | => platform | ||||||||||||||||
2019-02-15 11:47 | caristu | Issue generated from | 0040214 | ||||||||||||||||
2019-02-15 14:42 | caristu | File Added: forceEDLError.diff | |||||||||||||||||
2019-02-15 14:43 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18334#r18334 | ||||||||||||||||
2019-03-28 10:56 | caristu | Relationship added | related to 0036615 | ||||||||||||||||
2019-05-30 09:14 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18844#r18844 | ||||||||||||||||
2019-05-30 09:18 | caristu | Proposed Solution updated | |||||||||||||||||
2019-05-30 09:18 | caristu | Assigned To | platform => caristu | ||||||||||||||||
2019-05-30 10:35 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18845#r18845 | ||||||||||||||||
2019-05-30 10:37 | caristu | File Added: orphanImportEntries.png | |||||||||||||||||
2019-05-30 13:34 | hgbot | Checkin | |||||||||||||||||
2019-05-30 13:34 | hgbot | Note Added: 0112267 | |||||||||||||||||
2019-05-30 13:34 | hgbot | Status | new => resolved | ||||||||||||||||
2019-05-30 13:34 | hgbot | Resolution | open => fixed | ||||||||||||||||
2019-05-30 13:34 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration/rev/8c539d5ddeff0de7d5c093ccda6cd53c97eb199b [^] | ||||||||||||||||
2019-05-30 13:34 | caristu | Review Assigned To | => AugustoMauch | ||||||||||||||||
2019-05-30 13:49 | hgbot | Checkin | |||||||||||||||||
2019-05-30 13:49 | hgbot | Note Added: 0112268 | |||||||||||||||||
2019-05-30 13:52 | hgbot | Checkin | |||||||||||||||||
2019-05-30 13:52 | hgbot | Note Added: 0112269 | |||||||||||||||||
2019-06-11 10:39 | AugustoMauch | Note Added: 0112568 | |||||||||||||||||
2019-06-11 10:39 | AugustoMauch | Status | resolved => closed | ||||||||||||||||
2021-11-25 10:58 | caristu | Relationship added | related to 0048156 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|