Agent Action "ORDER RELEASE - MOD - EDIT SHIPMENT" Encounters Error: "Java.lang.NullPointerException" when One Order Release Line is Deleted Using Transaction Code 'RC' (Doc ID 2024111.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version 6.3.0 to 6.3.6 [Release 6.3]
Information in this document applies to any platform.

Symptoms

When attempting to use inbound integration with transaction code "RC" to delete one of the lines in an order release, the following error is observed in the log:

java.lang.NullPointerException
    at glog.util.LocalTimestamp.add(LocalTimestamp.java:224)
    at glog.business.rateservicescheduling.RateServiceHelper.createFixedDriveResult(RateServiceHelper.java:1144)
    at glog.business.rateservicescheduling.ServiceTimeNetworkManager.estimateDriveResult(ServiceTimeNetworkManager.java:481)
    at glog.business.rateservicescheduling.ServiceTimeNetworkManager.estimateDriveResultForEachLeg(ServiceTimeNetworkManager.java:417)
    at glog.business.rateservicescheduling.ServiceTimeNetworkManager.establishServiceTimeNetwork(ServiceTimeNetworkManager.java:325)
    at glog.business.rateservicescheduling.ServiceTimeNetworkManager.generateRateServiceSolutions(ServiceTimeNetworkManager.java:130)
    at glog.business.rateservicescheduling.RateServiceEngine.calculateRateServiceSolutionWindow(RateServiceEngine.java:1115)
    at glog.business.omd.TimeWindowChangePropagator.recalculateServiceTime(TimeWindowChangePropagator.java:260)
    at glog.business.omd.TimeWindowChangePropagator.propagateTimeWindowChanges(TimeWindowChangePropagator.java:200)
    at glog.business.omd.OrderModShipmentEditor.editShipmentsForPerspective(OrderModShipmentEditor.java:655)
    at glog.business.omd.OrderModShipmentEditor.editShipments(OrderModShipmentEditor.java:528)
    at glog.business.session.OMDProcessorSessionBean.editShipments(OMDProcessorSessionBean.java:89)
    at glog.business.session.OMDProcessorSessionServerSideEJBWrapper.editShipments(OMDProcessorSessionServerSideEJBWrapper.java:97)
    at glog.business.session.OMDProcessorSessionHome_f09cq7_EOImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at glog.business.session.OMDProcessorSessionHome_f09cq7_EOImpl.editShipments(Unknown Source)
    at glog.server.agent.business.order.ORModEditShipment.process(ORModEditShipment.java:88)
    at glog.server.agent.business.order.ORActionTopic.persist(ORActionTopic.java:49)
    at glog.server.agent.PersistActionTopic.execute(PersistActionTopic.java:34)
    at glog.server.agent.ActionWorkflow.execute(ActionWorkflow.java:49)
    at glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64)
    at glog.server.workflow.WorkflowSessionNonTransServerSideEJBWrapper.execute(WorkflowSessionNonTransServerSideEJBWrapper.java:40)
    at glog.server.workflow.WorkflowSessionNonTransServerSideEJBWrapper_t6tuwu_EOImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at glog.server.workflow.WorkflowSessionNonTransServerSideEJBWrapper_t6tuwu_EOImpl.execute(Unknown Source)
    at glog.server.workflow.WorkflowManager.execute(WorkflowManager.java:352)
    at glog.server.workflow.Trigger.trigger(Trigger.java:122)
    at glog.util.event.MemoryEventQueueRunnable.processEvent(MemoryEventQueueRunnable.java:145)
    at glog.util.event.MemoryEventQueueRunnable.run(MemoryEventQueueRunnable.java:100)
    at glog.util.event.EventThread.run(EventThread.java:86)
    at java.lang.Thread.run(Thread.java:662)

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

1. Create a Automatic Agent - say, TEST_AUTO_AGENT which is set to update the Shipment when the related Order Release is Modified.
2. Create an Order Release using integration with an xml file, say, TEST_Create_OR.xml - this will create an order release with 2 release lines and 2 Ship Units
3. Create a Shipment by running Bulk Plan - SHIPMENT_001
4. Create a transmission XML file with Transaction Code of 'RC' to remove one of the Release lines and the associated Ship Units - so that the order Release is left with just 1 Release Line and 1 Ship Unit.
5. When attempting to use inbound integration with the above file, the java.lang.NullPointerException error is observed in the log.

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