"java.lang.ArrayIndexOutOfBoundsException" Error When Planning an Order Onto a Ground Schedule Shipment Where Stops Were Removed

(Doc ID 887842.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Transportation Operational Planning - Version 5.5.06.01 and later
Information in this document applies to any platform.
***Checked for relevance on 03-Oct-2011***


Symptoms

-- Problem Statement:

A Shipment is created from a Ground Schedule where the shipment was updated to remove one of the stops. When attempting to plan using this shipment, the planning fails with the following Exception:

java.lang.ArrayIndexOutOfBoundsException: 7
at
glog.business.repetitionschedule.ScheduleInstanceTShipment.addTOrderBundle(ScheduleInstanceTShipment.java:318)
at
glog.business.repetitionschedule.ScheduleInstanceFinder.getEarliestScheduleInstance(ScheduleInstanceFinder.java:203)
at
glog.business.shipment.ShipmentBuilder.planOrderWithRepetitionSchedules(ShipmentBuilder.java:997)
at glog.business.shipment.ShipmentBuilder.makeLegOptionsOnTLeg(ShipmentBuilder.java:1203)
at glog.business.shipment.ShipmentBuilder.makeLegOptions(ShipmentBuilder.java:1636)
at glog.business.shipment.ShipmentBuilder.buildBestItineraryOption(ShipmentBuilder.java:1369)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraph(ShipmentBuilder.java:1417)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraphCollection(ShipmentBuilder.java:467)
at glog.business.shipment.ShipmentBuilder.buildShipmentGraphCollection(ShipmentBuilder.java:409)
at
glog.business.consolidation.bulkplan.BuildShipmentGraphCollectionTask.executePlanning(BuildShipmentGraphCollectionTask.java:25)
at glog.business.util.PlanningTask.execute(PlanningTask.java:15)
at glog.server.workflow.tasklist.Task.perform(Task.java:51)
at glog.server.workflow.tasklist.TaskList.executeInCallerThread(TaskList.java:117)
at glog.business.util.PlanningTaskList.executeInCallerThread(PlanningTaskList.java:80)
at glog.server.workflow.tasklist.TaskList.execute(TaskList.java:97)
at glog.server.workflow.tasklist.TaskList.execute(TaskList.java:158)
at
glog.business.consolidation.bulkplan.OrderPlanner.buildDirectShipmentGraphCollection(OrderPlanner.java:778)
at glog.business.consolidation.bulkplan.OrderPlanner.makeDirectTShipments(OrderPlanner.java:721)
at glog.business.consolidation.bulkplan.OrderPlanner.bulkPlan(OrderPlanner.java:313)
at glog.business.action.order.OrderActions.planUnassignedOrders(OrderActions.java:820)
at glog.business.action.order.BulkPlanActionExecutor.planOrders(BulkPlanActionExecutor.java:258)
at glog.business.action.order.BulkPlanActionExecutor.planOrders(BulkPlanActionExecutor.java:113)
at glog.business.session.OrderActionSessionBean.planOrders(OrderActionSessionBean.java:947)
at
glog.business.session.OrderActionSessionServerSideEJBWrapper.planOrders(OrderActionSessionServerSideEJBWrapper.java:1026)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at
com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at OrderActionSessionHome_RemoteProxy_6iid3ag.planOrders(Unknown Source)
at glog.server.workflow.adhoc.BulkPlan.executeOrder(BulkPlan.java:65)
at glog.server.workflow.adhoc.BulkPlan.execute(BulkPlan.java:49)
at glog.server.workflow.SimpleWorkflow.execute(SimpleWorkflow.java:23)
at glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at
com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at workflow_WorkflowSession_NonTransactional_RemoteProxy_mkgm02.execute(Unknown Source)
at glog.server.workflow.WorkflowManager.execute(WorkflowManager.java:341)
at glog.server.workflow.Trigger.trigger(Trigger.java:123)
at glog.util.event.MemoryEventQueueRunnable.processEvent(MemoryEventQueueRunnable.java:141)
at glog.util.event.MemoryEventQueueRunnable.run(MemoryEventQueueRunnable.java:96)
at glog.util.event.EventThread.run(EventThread.java:82)
at java.lang.Thread.run(Thread.java:534)

-- Steps To Reproduce:
1. Create a shipment from a Ground Schedule
2. Remove a stop from a shipment
3. Plan an order release expected to be planned on the above shipment.

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