Skip to Content
avatar image
Former Member

Getting Error while executing ARFC2 model

Hello friends ,

I am getting an error while executing an ARF 2 model <br/>

and the error says that <br/>

java.lang.NullPointerException: while trying to invoke the method com.sap.conn.jco.JCoFunctionTemplate.getRequest() of an object loaded from local variable 'template'# <br/>

this error is occuring at hte point of execution the structure of my ARF2 model node is such : - <br/>

Zhssp_BULK_CHANGE_ACT_DETAILS_INPUT<br/>

-- IT_CHG_STATUS_ACT<br/>

-- IT_NOT_CHG_ACT<br/>

-- IT_PROCESS_TYPES_2<br/>

-- IT_UPDATE<br/>

-- OUTPUT_1<br/>

-- RETURN <br/>

and the code that i have written is : - <br/>

Zhssp_Bulk_Change_Act_Details_Input zhssp_Bulk_Change_Act_Details_Input = new Zhssp_Bulk_Change_Act_Details_Input(changeStatusBullModel);<br/>

java.util.List<com.asianpaints.hssp_crm.changestatusbull.Zhspenactbps> it_Chg_Status_Act = new ArrayList<com.asianpaints.hssp_crm.changestatusbull.Zhspenactbps>();<br/>

zhssp_Bulk_Change_Act_Details_Input.setIt_Chg_Status_Act(it_Chg_Status_Act);<br/>

java.util.List<com.asianpaints.hssp_crm.changestatusbull.Zhspenactbps> it_Not_Chg_Act = new ArrayList<com.asianpaints.hssp_crm.changestatusbull.Zhspenactbps>();<br/>

zhssp_Bulk_Change_Act_Details_Input.setIt_Not_Chg_Act(it_Not_Chg_Act);<br/>

java.util.List<com.asianpaints.hssp_crm.changestatusbull.Zhsprocess_Type> it_Process_Types_2 = new ArrayList<com.asianpaints.hssp_crm.changestatusbull.Zhsprocess_Type>();<br/>

zhssp_Bulk_Change_Act_Details_Input.setIt_Process_Types(it_Process_Types_2);<br/>

java.util.List<com.asianpaints.hssp_crm.changestatusbull.Zupdate_Activity> it_Update = new ArrayList<com.asianpaints.hssp_crm.changestatusbull.Zupdate_Activity>();<br/>

com.asianpaints.hssp_crm.changestatusbull.Zupdate_Activity updateActivity = new Zupdate_Activity(changeStatusBullModel);<br/>

updateActivity.setRemarks(wdContext.currentDormantElement().getConversationDetails());<br/>

updateActivity.setReopen_Date(new Date(cal.getTimeInMillis()));<br/>

updateActivity.setStatus("E0012");<br/>

it_Update.add(updateActivity);<br/>

zhssp_Bulk_Change_Act_Details_Input.setIt_Update(it_Update);<br/>

System.err.println("\n\n >>>>>>>>>>> the size of node IT_update is "+controllerContext.nodeIt_Update().size());<br/>

controllerContext.nodeZhssp_Bulk_Change_Act_Details_Input().bind(zhssp_Bulk_Change_Act_Details_Input);<br/>

// controllerContext.nodeIt_Update() //status for dormant<br/>

controllerContext.currentZhssp_Bulk_Change_Act_Details_InputElement().setGuidstr(controllerContext.currentContextElement().getGuidStr());<br/>

System.err.println("\n\n >>>>>>>>>>>>> the guid string is "+controllerContext.currentContextElement().getGuidStr());<br/>

//execute teh update method<br/>

try{<br/>

zhssp_Bulk_Change_Act_Details_Input.execute();<br/>

}catch(ARFC2ModelExecuteException e){<br/>

manager.reportException(e.getLocalizedMessage());<br/>

}<br/>

Any idea any body <br/>

thanks in advance<br/>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 31, 2010 at 09:56 AM

    Hi ,

    Can you check the jco conncetions for the RFC is working fine or not?

    Test the JCO from below link:

    http:<hostname>:<port no>/index.html ->WD tools ->Content administrator->Manage JCOs.

    Regards,

    Lavanya.

    Add comment
    10|10000 characters needed characters exceeded

  • May 31, 2010 at 10:45 AM

    Hi Smriti,

    It looks like there is some problem with initilization in the List.

    Please have a look at this thread for [initializing AbstractList Model in Custom Controller|initializing AbstractList Model in Custom Controller;. and make changes accordingly.

    Hop eit will helps

    Regards

    Arun Jaiswal

    Add comment
    10|10000 characters needed characters exceeded