Hi..I am trying to call the method in XC18Action through the xcAction. The error was:
0000002f SystemErr R at org.apache.comm ons.beanutils.B eanUtilsBean.co pyProperties(Be anUtilsBean.jav a:221)
0000002f SystemErr R at org.apache.comm ons.beanutils.B eanUtils.copyPr operties(BeanUt ils.java:114)
0000002f SystemErr R at my.org.hasil.dc ms.grq.web.XC18 Action.performS edia(XC18Action .java:568)
I dont understand what it wants...
These are the methods :
1.)xcAction.jav a
2.XC18Action.ja va
Please someone tell me how to solve this. Thank u.
0000002f SystemErr R at org.apache.comm ons.beanutils.B eanUtilsBean.co pyProperties(Be anUtilsBean.jav a:221)
0000002f SystemErr R at org.apache.comm ons.beanutils.B eanUtils.copyPr operties(BeanUt ils.java:114)
0000002f SystemErr R at my.org.hasil.dc ms.grq.web.XC18 Action.performS edia(XC18Action .java:568)
I dont understand what it wants...
These are the methods :
1.)xcAction.jav a
Code:
public ActionForward performSedia(ActionMapping mapping, ActionForm form,javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response) {
ActionForward forward = new ActionForward();
HttpSession httpSession = request.getSession();
MESSession session = (MESSession) httpSession.getAttribute(DCMSConstants.DCMSConstants_MESSESSION);
TodoparameterForm todoForm = (TodoparameterForm) httpSession.getAttribute("todoparamForm");
XC18BO xcbo = new XC18BO(session);
XC18Form xc18form = new XC18Form();
XcForm xcForm = (XcForm) form;
try {
//BeanUtils.copyProperties(xcbo, todoForm);
BeanUtils.copyProperties(xcbo, xcForm);
xcbo.setTodo_id(xcForm.getId());
XC18Action xc18Action = new XC18Action();
XC18Action.performSedia(mapping, xcForm, request, response);
} catch (Exception e) {
e.printStackTrace();
}
forward = mapping.findForward("success");
return forward;
}
}
Code:
public static ActionForward performSedia(ActionMapping mapping, ActionForm form,javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) {
ActionForward forward = new ActionForward();
HttpSession httpSession = request.getSession();
MESSession session = (MESSession) httpSession
.getAttribute(DCMSConstants.DCMSConstants_MESSESSION);
TodoparameterForm todoForm = (TodoparameterForm) httpSession.getAttribute("todoparamForm");
XC18BO xcbo = new XC18BO(session);
XC18Form xc18form = (XC18Form) form;
try {
BeanUtils.copyProperties(xcbo, todoForm);
BeanUtils.copyProperties(xcbo, xc18form);
xcbo.setTodo_id(xc18form.getId());
xcbo.setStatus(DCMSConstants.USERTODO_STATUS_SEDIA);
xcbo.processXC18();
} catch (Exception e) {
e.printStackTrace();
}
forward = mapping.findForward("success");
return forward;
}
Comment