on 01-04-2008 7:06 AM
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:
hi ,
Generally NullPointerException comes when we are trying access the memabers of class through null reference.I think local referring null .Please check once.
Thanks&Regards,
Suresh Kumar T
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 post the code at the line at com.sap.add.CompAddView.onActionresult(CompAddView.java:143)
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you please post the line of code at 143 in CompAddView.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.