Java Null Pointer Error Received When Attempting to Commit Assignment of Driver on Shipment (Doc ID 1225293.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Transportation Management - Version 6.1.2 and later
Information in this document applies to any platform.
***Checked for relevance on 21-Nov-2013***

Symptoms

When attempting to perform the action "Commit Assignment", the following error occurs.

ERROR
-----------------------
2010 10-09-08 09:59:14.398 211437 Error Exception java.lang.NullPointerException

java.lang.NullPointerException
at glog.ejb.shipment.db.ShipmentPK.hashCode(ShipmentPK.java:52)
at weblogic.ejb.container.locks.ExclusiveLockManager.getBucketForPk(ExclusiveLockManager.java:75)
at weblogic.ejb.container.locks.ExclusiveLockManager.getBucketForPk(ExclusiveLockManager.java:79)
at weblogic.ejb.container.locks.ExclusiveLockManager.getOwner(ExclusiveLockManager.java:123)
at weblogic.ejb.container.manager.ExclusiveEntityManager.alreadyCached(ExclusiveEntityManager.java:1343)
at weblogic.ejb.container.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:2361)
at weblogic.ejb.container.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:2322)
at weblogic.ejb.container.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:389)
at glog.ejb.shipment.ejb_Shipment_2ujudi_HomeImpl.findByPrimaryKey(ejb_Shipment_2ujudi_HomeImpl.java:552)
at glog.business.action.shipment.ShipmentActionHelper.getStatusValue(ShipmentActionHelper.java:147)
at glog.business.action.fleetassignment.driver.CommitDriverAssignmentAction.commitDriverAssignment(CommitDriverAssignmentAction.java:73)
at glog.business.session.FleetAssignmentActionSessionBean.commitDriverAssignment(FleetAssignmentActionSessionBean.java:2526)
at glog.business.session.FleetAssignmentActionSessionServerSideEJBWrapper.commitDriverAssignment(FleetAssignmentActionSessionServerSideEJBWrapper.java:1845)
at glog.business.session.FleetAssignmentActionSessionServerSideEJBWrapper_c0gjd_EOImpl.commitDriverAssignment(FleetAssignmentActionSessionServerSideEJBWrapper_c0gjd_EOImpl.java:4238)
at glog.business.session.gen.FleetAssignmentActionSessionSkel.commitDriverAssignment(FleetAssignmentActionSessionSkel.java:1502)
at glog.business.session.gen.FleetAssignmentActionSessionSkel.exec(FleetAssignmentActionSessionSkel.java:289)
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:232)
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. Log into OTM
2. Search for a shipment with a driver assigned.
3. Select the shipment and go to Actions --> Fleet Management --> Manage Assignment --> Commit Assignment.
4. Null pointer is received.


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