Error 'java.lang.IndexOutOfBoundsException: index: -1' seen with TIBCO BusinessWorks ProcessMonitor.

Error 'java.lang.IndexOutOfBoundsException: index: -1' seen with TIBCO BusinessWorks ProcessMonitor.

book

Article ID: KB0093027

calendar_today

Updated On:

Products Versions
TIBCO BusinessWorks ProcessMonitor -
Not Applicable -

Description

Description:
In a TIBCO ActiveMatrix BusinessWorks application having TIBCO BusinessWorks ProcessMonitor (BWPM ) client pallets (log activities such as info, success, warning and error ) and configured with instantPush=true, the error below may be seen in the application and the application stops/job fails.

java.lang.IndexOutOfBoundsException: index: -1
        at javolution.util.d.get(nJAMS:191)
        at com.faizsiegeln.njams.client.palette.Error.eval(nJAMS:29)
        at com.tibco.pe.core.TaskImpl.eval(Unknown Source)
        at com.tibco.pe.core.Job.a(Unknown Source)
        at com.tibco.pe.core.Job.k(Unknown Source)
        at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source)
        at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)


Symptoms:
The error below is seen in the Application logs when TIBCO BusinessWorks ProcessMonitor (BWPM ) client pallets log activity is executed and the job fails.

2015 Nov 20 18:54:07:283 GMT +5 BW.BWPMKrishTestDynamic Error [] null Job-86008 Error in [Process Definition.process/LogError]
java.lang.IndexOutOfBoundsException: index: -1
    at javolution.util.d.get(nJAMS:209)
    at com.faizsiegeln.njams.client.palette.Error.eval(nJAMS:31)
    at com.tibco.pe.plugin.Activity.eval(Unknown Source)
    at com.tibco.pe.core.TaskImpl.eval(Unknown Source)
    at com.tibco.pe.core.Job.a(Unknown Source)
    at com.tibco.pe.core.Job.k(Unknown Source)
    at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source)
    at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)
Cause:
This issue will occur only when you have set instantPush=true and maxQueueLength(=20) is reached. This happens when communication with the TIBCO Enterprise Message Service server is affected, specifically when the  log activity is executed and an event messages is going to be sent at same time. When the parameter "instantPush=true" it will try to send the event (for activity) and the log activity is executed at same time. However, when "instantPush=false", this issue will not be seen. This means the event message was not sent at the time when the log activity was executed.

Issue/Introduction

Error 'java.lang.IndexOutOfBoundsException: index: -1' seen with TIBCO BusinessWorks ProcessMonitor.

Environment

Product: TIBCO BusinessWorks™ ProcessMonitor Version: 2.2.x, 3.0.x OS: All Supported Operating Systems --------------------

Resolution

Set instantPush=false by modifing the global variable "nJAMS/DataProvider/instantPush" in the project or add the following property in application.tra .

tibco.clientVar.nJAMS/DataProvider/instantPush=false

Internal defect request #1543 (IndexOutOfBound Exception seen with BWPM client) has been logged. 
Fixed in BWPM client version 3.1.0 but we do not have a timeline for the BWPM client 3.1.0.