Null Pointer Received Recalculating Cost On Voucher Via Agent When Cost Description Is Null (Doc ID 1371286.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version: 5.5.05.08 and later   [Release: 5.5 and later ]
Information in this document applies to any platform.

Symptoms


When Attempting to recalculate Cost on a Voucher via an Agent when the cost description is Null, the following error is Received:

ERROR
-----------------------2011-08-10 13:05:22.472 102381 Error Exception java.lang.NullPointerException

java.lang.NullPointerException
at glog.business.rate.rateengine.REShipment.initVAllocCosts(REShipment.java:687)
at glog.business.rate.rateengine.REShipment.getVAllocCosts(REShipment.java:2102)
at glog.business.rate.rateengine.REShipment.getVAllocCostsIterator(REShipment.java:2109)
at glog.business.rate.rateengine.REShipment.getIterator(REShipment.java:3896)
at glog.business.rate.rateengine.Ratable.initCounts(Ratable.java:213)
at glog.business.rate.rateengine.RECharge.evaluate(RECharge.java:337)
at glog.business.rate.rateengine.RACGrid2.costShipment(RACGrid2.java:344)
at glog.business.rate.rateengine.RatingEngine.rateIt(RatingEngine.java:715)
at glog.business.rate.rateengine.RatingEngine.findShipmentCost(RatingEngine.java:579)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:464)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:373)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:199)
at glog.business.action.ShipmentPlanningActionExecutor.reCalculateShipmentCost(ShipmentPlanningActionExecutor.java:802)
at glog.business.session.ShipmentPlanningActionSessionBean.reCalculateShipmentCost(ShipmentPlanningActionSessionBean.java:435)
at glog.business.session.ShipmentPlanningActionSessionServerSideEJBWrapper.reCalculateShipmentCost(ShipmentPlanningActionSessionServerSideEJBWrapper.java:1318)
at glog.business.session.ShipmentPlanningActionSessionServerSideEJBWrapper_7zfvrj_EOImpl.reCalculateShipmentCost(ShipmentPlanningActionSessionServerSideEJBWrapper_7zfvrj_EOImpl.java:3664)
at glog.server.agent.business.shipment.RecalcShipment.execute(RecalcShipment.java:57)
at glog.server.agent.ActionWorkflow.execute(ActionWorkflow.java:51)
at glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper.execute(WorkflowSessionServerSideEJBWrapper.java:32)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.execute(WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.java:100)
at glog.server.workflow.WorkflowManager.execute(WorkflowManager.java:341)
at glog.server.workflow.Trigger.trigger(Trigger.java:123)
at glog.util.event.MemoryEventQueueRunnable.processEvent(MemoryEventQueueRunnable.java:141)
at glog.util.event.MemoryEventQueueRunnable.run(MemoryEventQueueRunnable.java:96)
at glog.util.event.EventThread.run(EventThread.java:82)
at java.lang.Thread.run(Thread.java:534)
agentPlanning - 3
2011-08-10 13:05:22.473 102381 Debug RateEngine cause.RatingEngine.ExceptionCaught (method=RECharge.evaluate(), stackTrace=java.lang.NullPointerException


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create an Invoice which does not have the Description Field filled in.
2. Approve the Invoice.
3. Attempt to Recalculate Cost on a voucher via agent.
4. Note the Error Received.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms