Openbravo Issue Tracking System - Modules
View Issue Details
0045139ModulesOperator Load Balancingpublic2020-09-25 08:412020-09-25 08:41
vmromanos 
Triage Omni WMS 
normalminoralways
newopen 
5
 
 
0045139: NullPointerException when bin has not a popularity code define
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.
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
Review ANY place in the class that might have a similar problem
No tags attached.
Issue History
2020-09-25 08:41vmromanosNew Issue
2020-09-25 08:41vmromanosAssigned To => Triage Finance

There are no notes attached to this issue.