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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040215
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] External Data Integrationminorhave not tried2019-02-15 11:472019-03-28 10:56
ReportercaristuView Statuspublic 
Assigned Toplatform 
PriorityhighResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0040215: An orphan import entry is left when the execution of a batch fails

DescriptionAn orphan import entry is left when the execution of a batch fails
Steps To Reproduce0a) 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] 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. 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 SolutionPerform the output configuration validations before reprocessing an EDL request?
TagsNo tags attached.
Attached Filesdiff file icon forceEDLError.diff [^] (367 bytes) 2019-02-15 14:42 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0036615 newplatform Error thrown when re-processing an EDL Request in asynchronous mode right after restarting tomcat 

-  Notes
There are no notes attached to this issue.

- 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 View Revisions
2019-03-28 10:56 caristu Relationship added related to 0036615


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker