cancel
Showing results for 
Search instead for 
Did you mean: 

WDWSModelExecuteException giving null pointer

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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.

Answers (1)

Answers (1)

bhakti2
Active Participant
0 Kudos

i used it along with runtime exception and it solved.

thanks