cancel
Showing results for 
Search instead for 
Did you mean: 

sxmb_moni error BaseRuntimeException thrown during application mapping

Former Member
0 Kudos

Hi experts

My scenario is file to idoc. Pushing xml file from ftp . The messages are going in system error in RWB. When we see in sxmb_moni I get the following error.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_MM_SALES_CLM_SAP_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_SALES_CLM_SAP_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>Thanks in advance.

Edited by: zia Rahman on Nov 30, 2010 6:29 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I see that you mapping has a Dyamic configuration to dynamically create the file name. When you try to test in Message mapping, map the target root elements i.e one to one. do not use dynamic configuration when trying to test in Message Mapping.

If you would like to test along with the Dynamic configuration, then you need to go ahead to do end-to-end testing.

I hope you might be missing some of the mandatory fields in the sender file. Please check and try....

Ref: /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

Thanks,

Former Member
0 Kudos

Hi,

It seems that there is some exception in ur message mapping(u r not populating some of the mandatory target elements). Copy the source payload from moni and paste it in IR and then test ur message mapping.

Thanks

Amit

Former Member
0 Kudos

Hi

When I am testing the mapping at test tab by inputting the values I get the following error.

RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZSDORDERS05/IDOC/E1EDK01/AUGRU_BEZ. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_SALES_CLM_SAP_ method getFileName$[com.sap.aii.mappingtool.tf3.rt.Context@3075a379]

Former Member
0 Kudos

Hi,

It seems that you are using getFilename function in message mapping.

While testing from test tab, you will get the error because Advanced Adapter Specific Identifier which holds the FileName will only be set when you do end-to-end scenario.

So I suggest if you want to test your mapping stand-alone ... disable this udf for the time being. After successful testing you can enable it.

Regards

Former Member
0 Kudos

Hi,

R u using any UDF?? Chk that (getFileName) and also chk the mapping for this field : AUGRU_BEZ(on Target side).

Thanks

Amit

stefan_grube
Active Contributor
0 Kudos

Change your UDF for reading the file name like this:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
// in test tool the value is null, so return the argument "test"
  if (conf == null)
   return "Filename"
  else {  
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
            "http://sap.com/xi/XI/System/File",
            "FileName");
    return conf.get(key);
  }