on 08-05-2009 8:01 AM
Hi,
I am getting following error when I do model binding:
Model Classes:
Zmi_Visitor_Mgmt
Zmi_Visitor_Mgmt_Rfc_Input
Output
Total_Visitors
Zmi_Visitor_Mgmt_Rfc_Output
Total_Visitors
code:
Zmi_Visitor_Mgmt_Display_Rfc_Input display = new Zmi_Visitor_Mgmt_Display_Rfc_Input();
wdContext.nodeZmi_Visitor_Mgmt_Display_Rfc_Input().bind(display);
Zmi_Visitor_Mgmt visitor = new Zmi_Visitor_Mgmt();
display.addTotal_Visitors(visitor);
display.setVisitor_Name(wdContext.currentZmi_Visitor_Mgmt_Display_Rfc_InputElement().getVisitor_Name());
Error:
java.lang.ArrayIndexOutOfBoundsException: -1
at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:10210)
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValue(JcoBaseTypeData.java:503)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getRelatedModelObjects(DynamicRFCModelClass.java:787)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.addRelatedModelObject(DynamicRFCModelClass.java:821)
at com.osi.practice.visitor.model.Zmi_Visitor_Mgmt_Display_Rfc_Input.addTotal_Visitors(Zmi_Visitor_Mgmt_Display_Rfc_Input.java:170)
Regards,
Imtiyaz
Hi Gulam
Try to create model object
Model model = new Model();
Put that model ref in
Zmi_Visitor_Mgmt_Display_Rfc_Input display = new Zmi_Visitor_Mgmt_Display_Rfc_Input(model);
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check on the following points
1. Is RFC modified after you imported it. If yes then you need to import it again.
2. Is JCO connection working fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has the interface of the RFC been changed?
If so a J2EE server restart will solve the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.