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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045139
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Operator Load Balancingminoralways2020-09-25 08:412020-09-25 08:41
ReportervmromanosView Statuspublic 
Assigned ToTriage Omni WMS 
PrioritynormalResolutionopenFixed 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

0045139: NullPointerException when bin has not a popularity code define

DescriptionWhen 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 ReproduceIn 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 SolutionReview ANY place in the class that might have a similar problem
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker