on 06-25-2010 11:05 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. Try printing some statements to check where the error is occurring from the time you call the method te execute the RFC till u get the return.
If u are calling this RFC from your view on click of a button, print some statements to check if the problems is when u send parameters or while reading the output
Regards,
Poojith MV
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.