cancel
Showing results for 
Search instead for 
Did you mean: 

Null pointer exception thrown by RFC enabled FM to a Java Application

Former Member
0 Kudos

Hi,

We are calling a remote enabled function module from a Java Application using JCO . Export parameters are correctly mapped

but still the null pointer exception is being thrown. The ABAP function module when checked in R/3 is working fine and do not

send null values. We have checked that the FM is remote enabled. What could be the possible reasons when an ABAP function module may throw null pointer exception.

Any help would be appreciated. Thanks in advance!

Regards,

Anupama

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The FM was not Remote enabled and therefore null pointer exception was thrown

siarhei_pisarenka3
Active Contributor
0 Kudos

Please provide extracts from the exception stack trace.

Former Member
0 Kudos

The trace files say :-

#1.5 #0013725245390071000016AE000027E800047A70D2F4F5EF#1260524900682#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#appnz3_qtr#21196##SKNXDSAP02AS.nab_DL0_2819450#appnz3_qtr#4da38fb0e63a11deb900001372524539#SAPEngine_Application_Thread[impl:3]_11##0#0#Error##Java###08:48_11/12/09_0024_2819450

[EXCEPTION]

#1#java.lang.NullPointerException

at com.thenational.isi.manageleave.DataBean.getAbsenceTypeDataFromSAP(DataBean.java:269)

at com.thenational.isi.manageleave.DataBean.<init>(DataBean.java:145)

at com.thenational.isi.manageleave.Applyforleave.doInitialization(Applyforleave.java:61)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:108)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)