Skip to Content
avatar image
Former Member

Java WebDynpro Adaptive RFC Null pointer exception when setting model

Hi Guys,

I get a null pointer exception when setting the model to the AdaptiveRFC input structure. Here is the exception.

java.lang.NullPointerException: while trying to invoke the method of a null object loaded from local variable 'modelClassInfo'<init>(<init>(<init>( com.illumiti.initiation.wd.models.model_lumpsum.Zrelo_Services.<init>(

Here is the Code: The exception light is in bold.

Model_Lumpsum modelInstance = new Model_Lumpsum(); Zrw_Init_Get_Auto_Ma_Update_Input materialsInput = new Zrw_Init_Get_Auto_Ma_Update_Input(modelInstance); materialsInput.setClient(clientId); List<Zrelo_Services> newList = new ArrayList(); for(int k=0; k< wdContext.nodeCBNode().size();k++){ Zrelo_Services zrel = new Zrelo_Services(modelInstance); String service = wdContext.nodeCBNode().getCBNodeElementAt(k).getService(); boolean selected = wdContext.nodeCBNode().getCBNodeElementAt(k).getChecked(); zrel.setMain_Service(service); zrel.setSelected(selected ); newList.add(zrel); } materialsInput.setServices(newList);

Is there any reason that you guys can see that an exception can occur on the line that is in bold.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 12, 2017 at 11:00 AM

    Hi Sumit,

    i am getting the same error. were you able to find a solution to that?

    Add comment
    10|10000 characters needed characters exceeded