cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NullPointerException while testing in MAPPIng

Former Member
0 Kudos

RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:MT_eIN_RECV/FILENAME. The message is: Exception:http://java.lang.NullPointerException in class com.sap.xi.tf._MM_eIN_SAP2FILE_ method GETFILENAME$98410_2008/04/21_616515, com.sap.aii.mappingtool.tf3.rt.Context@1e595e85

i am getting this error while testing n mapping , and i am using UDF for crating a file name dynamically . so please help me in this

Thanking you

Sridhar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sridhar,

I think it would be helpful to get your UDF source code, and perhaps the input message you're using to test your mapping ...

Rgds

Chris

Former Member
0 Kudos

Hi

since you are using the dynamic configuration then you first run your scenario and then check the output.

Thanks

Rinku

former_member181985
Active Contributor
0 Kudos

Hi,

try like this,

if(fileNameString != null){

//Implement your dynamic file logic.

}

else

{

use some fixed file name,

fileNameString= "test.xml"

}

Test this

Thanks;

Gujjeti

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Sridhar,

Since you have used Dyanmic File creation in the UDF ... You will get an error since you cannot test in the mapping ... Try by testing in the Integration Directory and by using the Test Tool...

Or else run your scenario and see the output...

Regards,

Sridhar Reddy