cancel
Showing results for 
Search instead for 
Did you mean: 

MAPPING_DURING_EXECUTE in RWB....Help me

Former Member
0 Kudos

Hi,

I have scenario like Java Proxy server.

Defined DataType of same structure, which contains only one element.Message Types,both inbound and outbound asyn Message iterfaces, interface and Message mappings is done.

Configured Receiver comm channel, receiver determination and interface determination. In NWDS imported server.zip, in my DispMINAS_PortTypeImpl i have defined as follows:

===============

package jps;

public class DispMIINAS_PortTypeImpl extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements DispMIINAS_PortType {

public void dispMIINAS(jps.DispDT_Type dispMT) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{

<b>//Do I need to parse the msg here</b>

//throw new RuntimeException();

}

}

this is what it contains.......I am getting "<b>MAPPING_DURING_EXECUTE</b>". This is bcoz of not implementing any code in my Disp_MIINAS_PortTypeImpl or what?

Please let me know and send the proper solution for the same.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

>>Then how to know what is the response sent by XI?

For this, you should use synchronous interfaces, proxy Implementaion code should return reponse message and xi will send this reponse to HTTP.

Or to check if your proxy is working, you can update some database or file in Proxy Implementation code.

Right now, try to solve this mapping exception....

In receiver communication channel where u have selected XI adapter, the user in Authentication Data should have roles of XIAPPLUSER.

Regards,

Uma

Former Member
0 Kudos

Hi Uma,

I checked in Message mapping->Test here the mapping is working fine. what can i place in my implemetation code so that atleast Proxy listens to my XI?

I must know whether my Proxy is working or not

>>you can update some database or file in Proxy Implementation code.

Let me know other alternatives if any.

regards,

Ganesh

Former Member
0 Kudos

Hi Uma!

>>Or to check if your proxy is working, you can update some database or file in Proxy Implementation code

How to update a file. Do i need to write the code for creating a file, where should i create the file in FTP server machine or XI server machine?

Let me know

Thanks for your replies.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

>>I am getting 200 in HTTP Client prog, which means success status code right?

This is bcoz of "EO" Quality Of Service in HTTP Client. As per the HTTP Client the request message has been sent to XI Box for the specified service. It wont wait for the response message.

So, if any error within XI wont reflect in HTTP Client prog.

Regards,

Uma

Former Member
0 Kudos

Then how to know what is the response sent by XI?

I am getting "MAPPING_DURING_EXECUTE" as error

How to resolve?

Thanks a lot

Former Member
0 Kudos

Hi,

The payload in HTTP client should be only

<ns0:disp_MT xmlns:ns0="http://abcdemo.com">

<name>aaahhh</name>

</ns0:disp_MT>

Have you registered the proxy in Server. check this registeration status using http://server:50000/ProxyServer/ListAll

This will list all registered Interfaces.

Regards,

Uma

Former Member
0 Kudos

In HTTP Client prog, am getting 200 as Status code, i gave in payload as told by you. Then why am getting <b>Error while sending message: 503 Service Unavaialble</b> in RWB->Component monitoring->Adapter engine.

I am getting 200 in HTTP Client prog, which means success status code right?

I registered in ProxyServer, my interface was very well there.

Former Member
0 Kudos

Because it doesn't works in Adapter Engine!!!

It only works on Integration Engine, because the http request goes directly into XI via IE. HTTP is an adapter that runs on ABAP stack like IDOC does… all the others adapter’s runs on Java stack… and you can see them on adapter monitoring except HTTP and IDOC

Go to RWB > Component Monitoring > <b>Integration Engine</b> > test message tab.

Hope it helps,

Ricardo.

Message was edited by: Ricardo Quintino

Former Member
0 Kudos

Hi Ricardo!

Error when sending message: 401 Unauthorized

What does that mean?

This is what i got when tested in RWB>Component Monitoring>Integration Engine>Test Message

Send Message To:

http://server:8000/sap/xi/engine?type=entry

Service:BS_01

Interface: disp_MI

Namespace:http://abcdemo.com

QOS:Exactly once

user:xisuper

password:*****

payload:

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

<ns0:disp_MT xmlns:ns0="http://jps.com">

<name>aaahhh</name>

</ns0:disp_MT>

Former Member
0 Kudos

did you put your user name and password, before you sent the message?

Former Member
0 Kudos

Hi Ricardo!

I have put username and password in my receiver comm channel

Authentication Type:Use Logon data for Non-SAP system

user:xiappluser

password:xxxxxx

Former Member
0 Kudos

Ok it is right!

We should put xiappluser on your adapter!

But when I told you to put "your" username and password you must put it on the test message tab from RWB > Comp Moni > IE > test message tab do it for your first test

Cheers,

Ricardo.

