Unable To Create Sell Shipments With Accessorials Based On Buy Allocated Charge Cost.

(Doc ID 1269142.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version: 6.1.1 to 6.1.4 - Release: 6.1 to 6.1
Information in this document applies to any platform.

Symptoms

When attempting to build a sell side shipment where an accessorial is attached to the buy rate offering and buy side shipment and the accessorial is marked as "flow thru", the following error occurs.

ERROR
-----------------------
java.lang.NullPointerException
at glog.business.shipment.TShipmentCost.getSShipUnitLineSeq(TShipmentCost.java:412)
at glog.business.rate.rateengine.guts.RACAccessorial.costShipment(RACAccessorial.java:198)
at glog.business.rate.rateengine.RatingEngine.rateIt(RatingEngine.java:850)
at glog.business.rate.rateengine.RatingEngine.findShipmentCost(RatingEngine.java:726)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:615)
at glog.business.rate.rateengine.RatingEngine.findShipmentCosts(RatingEngine.java:383)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:274)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:190)
at glog.business.rate.ratefinder.RateFinder.findShipmentCosts(RateFinder.java:119)
at glog.business.rate.ratefinder.RateFinder.findCommonFeasibleRateEngineResult(RateFinder.java:546)
at glog.business.shipment.ShipmentBuilder.expandLegOptionOnCosts(ShipmentBuilder.java:3352)
at glog.business.shipment.ShipmentBuilder.calculateAndSetCosts(ShipmentBuilder.java:3237)
at glog.business.shipment.ShipmentBuilder.makeLegOptionsOnTLeg(ShipmentBuilder.java:1405)
at glog.business.shipment.ShipmentBuilder.makeLegOptions(ShipmentBuilder.java:1748)
at glog.business.shipment.ShipmentBuilder.buildBestItineraryOption(ShipmentBuilder.java:1459)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraph(ShipmentBuilder.java:1521)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraphCollection(ShipmentBuilder.java:506)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraphCollection(ShipmentBuilder.java:445)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraph(ShipmentBuilder.java:350)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraph(ShipmentBuilder.java:311)
at glog.business.action.OrderActionExecutor.buildShipmentGraph(OrderActionExecutor.java:383)
at glog.business.action.OrderActionExecutor.buildShipments(OrderActionExecutor.java:333)
at glog.business.session.OrderActionSessionBean.buildShipments(OrderActionSessionBean.java:242)
at glog.business.session.OrderActionSessionServerSideEJBWrapper.buildShipments(OrderActionSessionServerSideEJBWrapper.java:140)
at glog.business.session.OrderActionSessionHome_likuwd_EOImpl.buildShipments(OrderActionSessionHome_likuwd_EOImpl.java:3731)
at glog.business.session.gen.OrderActionSessionSkel.buildShipments(OrderActionSessionSkel.java:451)
at glog.business.session.gen.OrderActionSessionSkel.exec(OrderActionSessionSkel.java:132)
at glog.webserver.wrapper.SkelImpl.execDispatch(SkelImpl.java:15)
at glog.server.wrapper.WrapperSessionBean.execDispatch(WrapperSessionBean.java:61)
at glog.server.wrapper.WrapperSessionServerSideEJBWrapper.execDispatch(WrapperSessionServerSideEJBWrapper.java:48)
at glog.server.wrapper.WrapperSessionHome_a06097_EOImpl.execDispatch(WrapperSessionHome_a06097_EOImpl.java:61)
at glog.server.wrapper.WrapperSessionHome_a06097_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:590)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:478)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

Setup:
1. Create an Accessorial with the Always apply and Flow through checked. For the cost, charge x.xx per buy shipment.
2. Attached the Accessorial to the buy side rate offering, but not the sell.
3. Do not attach the accessorial to the order release.
4. Create a buy side shipment and validate the Accessorial Cost was added.

To Replicate:
1. Log into OTM 6.1.
2. Search for the order release with the shipment containing the buy side accessorial as described in the setup.
3. Select Order and go to Actions --> Build Sell Shipment --> Direct.
4. Click Ok.
5. Note the sell shipment fails to build. In the logs, the following error is seen:

2010-11-09 19:47:28.783 284628 Error Exception java.lang.NullPointerException


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