on 05-13-2009 1:41 PM
Hi All,
How Types are coming Null Pointer Exception Error's in WebDynpro Java, Please provide the types.of Errors.
Ex. Cardinality Type not correct etc...
Thanks,
Bye,
Vijay Hari.
Hi Vijay,
Generally Null pointer exception will occur when trying to perform some opearation on any object which does not exist, i mean object is not instantiated .
Try to use try& catch block and print exception on screen.
try{
..........
}catch(Exception e){
wdComponentAPI.getMessageManager().reportSuccess("Exception"+e.getMessage());
}
Thanks.
Veeru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Null Pointer Exception can occur in may instances , for suppose
1) when you create a Value Node with some attribute which has cardinality , and you have not
initialized the Node , then it would through Null Pointer exception ,
2) when you integrate the RFC and parameters you pass as input to the RFC are not set correctly
then there could be null pointer when you execute the RFC
3>or may be when you doesnot bind the node when using webservice then there could be null pointer exception
and there could be many occurances for the exception
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In webdynpro java code null pointer exceptions are thrown for the same reason as in any java class. I dont think it will be easy for anyone tell all types of excetions. Following is the javadocs link you can try searching in that
http://help.sap.com/javadocs/NW04S/SPS09/wd/com/sap/tc/webdynpro/progmodel/api/package-summary.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
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.