Hi Mahadevan,
Your assumption is correct. Do you have any script written on this integration layer (enterprise service) where traversing is happening. Java is 0 indexed... So if a set returns 4 element , it should have [0,1,2,3] . But if there is any script where we actually trying to fetch the sets the based on the count (i.e 4), then java will throw the exception.
Please check for any script which is getting invoked during this transaction.
------------------------------
Subhransu Sekhar Sahoo
Tata Consultancy Services
------------------------------