cancel
Showing results for 
Search instead for 
Did you mean: 

Null Pointer Exception Error's in WebDynpro Java

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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