Processing an Actual Shipment With Transaction Code Of RC to Change an SAW Shipment Get: "java.lang.NullPointerException" (Doc ID 2041903.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version 6.2.0 to 6.4.1 [Release 6.2 to 6.4]
Information in this document applies to any platform.

Symptoms

When upload a Shipment Actual XML with Transaction Code of RC to make changes to a SAW Shipment that has Involved party information added to stop ship unit, it fails with :

java.lang.NullPointerException

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

1) Set the following property via the servlet:

glog.business.shipmentactual.syncWithOrder=false

2) Delete shipment TEST_SHIPMENT
3) Upload shipment actual (TEST_ACTUAL1.xml) to recreate the shipment -> TEST_SHIPMENT
4) Go to Shipment Management-> Shipment Management -> Shipment Stops
5) Query for the stops of the shipment TEST_SHIPMENT and edit stop1
6) For ship unit TEST_SHIPMENT_SHIP_UNIT-L1-S1 – click on involved party icon and add a party
           -> involved party: TEST_Involved_Party
           -> involved party qual: bank
           -> communication: by contact
7) Save
8) Upload ActualShipment XML - TEST_ACTUAL2.xml
9) It fails with error:

java.lang.NullPointerException
at glog.business.shipment.TShipmentStop.addTChildren(TShipmentStop.java:526)
at glog.business.shipment.TShipmentStop.(TShipmentStop.java:468)
at glog.business.shipment.TShipmentStop.(TShipmentStop.java:449)
at glog.business.shipment.TShipment.(TShipment.java:817)
at glog.business.planningstructure.PlanningObjectLoader.getTShipment(PlanningObjectLoader.java:348)
at glog.business.shipmentactual.ShipmentActualExecutor.execute(ShipmentActualExecutor.java:199)
at glog.business.shipmentactual.ShipmentActualExecutor.execute(ShipmentActualExecutor.java:124)
at glog.business.shipmentactual.ShipmentActualSessionBean.executeShipmentActual(ShipmentActualSessionBean.java:99)
at glog.business.shipmentactual.ShipmentActualSessionServerSideEJBWrapper.executeShipmentActual(ShipmentActualSessionServerSideEJBWrapper.java:46)
at glog.business.shipmentactual.ShipmentActualSessionHome_4tsowh_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at glog.business.shipmentactual.ShipmentActualSessionHome_4tsowh_EOImpl.executeShipmentActual(Unknown Source)
at glog.business.shipmentactual.ShipmentPersistenceHandler.handlePersist(ShipmentPersistenceHandler.java:56)
at glog.util.persistence.PersistenceManager.execute(PersistenceManager.java:97)
at glog.server.compareengine.TopicPublisher.persist(TopicPublisher.java:161)
at glog.server.compareengine.TopicPublisher.publish(TopicPublisher.java:64)
at glog.server.compareengine.CompareEngine.compare(CompareEngine.java:116)
at glog.util.genericcontainer.GenericContainerUtilSessionBean.compare(GenericContainerUtilSessionBean.java:141)
at glog.util.genericcontainer.GenericContainerUtilSessionBean.compareAndStore(GenericContainerUtilSessionBean.java:90)
at glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper.compareAndStore(GenericContainerUtilSessionServerSideEJBWrapper.java:210)
at glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper_6hrtm7_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper_6hrtm7_EOImpl.compareAndStore(Unknown Source)
at glog.integration.xmlbasewrapper.XmlBaseWrapper.persist(XmlBaseWrapper.java:294)
at glog.integration.xmlbasewrapper.XmlBaseWrapper.persistContainerSelf(XmlBaseWrapper.java:328)
at glog.integration.application.shipment.ShipmentWrapper.persistContainerSelf(ShipmentWrapper.java:1381)
at glog.integration.xmlbasewrapper.XmlBaseWrapper.persistViaContainer(XmlBaseWrapper.java:397)
at glog.integration.application.shipment.ShipmentInterface.persistIndivXML(ShipmentInterface.java:265)
at glog.integration.application.shipment.ShipmentInterface.persistXML(ShipmentInterface.java:193)
at glog.integration.application.BaseInterface.persistXMLBase(BaseInterface.java:195)
at glog.integration.application.TransactionProcessor.processTransaction(TransactionProcessor.java:223)
at glog.integration.application.TransactionProcessor.processTransaction(TransactionProcessor.java:353)
at glog.server.workflow.transproc.TransProc.execute(TransProc.java:110)
at glog.server.workflow.SimpleWorkflow.execute(SimpleWorkflow.java:23)
at glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper.execute(WorkflowSessionServerSideEJBWrapper.java:38)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper_61kh96_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)

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