java.lang.NullPointerException On Shipment Planning Actions. (Doc ID 1404166.1)

Last updated on JULY 09, 2014

Applies to:

Oracle Transportation Management - Version: 6.2.0 to 6.2.5 - Release: 6.2 to 6.2
Information in this document applies to any platform.

Symptoms

When attempting to run shipment planning actions, for example 'Change Equipment Group', the following error occurs.

ERROR
-----------------------
java.lang.NullPointerException
at glog.util.beandata.BeanDataUpdater.preStore(BeanDataUpdater.java:486)
at glog.util.beandata.BeanDataUpdater.update(BeanDataUpdater.java:221)
at glog.util.beandata.BeanDataUpdater.update(BeanDataUpdater.java:196)
at glog.util.beandata.BeanDataUpdater.update(BeanDataUpdater.java:261)
at glog.util.beandata.BeanDataUpdater.update(BeanDataUpdater.java:182)
at glog.business.util.EntitySaver.update(EntitySaver.java:152)
at glog.business.util.Persistence.insertupdate(Persistence.java:290)
at glog.business.shipment.PlanningObjectCommitter.commitTShipment(PlanningObjectCommitter.java:925)
at glog.business.shipment.ShipmentUpdateSessionBean.commitShipmentNode(ShipmentUpdateSessionBean.java:872)
at glog.business.shipment.ShipmentUpdateSessionBean.commitShipmentGraphUnlocked(ShipmentUpdateSessionBean.java:1551)
at glog.business.shipment.ShipmentUpdateSessionBean.commitShipmentGraph(ShipmentUpdateSessionBean.java:1309)
at glog.business.shipment.ShipmentUpdateSessionServerSideEJBWrapper.commitShipmentGraph(ShipmentUpdateSessionServerSideEJBWrapper.java:344)
at glog.business.shipment.ShipmentUpdateSessionBean.commitShipmentGraph(ShipmentUpdateSessionBean.java:1845)
at glog.business.shipment.ShipmentUpdateSessionServerSideEJBWrapper.commitShipmentGraph(ShipmentUpdateSessionServerSideEJBWrapper.java:303)
at glog.business.shipment.ShipmentUpdateSessionHome_qj7mtr_EOImpl.commitShipmentGraph(ShipmentUpdateSessionHome_qj7mtr_EOImpl.java:1666)
at glog.business.action.ShipmentPlanningActionExecutor.manualEquipmentChange(ShipmentPlanningActionExecutor.java:1870)
at glog.business.session.ShipmentPlanningActionSessionBean.manualEquipmentChange(ShipmentPlanningActionSessionBean.java:1009)
at glog.business.session.ShipmentPlanningActionSessionServerSideEJBWrapper.manualEquipmentChange(ShipmentPlanningActionSessionServerSideEJBWrapper.java:889)
at glog.business.session.ShipmentPlanningActionSessionServerSideEJBWrapper_7zfvrj_EOImpl.manualEquipmentChange(ShipmentPlanningActionSessionServerSideEJBWrapper_7zfvrj_EOImpl.java:5395)
at glog.business.session.gen.ShipmentPlanningActionSessionSkel.manualEquipmentChange(ShipmentPlanningActionSessionSkel.java:896)
at glog.business.session.gen.ShipmentPlanningActionSessionSkel.exec(ShipmentPlanningActionSessionSkel.java:179)
at glog.webserver.wrapper.SkelImpl.execDispatch(SkelImpl.java:15)
at glog.server.wrapper.WrapperSessionBean.execDispatch(WrapperSessionBean.java:62)
at glog.server.wrapper.WrapperSessionServerSideEJBWrapper.execDispatch(WrapperSessionServerSideEJBWrapper.java:48)
at glog.server.wrapper.WrapperSessionHome_a06097_EOImpl.execDispatch(WrapperSessionHome_a06097_EOImpl.java:58)
at glog.server.wrapper.WrapperSessionHome_a06097_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
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:118)
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:

1. Create a user.
2. Create a VPD profile with the following VPD predicate.

exists (select 'x' from shipment_involved_party shlip, contact c, contact_group cg where shipment.shipment_gid = shlip.shipment_gid and shlip.involved_party_qual_gid = 'LOGISTICS' and shlip.involved_party_contact_gid = cg.group_contact_gid and cg.contact_gid = c.contact_gid and c.gl_user_gid = SYS_CONTEXT('gl_user_ctx','gl_user_gid'))

3. Assign this VPD profile to the user.

4. Login as this user and try to run any of the shipment planning actions.

5. See the error.

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