cancel
Showing results for 
Search instead for 
Did you mean: 

ArrayIndexOutOfBoundsException

Former Member
0 Kudos

Hi All,

We have a webdynpro application on Portal connecting to R3 through JCOs. There was a requirement to change the structure, we changed the structure in RFC and reimported the model and restarted the server, everything worked fine. But when transported the code through JDI to another server and restarted it, it shows the below error:

java.lang.ArrayIndexOutOfBoundsException

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

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

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

Any idea why it is happening and how to resolve it.

Only thing is Portal changes are pushed first and then R3 changes. but we resatrted our server, yet it has not resolved the problem.

Thanks in advance!!!!

Regards,

Gurmat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gurmat,

It looks like you have moved the Netweaver code thru JDI.But the backend r/3 server code is not moved in properly.

Array index out of bound exception will come when you have code in ur webdynpro to read data returned from R/3 after exection of RFC and the data is void.

Since you are getting this exception it is quite possbile that RFC is not executed properly / there is no data in the new system.

Please check on that.

Hope this helps a bit.

harry

sridhar_k2
Active Contributor
0 Kudos

Hello Gurmat,

Can you verify that your BAPI / RFC Changes have been moved to your JCO Destination System?

If you move your changes from DEV to QA, Your QA JCO Destinations might be pointing to SAP TST. Does your RFC changes are there in SAP TST?

After restarting the server you should not get that error.

Thanks,

Sridhar