on 08-21-2008 6:40 AM
Hi all,
I am not able to create a model object, error displays as Null pointer exception.
Z_51Vj_Rfc_Salesorder_Entry_Input eInput = new Z_51Vj_Rfc_Salesorder_Entry_Input();
Please Help .
Thanks in Advance,
Regards,
CSP
Could you please paste the code in wdDoInit method of your controller? From the statck trace it looks like the error is occurring at line 106 (SalesOrderComp.java:106). Please double check what you have at this line and see if it is correct. If any additional parameters are added to the RFC after the application is deployed and run once, you need to restart the server to refresh the rfc metadata.
Thanks
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please find the following stack trace after following suggestions :
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:256)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:222)
at com.bosch.ap.wd.janasbid_rbau.model.Z_51Vj_Rfc_Salesorder_Entry_Input.<init>(Z_51Vj_Rfc_Salesorder_Entry_Input.java:51)
at com.bosch.ap.wd.janasbid_rbau.SalesOrderComp.wdDoInit(SalesOrderComp.java:106)
at com.bosch.ap.wd.janasbid_rbau.wdp.InternalSalesOrderComp.wdDoInit(InternalSalesOrderComp.java:222)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Write these statements in wdDoInit() method
Z_51Vj_Rfc_Salesorder_Entry_Input eInput = new Z_51Vj_Rfc_Salesorder_Entry_Input();
wdContext.node<RequestNode>().bind(eInput);
Regards
LN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't think the null pointer exception would be on the line mentioned by you. Could you please check the stack trace and give us the line which is resulting into null pointer exception.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
You have to bind thisobject to the context..
put the follwing code in the init() of your controller after declaring the object;
wdcontext.node<...>.bind(eInput);
Ankita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.