Message was edited by: Ricardo Quintino

Former Member
0 Kudos

Hi Ricardo!

Error when sending message: 401 Unauthorized

I got this when tested with XIAPPLUSER and <pwd>.

Does it meant to say that XIAPPLUSER doesnot have the autherziation or what?

I thank you and Uma for helping me.

Former Member
0 Kudos

Hi,

If you are using this user"xiappluser" on RWB > Comp. Monit > IE > test message tab it is wrong! You must use your won user id, the one you have used to login in RWB

Cheers,

Ricard.

Former Member
0 Kudos

With my own user id and password that i used to enter RWB also got me the same error.

Thanks a lot for your immediate replies.

Former Member
0 Kudos

Hi,

The xiappluser only have SAP_XI_APPL_SERV_USER role! Is not suficient to send messages via RWB.

Check in su01 roles tab of your own user if has these roles!

SAP_XI_MONITOR_ABAP

SAP_XI_MONITOR_J2EE

Cheers,

Ricardo.

Message was edited by: Ricardo Quintino

Former Member
0 Kudos

Hi,

I checked in su01 I found these roles for xiappluser.

SAP_XI_MONITOR_ABAP

SAP_XI_MONITOR_J2EE

Thanks a lot for your prompt replies.

Former Member
0 Kudos

Hi ganesh,

Could you please paste here the roles that you have for your own user.

Former Member
0 Kudos

Hi,

These were the roles that i found in su01 for user xiappluser:

SAP_XI_MONITOR_ABAP

SAP_XI_MONITOR_J2EE

SAP_XI_APPL_SERV_USER ..........and a lot more

Former Member
0 Kudos

These were the roles for

xisuper:

SAP_XI_APPL_SERV_USER

SAP_XI_MONITOR_ABAP

SAP_XI_MONITOR_J2EE adn lot more.......

xirwbuser:

SAP_XI_MONITOR

SAP_XI_MONITOR_ABAP

SAP_XI_MONITOR_J2EE

SAP_XI_RWB_SERV_USER

SAP_XI_DIPLAY_USER_J2EE

SAP_XI_DISPLAY_USER_ABAP and lot more..........

Former Member
0 Kudos

Hi ganesh,

If you already tried with these users with all roles! I don't know why it doesn't working...

Please check on test message tab (RWB) if the url (send message to) is http://<host>:<http-port>/sap/xi/engine?type=entry

Cheers,

Ricardo.

Former Member
0 Kudos

Hi,

Since your interfaces are asynchronous, you dont have to return anything in the implementation code and it is not mandatory to parse the msg.

Copy the request message from sxmb_moni and test in Message Mappings "Test" tab.

What is the sender for this scenario?

Regards,

Uma

Former Member
0 Kudos

Hi

I am using HTTP Clent prog as sender. I copied from Message mappings->Test tab and pasted the same in Payload of HTTP Client prog.I got Status code 200.

But when i test in RWB->Component Monitoring->Adapter engine, by giving the following param:

Send meeasge To:

http://<Targethost>sapep:50000/MessagingSystem/receive/AFW/XI

Service: BS_01

Interface: disp_MI

Interface Namespace: http://abcdemo.com

user:xiappluser

password: *****

Payload:

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

<ns0:disp_MT xmlns:ns0="http://abcdemo.com">

<name>aaahhh</name>

</ns0:disp_MT>

am getting the error like:

<b>Error when sending message: 503 Service Unavailable</b>

Former Member
0 Kudos

Hi,

If you want to test in RWB go to RWB->Component Monitoring-> Integration engine and not AE!!!

To trace the errors in mapping a sujest you to use Message Mapping "test" tab... Integration Repository > Message Mapping > test tab

Cheers,

Ricardo.

Former Member
0 Kudos

Hi,

This may be also due to system failure. Just go and check in SXMB_MONI the status of the record.

Thanks,

Yaseen M

Former Member
0 Kudos

In my Disp_MIINAS_impl i did not parse the XML msg....this is what the error says basically. What should be done to rectify the error:MAPPING_DURING_EXECUTE.

I checked in SXMB_MONI it is red flag...when i click on Reqest Message Mapping->error I saw some thing like this:

..........

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

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

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

<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>

<SAP:P4 />

Thanks

Former Member
0 Kudos

Hi Ganesh,

Go to your sxmb_moni open the message with red flag and go to trace file (is the last one on soap header info).

Under trace, scroll to middle and stop when you see a large amount of near lines started with errors like "cannot produce target element"...

If you find something like this, it means that the content that you try to put on target is not compatible with the target data element. You can also see what is the field that produces this exception.

Go to outbound and copy the xml code and paste it on message mapping test tab and execute it... For me is the best way to understand what's happening with some complex fields.

Hope it helps,

Ricardo.