hii all,
am trying to create an ejb application : addition of two numbers....am writing the business logic in session bean n calling it from commandbean.....hav added jar of commandbean in model of webdynpro.....after deployment while i input the two numbers in input fields and press the add button get the following error......
The initial exception that caused the request to fail, was:
java.lang.NullPointerException
at com.sap.wrap.Wrap.myAddition(Wrap.java:47)
at com.sap.add.CompAddView.onActionresult(CompAddView.java:143)
at com.sap.add.wdp.InternalCompAddView.wdInvokeEventHandler(InternalCompAddView.java:150)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
... 27 more
MY corresponding code 4my myAddition in my commandbean is as follows:
public int myAddition()
{
result = local.add(par1,par2);
return result;
}
-
and the code for action button is: