Openbravo Issue Tracking System - Modules  | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0045139 | Modules | Operator Load Balancing | public | 2020-09-25 08:41 | 2020-09-25 08:41 | 
| Reporter | vmromanos | ||||
| Assigned To | Triage Omni WMS | ||||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | new | Resolution | open | ||
| 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 | |||||
| Support ticket | |||||
| OBNetwork customer | No | ||||
| Regression introduced in release | |||||
| Summary | 0045139: NullPointerException when bin has not a popularity code define | ||||
| Description | When you have a task linked to a bin without popularity code, the Task Assignment process throws a NullPointerException when there is a "Task To Rule" configuration that tries to assign that task. | ||||
| Steps To Reproduce | In AWO Client. Go to Warehouse Definition, select US West Coast. Go to Task Assignment tab and enter a new record. Fill only the mandatory fields, and select "Task to Rules" in Logic Applied field. Go to Operators tab and enter a new record for AWO_US_W user In database, make sure there are available tasks in this warehouse not assigned to any user: update obawo_task set ad_user_id=null where status = 'AV' and m_warehouse_id = 'F66CF439D1EC4ACDBD15A78A6195BCC1'; Remove the popularity code of all the bins: update m_locator set em_obawo_popularity_code=null where m_warehouse_id = 'F66CF439D1EC4ACDBD15A78A6195BCC1'; Back in the ERP, go to Process Request window, create a new record for * org, Process "Task Assignment" and run it inmediately. Check the exception is thrown. Error executing process org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskAssignmentProcess org.quartz.JobExecutionException: null at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskAssignmentProcess.doExecute(TaskAssignmentProcess.java:36) ~[classes/:?] at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:85) ~[classes/:?] at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:65) [classes/:?] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?] Caused by: java.lang.NullPointerException at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskMatcherWithRule.matchesOrNullPopCodeMax(TaskMatcherWithRule.java:122) ~[classes/:?] at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskMatcherWithRule.match(TaskMatcherWithRule.java:60) ~[classes/:?] at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskAssigment.assignTaskToRules(TaskAssigment.java:216) ~[classes/:?] at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskAssigment.processTaskToRules(TaskAssigment.java:205) ~[classes/:?] at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskAssigment.exec(TaskAssigment.java:58) ~[classes/:?] at org.openbravo.warehouse.advancedwarehouseoperations.operatorloadbalancing.ad_process.TaskAssignmentProcess.doExecute(TaskAssignmentProcess.java:32) ~[classes/:?] ... 4 more  | ||||
| Proposed Solution | Review ANY place in the class that might have a similar problem | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2020-09-25 08:41 | vmromanos | New Issue | |||
| 2020-09-25 08:41 | vmromanos | Assigned To | => Triage Finance | ||
| 2020-09-25 08:41 | vmromanos | OBNetwork customer | => No | ||
| There are no notes attached to this issue. |