cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.ArrayIndexOutOfBoundsException: -1

Former Member
0 Kudos

Hi all,

I implemented a view with 3 filters called Group,Criteria and hits.

On click of search i am getting arry index out of bound exception.

and it is showing error at the point of setting inputs to the function module.

the stack trace is given below

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

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

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

at com.pwc.servicecenter.sapwai.wdmodel.zclassgetlist.Z_Class_Getlist_Input.setClass_Type(Z_Class_Getlist_Input.java:282)

Earlier it worked fine but now i am not able to find why it is showing Array Index Out of Bound Exception

Can any one please help me out in this

Regards

Padma N

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Padma,

Just check at the backend if the structure of the RFC you are calling is not changed and the configuration settings of the JCOs you are using is not changed.

If yes, then you will need to reimport the model either creating or customizing the JCOs or the unchanged JCOs(if the signature of RFC is changed).

In both the cases you may need to restart the J2EE engine.

Regards.

Rajat

Former Member
0 Kudos

Doing as suggested in below link will solve the problem with out server restart.

>>Just ask the ABAP developer to copy the Old RFC in to new one, this definetly resolve the issue

Former Member
0 Kudos

Hi,

Please go through this thread

Regards,

ramesh

Former Member
0 Kudos

Hi,

Just a wild guess but did the signature of the BAPI you call change, or are you sending too many/too litte parameters to it? Or, are you simply looping and trying to access a non existant table/node entry?

Perhaps check these,

Christiaan

Former Member
0 Kudos

Hi Padma,

please check 2 points.

1. Is RFC modified after you imported it. If yes then you need to import it again.

2. Is JCO connection working fine.

Regards

Narendra

former_member192434
Active Contributor
0 Kudos

Hi Padma,

if it was working fine...did you try to restart ur server.if not then restart and see if it works or not

Problem with the jco and here are some suggestive steps:

thanks