Hello,
I am getting the following error :
2011-06-14 08:50:01,998 ERROR [STDERR] java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
2011-06-14 08:50:01,999 ERROR [STDERR] at java.util.Vector.elementAt(Vector.java:266)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.documentum.fc.common.DfList.get(DfList.java:427)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.citibank.tbo.ctbautoapp.CtbAutoApp.copyObject(CtbAutoApp.java:262)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.citibank.tbo.ctbautoapp.CtbAutoApp.attach(CtbAutoApp.java:248)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.citibank.tbo.ctbautoapp.CtbAutoApp.doSave(CtbAutoApp.java:218)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.documentum.fc.client.DfPersistentObject.saveEx(DfPersistentObject.java:899)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.documentum.fc.client.DfPersistentObject.save(DfPersistentObject.java:894)
2011-06-14 08:50:01,999 ERROR [STDERR] at com.citibank.tbo.ctbautoapp.CtbAutoApp___PROXY.save(CtbAutoApp___PROXY.java)
There is a job where ctb_auto_app type objects are created and on save operation of those objects, this TBO is fired. The error log indicates some problem at line no.262 which shows some problem with copyObject() function. Below is the code snippet for copyObject().
public IDfSysObject copyObject(String objectPath, String destinationFolderId)
throws DfException
{
IDfSession sess = getSession();
IDfClientX moClientX = new DfClientX();
IDfCopyOperation idfCopyOperation = null;
idfCopyOperation = moClientX.getCopyOperation();
IDfSysObject sysObj = (IDfSysObject)sess.getObjectByPath(objectPath);
idfCopyOperation.setDestinationFolderId(new DfId(destinationFolderId));
idfCopyOperation.add(sysObj);
idfCopyOperation.execute();
return (IDfSysObject)idfCopyOperation.getNewObjects().get(0);
}
While doing these, it throws the error:
2011-06-14 08:50:01,998 ERROR [STDERR] java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
Please advise on this.
Thanks and Regards
dev_dctm