cancel
Showing results for 
Search instead for 
Did you mean: 

Null pointer exception during calling RFC

Former Member
0 Kudos

Hi,

I am getting below error when i am calling RFC in webdynpro

The initial exception that caused the request to fail, was:

java.lang.NullPointerException

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:220)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:186)

at com.bajaj.ess.test.Zrfc_Sopbdc1_Input.<init>(Zrfc_Sopbdc1_Input.java:51)

at com.bajaj.ess.TestCust.wdDoInit(TestCust.java:99)

at com.bajaj.ess.wdp.InternalTestCust.wdDoInit(InternalTestCust.java:154)

... 43 more

Thanks & Regards

muna

Accepted Solutions (0)

Answers (3)

Answers (3)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

check in WdDoInit() method,

if Zrfc_Sopbdc1_Input is your model node, then you must initialise it properly like,

Zrfc_Sopbdc1_Input newObj = new Zrfc_Sopbdc1_Input();

if this is proper then please post the complete trace.

hope it helps

regards

Former Member
0 Kudos

hi,

Please check in your code TestCust.java at line number 99 because this statement is causing Null pointer.

May be you are accessing an object which is not initialized or is null.

Note:Your input is not sufficient to tell exactly where is the error.

Thanks.

Best Regards,

Shiva

Former Member
0 Kudos

Hi,

it mayb b'coz some context variable that u r using is being set as null.

try debugging the application and chk if any value/ context variable being used has null value

regards,

prasy