ArrayIndexOutOfBoundsException while Adding affected item

Hi All,

I am facing the below issue, while adding an affected item to MCO object through PX. Has anyone ever encountered this before?

java.lang.ArrayIndexOutOfBoundsException: -1
at com.agile.common.client.value.VOTableColumnEditInfo.getModify(VOTableColumnEditInfo.java:170)
at com.agile.api.pc.Table.isReadOnly(Table.java:1084)
at com.agile.api.pc.TableAI.doCreateServerRowWithParam(TableAI.java:150)
at com.agile.api.pc.Table.createTableRow(Table.java:238)
at com.agile.api.pc.Table.createRow(Table.java:202)

Any help is greatly appreciated!

Thanks,
MG

increase java memory of the server refer to startup scripts in server and incread in java options -Xms.

Also, perform ACOLLECT. AS This issue is related to number of threads created.

on January 21, 2016.

Is this specific to Object? We are facing this issue only on MCO objects.

on February 6, 2016.
Add Comment
3 Answer(s)

I think your px has not sufficient privileges, try an adding  modify read write privileges  of mco to your px.

Agile Angel Answered on January 24, 2016.

I have given Admin Privilege to the PX..

on February 6, 2016.
Add Comment

Hi MG,

  array index out of bound ocurrs when you try to access an element at a certain position that does not exist. As you have not provided the code I interpret that you are trying to create a new row, this is what causes the exception to ocurr.

  You may

a) not retrieve the table properly

b) not have a editable table

c) the index you indicate does not exist (yet)

 

Let me know if this solved your issue, otherwise please provide your code.

Agile Angel Answered on February 2, 2016.
Add Comment

Hi Dennis,

I am facing this issue, when i am passing a Map object to the createRow() method on MCO. The same piece of code is working fine on ECO, Deviation.

Iterator it = ecrAITable.iterator();
Map<Object, Object> aiMap = new HashMap<Object, Object>();
while(it.hasNext()){
 IRow row = (IRow)it.next();
 aiMap.put(1054, row.getValue(1054));
 aiMap.put(1226, row.getValue(1229));
 aiMap.put(1227, row.getValue(1234));
 ITable mcoAITable = mco.getTable(ChangeConstants.TABLE_AFFECTEDITEMS);
 mcoAITable.createRow(aiMap);
}

Agile User Answered on February 6, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.