cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error while executing ARFC2 model

Former Member
0 Kudos

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/>

Accepted Solutions (0)

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

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|;. and make changes accordingly.

Hop eit will helps

Regards

Arun Jaiswal

Former Member
0 Kudos

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.

Former Member
0 Kudos

Yaa the JCOs are working fine

For ARF2 we need to maintain destinations in SAP Netweaver Administrator , that also i have done .

Former Member
0 Kudos

Hi,

Execute the model like this:

wdContext.currenXXXXElement().modelObject().execute();

Regards,

Lvanya.G

Former Member
0 Kudos

Still not working , I referred to this pdf to create ARF2 model and there they had suggested the above method to execute the ARF2 model

[ http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50f7192d-2808-2d10-189b-df3fa5f71...;