Java.Lang.Null Pointer Exception Received When Using Divert Shipment Action on Multileg Itinerary (Doc ID 1278238.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

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

Symptoms


When attempting to Divert a shipment using a multi-leg itinerary against an order movement, the following error is received:

ERROR
-----------------------
java.lang.NullPointerException

java.lang.NullPointerException
at glog.business.action.ShipmentPlanningActionExecutor.divertShipment(ShipmentPlanningActionExecutor.java:2008)
at glog.business.session.ShipmentPlanningActionSessionBean.divertShipment(ShipmentPlanningActionSessionBean.java:1693)
at glog.business.session.ShipmentPlanningActionSessionServerSideEJBWrapper.divertShipment(ShipmentPlanningActionSessionServerSideEJBWrapper.java:1294)
at glog.business.session.ShipmentPlanningActionSessionServerSideEJBWrapper_7zfvrj_EOImpl.divertShipment(ShipmentPlanningActionSessionServerSideEJBWrapper_7zfvrj_EOImpl.java:1006)
at glog.business.session.gen.ShipmentPlanningActionSessionSkel.divertShipment(ShipmentPlanningActionSessionSkel.java:1195)
at glog.business.session.gen.ShipmentPlanningActionSessionSkel.exec(ShipmentPlanningActionSessionSkel.java:233)
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
-----------------------
Setup:
Created Itinerary with 2 TL legs. The first leg is marked as primary.

Created 2 Order Movements By doing the following:
1. Select Order which has the itinerary created listed on the constraints tab and go to Actions --> Order Management --> Manage Buy Order Movements --> With Best Itinerary.
2. Note 2 order movements are generated.

The issue can be reproduced at will with the following steps:
1. Log into OTM.
2. Go to Order Management --> Order Movement --> Order Movement.
3. Search for the 1st Order Movement created.
4. Select OM and go to Actions --> Operational Planning --> Create Shipment --> Build Shipment On Leg.
5. Note Shipment created.
6. Tender/Accept Shipment.
7. Selected Shipment and go to Actions --> Shipment Management --> Events --> Add SHipment Event.
8. Add an Arrive at Pickup location event for Stop 1.
9. Select Shipment and go to Actions --> Operational Planning --> Change Shipment Route --> Divert Shipment.
10. Enter the Destination location ID of the 2nd leg.
11. Note the Error:

At 2010-12-16 18:37:47.533


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