on 01-07-2011 8:47 AM
Hi,
There is MI service call and above exception is handled as below
but at runtime it gives null pointer at the modelObject.execute() linenumber
try {
wdContext.createRequest_MI_UI_BSCS_GL1_OUT_518Element(request_MI_UI_BSCS_GL1_OUT_518).modelObject().execute();
} catch (WDWSModelExecuteException e)
{
// TODO Auto-generated catch block
}
Kindly help how to avoid this nullpointer exception
thanks
B
Hi,
1. Check whether the request_MI_UI_BSCS_GL1_OUT_518 is having any values are not.
2. divid the statment u have writen into two parts like first create the element in request_MI_UI_BSCS_GL1_OUT_518 node and then write the code for executing the model.
wdContext.noderequest_MI_UI_BSCS_GL1_OUT_518().modelObject().execute();
Thanks & Regards,
Bhargava.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i used it along with runtime exception and it solved.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.