Skip to Content
avatar image
Former Member

java.lang.ArrayIndexOutOfBoundsException: -1

Hi ,

I am getting the following error .

java.lang.ArrayIndexOutOfBoundsException: -1

There were some chnages in RFC . Added 2 input parameters .

After that i had to re-import the RFC again . After re-importing restarted the server .

Still getting this exception .

java.lang.ArrayIndexOutOfBoundsException: -1

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

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 models.logon.Zmat_Authorisation_Check_Input.setMat_Category(Zmat_Authorisation_Check_Input.java:177)

at com.ltil.matcode.wdp.IPublicLogonCustom$IZmat_Authorisation_Check_InputElement.wdSetString(IPublicLogonCustom.java:1204)

at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdSetString(MappedNodeElement.java:599)

at com.ltil.matcode.wdp.IPrivateDefaultView$IZmat_Authorisation_Check_InputElement.setMat_Category(IPrivateDefaultView.java:9061)

at com.ltil.matcode.DefaultView.materialClassSelected(DefaultView.java:3894)

at com.ltil.matcode.DefaultView.onActionmaterialClassSelected(DefaultView.java:2731)

at com.ltil.matcode.wdp.InternalDefaultView.wdInvokeEventHandler(InternalDefaultView.java:926)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:659)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Thanks And Regards

Anuradha Rao

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 25, 2010 at 10:12 AM

    Hi,

    After you re-imported the model, did u take those 2 new input parameters and set them before executing the RFC?

    Regards,

    Poojith MV

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 28, 2010 at 06:01 AM

    Hi,

    This ArrayIndexOutOfBoundsException generally come because of Array Elements,

    Let say if your declared no of elements in an Array is 10, i mean size of array, And if RFC gets the number of elements to that array is more than size of array, that time you will get this type of errors,

    Please check the size of array, if you declared the size(if required) increase it or dont declare it (if not required)

    If you dont declared the size of array it will take defalut size and it can take the n number of elements.

    Thanks,

    Sreeni.

    Add comment
    10|10000 characters needed characters exceeded