Cannot Un-Assign Driver From A Shipment, Error: Exception java.lang.ArrayIndexOutOfBoundsException: -1 (Doc ID 1330665.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

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

Symptoms

On OTM version 6.1.4 when trying to unassign a Driver the following error is seen:

ERROR
-----------------------
Exception java.lang.ArrayIndexOutOfBoundsException: -1

java.lang.ArrayIndexOutOfBoundsException: -1
at glog.optimization.scheduling.HOSRule.setConsumedActivityTimeInSecond(HOSRule.java:362)
at glog.optimization.scheduling.HOSRule.increaseConsumedActivityTime(HOSRule.java:674)
at glog.optimization.scheduling.HOSRule.increaseConsumedActivityTime(HOSRule.java:648)
at glog.optimization.scheduling.HOSRule.increaseConsumedActivityTime(HOSRule.java:640)
at glog.optimization.scheduling.HOSCalculator.adjustConsumedActivityTimes(HOSCalculator.java:311)
at glog.optimization.scheduling.HOSCalculator.calculate(HOSCalculator.java:133)
at glog.optimization.scheduling.HOSCalculator.processPriority(HOSCalculator.java:106)
at glog.optimization.scheduling.HOSCalculator.calculate(HOSCalculator.java:89)
at glog.optimization.scheduling.DriveSimulator.processArrival(DriveSimulator.java:608)
at glog.optimization.scheduling.DriveSimulator.driveAtNode(DriveSimulator.java:507)
at glog.optimization.scheduling.DriveSimulator.driveNode(DriveSimulator.java:377)
at glog.optimization.scheduling.DriveSimulator.drive(DriveSimulator.java:334)
at glog.optimization.scheduling.DriveSimulator.drive(DriveSimulator.java:160)
at glog.optimization.scheduling.DriveSimulator.drive(DriveSimulator.java:70)
at glog.optimization.scheduling.SimulationRateServiceScheduler.drive(SimulationRateServiceScheduler.java:39)
at glog.business.rateservicescheduling.RateServiceDriveEngine.drive(RateServiceDriveEngine.java:132)
at glog.business.rateservicescheduling.RateServiceEngine.drive(RateServiceEngine.java:187)
at glog.business.rateservicescheduling.RateServiceEngine.calculateRateServiceResults(RateServiceEngine.java:805)
at glog.business.service.shipment.RedriveShipmentService.redriveServiceTimeForShipmentGraph(RedriveShipmentService.java:130)
at glog.business.service.shipment.RedriveShipmentService.redriveServiceTime(RedriveShipmentService.java:113)
at glog.business.fleetassignment.FleetAssignmentHelper.checkFeasibilityForRateAndTime(FleetAssignmentHelper.java:372)
at glog.business.fleetassignment.FleetAssignmentHelper.checkFeasibilityForRateAndTime(FleetAssignmentHelper.java:314)
at glog.business.action.shipment.AbstractShipmentPlanningAction.forceRedrive(AbstractShipmentPlanningAction.java:512)
at glog.business.action.fleetassignment.driver.UnassignDriverAction.redrive(UnassignDriverAction.java:122)
at glog.business.action.shipment.AbstractShipmentPlanningAction.perform(AbstractShipmentPlanningAction.java:143)
at glog.business.action.fleetassignment.AbstractFleetShipmentPlanningAction.perform(AbstractFleetShipmentPlanningAction.java:95)
at glog.business.session.FleetAssignmentActionSessionBean.unassignDriverFromShipment(FleetAssignmentActionSessionBean.java:703)
at glog.business.session.FleetAssignmentActionSessionServerSideEJBWrapper.unassignDriverFromShipment(FleetAssignmentActionSessionServerSideEJBWrapper.java:698)
at glog.business.session.FleetAssignmentActionSessionServerSideEJBWrapper_c0gjd_EOImpl.unassignDriverFromShipment(FleetAssignmentActionSessionServerSideEJBWrapper_c0gjd_EOImpl.java:1574)
at glog.business.session.gen.FleetAssignmentActionSessionSkel.unassignDriverFromShipment(FleetAssignmentActionSessionSkel.java:789)
at glog.business.session.gen.FleetAssignmentActionSessionSkel.exec(FleetAssignmentActionSessionSkel.java:162)
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: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)
[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)']




STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a Shipment.
2. Allocate a Driver.
3. Unassign the Driver from the Shipment.
4. The error was shown.

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