cancel
Showing results for 
Search instead for 
Did you mean: 

ArrayIndexOutofBoundsException

Former Member
0 Kudos

Hi,

I am just calling the rfc with an input field. I am getting this following error:

setSearch_Fld is the input, which I am just hardcoding.

The initial exception that caused the request to fail, was:

java.lang.ArrayIndexOutOfBoundsException: -1

at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:9622)

at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:731)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:679)

at com.polyone.mm.openpolistmodel.Z_Mm_Scportal_Get_Worklist_Input.setSearch_Fld(Z_Mm_Scportal_Get_Worklist_Input.java:222)

at com.polyone.mm.openpolist.OpenPoListCust.executeZ_Mm_Scportal_Get_Worklist(OpenPoListCust.java:133)

... 36 more

Does anybody have any idea, what it is?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The Problem is, I re-imported the model, but didnt restarted the J2EE Server. Since there is no field like search-fld in the old RFC, its thrwoing the posted exception.

Restarted J2EE, its working now.

/Raj.

Former Member
0 Kudos

Hi Raj,

I don't have exact answer to your problem, but the idea is that ArrayIndexOutofBoundsExceptions comes when the element number accessed for the array is greater than array length.