on 05-31-2010 10:33 AM
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/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.