HTTP message lands up in Adapter Engine
Hi All
I must be missing something basic here -
We have a synchronous HTTP->XI->BW scenario. The message exchange seems to be fine as we can see the response back from BW. The problem is that when we look at SXMB_MONI(SXI_MONITOR) for the message we can't find it. However, on using the runtime workbench ->message monitoring we are able to see the relevant messages, only that they are listed under the "Adapter Engine" and not the "Integration Engine". It is only when there is an error in the message exchange that the messages are visible in SXMB_MONI and in the RWb under the Integration engine.
Would somebody be able to explain why? And is there a way of making the successful messages appear in SXMB_MONI(ie Integration engine).
Thanks a lot
Salil
Hey
usually successful sycn message wont show up in sxmb_moni just like that,you need to enable entries in logging and trace
sxmb_adm ---> integration engine Configuration ---> Specific Configuration
enter the following
RUNTIME LOGGING 1
RUNTIME TRACE_LEVEL 3
but make sure ur not doing this in Prd system coz that might fill up whole databse very quickly,only do this in dev box
Thanx
Aamir
Message was edited by:
Aamir Suhail
Similar Messages
-
Messages got stuck in Adapter engine
We are doing http to RFC sysnchronous scenario
Message got stuck in adapter engine.so we are getting 500 HTTP timeout error in Http client.
Please help us to find why messages got stuck in Adapter engine.
Below Adapter engine audit log message is pasted for your reference.
Audit Log message:
Time Stamp Status Description
26.09.2008 06:33:54 Success Message successfully received by messaging system. Profile: XI URL: http://devsap01:51000/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
26.09.2008 06:33:54 Success Using connection RFC_http://sap.com/xi/XI/System. Trying to put the message into the request queue.
26.09.2008 06:33:54 Success Message successfully put into the queue.
26.09.2008 06:33:54 Success The message was successfully retrieved from the request queue.
26.09.2008 06:33:54 Success The message status set to DLNG.
26.09.2008 06:33:54 Success Delivering to channel: RFC_out_Test
26.09.2008 06:33:54 Success MP: entering
26.09.2008 06:33:54 Success MP: processing local module localejbs/RfcAFBean
26.09.2008 06:33:54 Success RFC adapter received a synchronous message. Attempting to send sRFC for ZFTestRFC
26.09.2008 06:33:54 Success RFC adapter received a synchronous message. Attempting to send sRFC for J2EE_GUEST
ime Stamp Status Description
26.09.2008 06:56:15 Success MP: leaving
26.09.2008 06:56:15 Error Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.MessageExpiredException: Sync application request expired.. Setting message to status failed.
26.09.2008 06:56:15 Error The message status set to FAIL.
26.09.2008 06:56:15 Error Returning synchronous error message to calling application: com.sap.aii.af.ra.ms.api.MessageExpiredException: Sync application request expired..
Kindly advise us on this issue.Hi krish,
when i send a http request it got stuck in adapter engine with status "delivering" for some time....
We found that RFC got successfully executed in R/3 system but the synchronous message is not delivered to PI.since adapter engine message is having status "delivering"
after some time we got adapter engine message status as "cancelled with error"
Error is Message expired exception which you can see audit log message I have pasted in my previous post.
Meanwhile we also got HTTP timeout error in Http client.
Could you please tell me why it got stuck in Adapter engine with status "delivering" since RFC is executed successfully.
Why we are not getting synchronous message reply back to PI? -
Message flow between advanced adapter engine and messaging system for ICO scenarios
Dear all,
I'm working on a PI 7.31 AEX box and created an ICO object for one interface with HTTP_AAE2IDoc scenario. The interface works quite well. When I looked in to message log of messages for this interface in PI monitor, I noticed that the internal XI message are put totally 5 times into the send queue and retrieved from send queue. In some steps I only see after retrieving a message from send queue and immediately put it back into send queue. Can someone please kindly explain the message flow between advanced adapter engine and messaging system and what exactly happens after each retrieving a message from send queue?
Below is an example of message log for one message:
12/08/2014 09:26:06.472 Information MP: processing local module localejbs/CallSapAdapter
12/08/2014 09:26:06.472 Information Application attempting to send an XI message asynchronously using connection HTTP_AAE_http://sap.com/xi/XI/System
12/08/2014 09:26:06.478 Information Trying to put the message into the send queue
12/08/2014 09:26:06.499 Information Message successfully put into the queue
12/08/2014 09:26:06.499 Information The message was successfully retrieved from the send queue
12/08/2014 09:26:06.499 Information The application sent the message asynchronously using connection HTTP_AAE_http://sap.com/xi/XI/System. Returning to application
12/08/2014 09:26:06.500 Information HTTP adapter successfully processed interface PlantResponse_Out
12/08/2014 09:26:06.501 Information Trying to put the message into the send queue
12/08/2014 09:26:06.501 Information Message status set to DLNG
12/08/2014 09:26:06.513 Information Message successfully put into the queue
12/08/2014 09:26:06.513 Information The message was successfully retrieved from the send queue
12/08/2014 09:26:06.515 Information Message status set to DLNG
12/08/2014 09:26:06.533 Information Trying to put the message into the send queue
12/08/2014 09:26:06.548 Information Message successfully put into the queue
12/08/2014 09:26:06.548 Information The message was successfully retrieved from the send queue
12/08/2014 09:26:06.550 Information Message status set to DLNG
12/08/2014 09:26:06.551 Information Executing Request Mapping "http://styrolution.com/pi/Integration/PlantMaintenance/PlantResponse/PlantResponse_to_Zcol_Basf_Inotif02_Inotif01_Zeupm_Inotif01_Ludwigshafen" (SWCV 085d2320fb3b11e2cc0bf4d50aea8c33)
12/08/2014 09:26:06.563 Information Trying to put the message into the send queue
12/08/2014 09:26:06.571 Information Message successfully put into the queue
12/08/2014 09:26:06.571 Information The message was successfully retrieved from the send queue
12/08/2014 09:26:06.573 Information Trying to put the message into the send queue
12/08/2014 09:26:06.573 Information Message status set to DLNG
12/08/2014 09:26:06.580 Information Message successfully put into the queue
12/08/2014 09:26:06.580 Information The message was successfully retrieved from the send queue
12/08/2014 09:26:06.582 Information Message status set to DLNG
12/08/2014 09:26:06.583 Information Delivering to channel: IDOC_R
12/08/2014 09:26:06.583 Information MP: processing local module localejbs/IDocOutboundModuleBean
12/08/2014 09:26:06.583 Information XI message received for processing
12/08/2014 09:26:06.587 Information Sender Party: Sender Service:SXX Receiver Party: Receiver Service:RXXCLNT200 Communication Channel:IDOC_R
12/08/2014 09:26:06.588 Information IDOC metadata repository is RXX
12/08/2014 09:26:06.589 Information Control record is not mandatory - control record will be added if not available
12/08/2014 09:26:06.590 Information XML Payload parsed to idoc document list with number of idocs: 1
12/08/2014 09:26:06.595 Information Sending idoc message to receiver R/3 system with TID XIh{lsRI824UITC0009OalmW
12/08/2014 09:26:06.813 Information IDOC message sent to receiver R/3 system
12/08/2014 09:26:06.817 Information TID XIh{lsRI824UITC0009OalmW confirmed
12/08/2014 09:26:06.819 Information Message was successfully transmitted to endpoint <local> using connection HTTP_AAE_http://sap.com/xi/XI/System
12/08/2014 09:26:06.821 Information Message status set to DLVD
Thanks & regards
DingjunHello All,
Thanks for the prompt responses and with best information, But apart from this,I need how an adapter(File/JDBC) works along
with AAE in PI 7.1. When does the job of File/JDBC adapter is completed and resumed in a synchronous case. That is,
File Location --> file adapter -
> XI(AAE) --> JDBC adapter --> database.
In file sender, lets suppose we have synchronous settings(Best Effort). Now when File adapter's job is finished and when it
gets back the response back from XI. Please explain step by step from starting(file adapter polling the location) to getting the response coming back to XI.
Regards,
Achari. -
Message Archiving for the Adapter Engine
Hi,
we have configured archiving for Integration Engine (SXMB_MONI) messages on the Production XI System. is it necessary to configure Message Archiving for the Adapter Engine also ? in which scenarios archived adapter messages are useful ? are there any other advantages/disadvantages for this(in case of errored messages on the adapter engine) ? Please share any ideas.
Thanks
Pavan.>>is it necessary to configure Message Archiving for the Adapter Engine also
Not necessary,but depends upon the scenario,lets say you are posting messages to external partner's FTP and there was some issue in connectivity due to which file was not delivered,in this case you need to send the message again.
same thing can happen in inbound messages too.
>>in which scenarios archived adapter messages are useful ?
i would do this specifically for JDBC sender coz once you pick up the files based upon SQL query,you change the flag so that those values are not picked next time,in this case you can't re-run the old query and get same results.
this also holds for proxies and file too.
Thanx
Aamir -
Getting synchron message data from advanced adapter engine
Hi,
we have to get all synchron messages from the advanced adapter engine. Normally all messages with errors must be persisted on data-base. How this will be done? We try to with
/people/kenny.scott/blog/2009/03/08/pi-71-af-messaging-system-audit-log-persistence).
But this don´t work :-(.
What´s about correct messages? How this can be persisted?
Is there a API or we must implement a Adapter Module?
Thanks in advance,
FrankHi,
if you just want to see the msg and not its audit log, then in PI by transaction SXMB_ADM - integration engine configurtion - configuration data, add a entry for RUNTIME category LOGGING_SYNC parameter and set it to 1...........then you can see your synch msgs in SXMB_MONI transaction in your PI system.
Regards,
Rajeev Gupta -
HTTP/S POST from J2SE adapter engine (NO SOAP)
Hi there,
We have a scenario at work where we have XI sending messages to the "lightweight" J2SE adapter engine in the DMZ....and from there the message is sent out to an HTTPS site that is obvioulsy outside of our network.
Currently I can see that the J2SE adapter engine support SOAP over HTTP/S......but how can I do a normal POST of the message NOT using SOAP to an external HTTP/S address?
I do not see any straight HTTP adapter in the J2SE adapter engine. I have a small java file that can connect and POST the message to the external website.
My question is how can I use this code easily in the J2SE adapter engine? I just want a simple HTTP
POST ...no SOAP.....
Is there some sort of EXIT or dispatcher that I can hook onto?
Any help or push in the right direction will be greatly appreciated
Regards
LyntonHi there,
You can see in the config file below that we did put it into the adapter config. It does not complain about the parameter BUT it still has the SOAP envelope / headers in the result message. Any ideas how we can get around this?
Thanks for the help
Lynton
# Bubble adapter java class
classname=com.sap.aii.messaging.adapter.ModuleBubble
# Sets the bubble module helper that can instantiate your bubble bag
Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXMBWSImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Below this line are the parameters specific to the ModuleBubbleHelperXMBWSImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# The configuration of this helper class is divided in three parts. The first part,
# Part 0, specifies the common parameters. The second part, Part 1, specifies the
# adapter configuraton for Web-Service clients communicating with an XMB server.
# The third part, Part 2, specifies the configuration for XMB clients
# communicating with a WebService server. For sender or inbound adapters, Part 0
# and Part 1 must be configured. For receiver or outbound adapters, Part 0 and
# Part 2 must be configured.
# This is a sample configuration file for a SOAP Outbound/Receiver Adapter
###### Part 0 (FromWS and ToWS) : common part ######
# Keeps the XMB headers in web service messages
XMBWS.KeepHeaders=false
# Keeps the attachments in web service messages
XMBWS.KeepAttachments=false
# Encodes the xmb headers into a special HTTP header string x-xmb_ws_encoded
XMBWS.UseEncoded=false
# Encodes the value of x-xmb_ws_encoded (see UseEncoded) in the request query string
XMBWS.UseQueryString=false
# Uses the specified xml encoding for the soap envelope encoding
#XMBWS.XMLEncoding=iso-8859-1
*XMBWS.NOSOAP=true*
###### Part 1 (FromWS) : WS clients to XMB server ######
# This part is configured for SOAP Sender or SOAP Inbound-Adapter)
# It is left empty in this configuraton file.
###### Part 2 (ToWS): XMB clients to WS server ######
# This part is configured for SOAP Receiver or SOAP Outbound-Adapter.
# The target URL for the web service, to which the adapter sends web service messages.
XMBWS.TargetURL=https://localhost:443
# The port and path where the adapter waits for XMB messages from clients.
XMBWS.XMBPort=8015
XMBWS.XMBPath=/bt
XMBWS.SSLcertificate=somecert.p12
XMBWS.SSLcertificatePassword=hello
XMBWS.SSLauthentication=true
# The default SOAPAction HTTP request header to the web Service server
XMBWS.DefaultSOAPAction=xmbws
# END -
Message Got Stuck in Adapter Engine
Hi All,
Currently i am facing one problem with Adapter engine. The issue is we have one FILE to RFC to FILE scenario. Source file got picked at 7:15 AM in the morning. But XI placed the target file at 8:05AM. so XI it took 50 mintues to process the file. But in SXBM_MONI the time difference between request and response messsages in 6 seconds.
Where as as per the logs in RWB, Adapter engine too 50 minutes to process a single fine.
Here my question is waht could be the reason for this delay in processing and waht should i do to avoid such delays in real time.
Please help me out in this. Thanks in adavance.
Regards,
Manjula P.Hi,
The link for message diaplay tool
http://server url:Port/MessagingSystem/monitor/monitor.jsp
Click on Sent messages=>Synchronous. Give the proper time when error was occured. The second column is audit log and send the details to us thru the same thread.
and
Click on recevied messages=>ASynchronous. Give the proper time when error was occured. The second column is audit log and send the details to us thru the same thread.
Thanks,
Ramesh -
Messages are failed in Adapter Engine
Hi Experts,
give me solution as early as possible pls
There is a problem with production system in XI.
I am getting the error in Adapter Engine level in Runtime workbench.
"Attempt to process file failed with
com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution:
com.sap.aii.adapter.file.varsubst.VariableDataSourceException: Caught SAXException while parsing XML payload:Fatal Error:com.sap.engine.lib.xml.parser.parserException: XMLparser: No data allowed here(:main:,row:,col:75)"
The scenario is IDOC to JMS & File.
There are 2 conditions
if the data is coming from ECC is valid then Msg will go to the JMS
other wise it will be dropped into File System.There is no problem with valid data.
when ever invalid data will come 70% Messages are processed succefully and few Messages not processed.
if i resend this error message 2 or 3 times it is processed succefully, iam getting huge number of messages like this,
it is difficult to resend because if i select all Msg's it is not processed only one Msg will be processing when iam trying to re-send
please can any body give me the permanent solution for it.
Thanks & Regards
SankarWell,
Take account the following considerations.
1. Check your source code for the variable substitution(Maybe you can show us).
2. check in the tab "Advanced" on you file adapter configuration, there are many checkBox, for example is you are replcainf the file name in you mapping The "File Name" check(in Adapter specific attributes) has to be checked, and if you are using other variables you need to do the same.
I hope It helps you.
Ivan -
ALERT not getting triggered for messages in error in adapter engine
Hi All,
I am doing the same scenario where I have created two Alert category Alert_cat1 and Alert_cat2, both are similar but one i have created for error in integration engine(Alert_cat1 ) and other for adapter engine(Alert_cat2).
Now for Alert_cat1 i have created a rule and in the setting "where did the error occur" I have given no restriction.
Now for Alert_cat2,as discussed in the above blog I have created many rule each for various adapter.
I have tested it, above mentioned configuration is working for message mapping error (sxmb_moni)
but not for any error in adapter engine for messages in waiting or system erroe status.
Kindly suggest where I am going wrong.
Regards
Shefali SHI,
please refer this below blog:
Does Alerts work for Integrated configurations scenario??
thanks, -
How to remove large message stuck in the adapter engine?
Hi experts,
We have a large message abt 100 MB stuck in the adapter engine which is causing the J2EE server to restart continuously.
I have tried increasing the heap sizes and the number of threads in config tool, but no luck. My question here is how to remove that message? Also I checked smq1 and smq2 both are empty.
Regards.Hi Nagasatya,
This issue is realted to Large amount of data.You have to write condition in the query.I have face same issue,but resolved it.Please do the following steps.
Go to Configtool and selct the com.sap.aii.adapter.jdbc.svc and set this jdbc service to start manually instead of auto.
Then restart server0, this time it should be started successfully. Then go to rwb and try to
find if any jdbc hanging/failed messages are there, if so, cancel them;also deactivate the problematic jdbc communication channel, otherwise itwill poll the data again. After all above, you can manually try to start this jdbc.svc particually.
Thanks
Ravi -
Resend Message that fails in adapter engine but shows success in sxmb_moni
Hello SDN!!
We are testing sending soap requests out via SSL. We are using a BEA as a pass through server for SSL encryption only.
The scenerio is to send a message from SAP to PI 7.1 to BEA (SSL enc) to Receiving System. We successfully connect to BEA (only used as a pass-through) but the connection to Receiving System does not work. This returns an error to our adapter engine.
My question is this, Since SXMB_MONI shows the message as successful, but the adapter engine is showing an error. What is the best way for
1. Monitor the errors, (I only see where you can monitor the type of adapter only)
2. Resend the message, since it shows valid in SXMB_MONI, it won't let me resend.
Any help will be greatly appreciated and awarded
Cheers
Devlin1. Once the message is in successful status in moni, the best way to monitor becomes RWB -> Message Monitoring.
2. For adapter engine related errors, you may resend the data manually using the resend option in the Message Monitoring. Otherwise, for automatic retry of messages, you may change the default settings.
Regards,
Prateek -
Message Processing through Advanced Adapter Engine
Hi All
I am trying to design a high volume asynchronous interface through AAE . The scenario is File to ABAP server proxy .
I have few questions about AAE processing with Sender File and Receiver Soap adapter.
1) Suppose if I have 50,000 transaction records in one file Will all go to one queue for processing or many queue processing for processing . if it is many, is it configurable?
2) Should the single file having 50,000 transaction be split to many messages and processed in parallel .
I am trying to find out how AAE helps to achieve performance .
Thanks in Advance.hi,
>>>1) Suppose if I have 50,000 transaction records in one file Will all go to one queue for processing or many queue processing for processing . if it is many, is it configurable?
if you're pushing via AAE (ICO object) only then you can have 50k messages in one file easily
(shound't be more then a few minutes to process in PI) if they are the standard size
Regards,
Michal Krawczyk -
Messages are in To be delivered state in the Adapter engine
Hi,
For all the receiver file adapters the messages are successful processed through Integration Engine ,no messages are stuck in SMQ1 & SMQ2 on Inegration engine.
All the messages are stuck in Adapter Engine with the status "To be Delivered ". These are all asynchorus scenarios. The quality of service is also EO.
We restarted the J2EE engine also several times but no luck.
Did anyone had similar issue?
Thanks
SachinHi,
Status: TO_BE_DELIVERED
Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
Solution:
This is done via the Messaging System receive servlet:
http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>
/<PROTOCOL>
Only if this was executed successfully the Messaging System returns HTTP 200 to the Integration Server and the Status TO_BE_DELIVERED moves to DELIVERING
Try logging into Sap GUI with two users: XIAPPLUSER & XIAFUSER
to see if they are blocked
We can check the messages:
AdapterFramework
com.sap.aii.adapterframework.serviceuser.language
com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
com.sap.aii.adapterframework.serviceuser.pwd
ApplicationSystem
com.sap.aii.applicationsystem.serviceuser.language
com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER
com.sap.aii.applicationsystem.serviceuser.pwd
in the exchange profile to make sure the right passwords and tcode - SXMB_ADM and "active" the queue then the messages and check it out.
Regards
Agasthuri Doss -
Java program to restart failed message in Adapter Engine
Hi,
I am using PI 7.0.
Could anyone tell me whether there is an automated job or URL I can schedule in order to periodically resend messages sitting in the Adapter Engine receive queue that are in status System Error, Holding, or Waiting?
I want to avoid having to monitor the system through message monitoring and manually resending the messages...
Many thanks
BrianHi,
please check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/05/b1b740f83db533e10000000a155106/content.htm
Restarting
Instead of restarting messages with errors manually with message monitoring, you can schedule a job to automatically restart these messages. This is possible for all messages for which the number of defined restart attempts has been exceeded (messages with the System Error status).
You can define one or more rules for each job to restart messages; these rules contain conditions that a message must meet in order to be restarted by the job. At least one of the defined rules must be met for archiving to take place.
Rescheduling
A standard job to reschedule messages is created automatically. The job runs once a day and ensures that messages lost as a result of database failure, for example, are rescheduled. You can schedule additional rescheduling jobs; however, you cannot define rules for them. -
Problem posting message from adapter engine to IS
Hello,
We experience the next problem. We use JMS sender adapter to post message into XI. Message comes into the adapter engine and tries to post it into integration server. http://<host>:8000/sap/xi/engine?type=entry
When posting we get the (very generic) error:
Received HTTP response code 500..
The Adapter engine does a retry every 5 minutes.
After the 3th retry most of the status of the message in the adapter engine is set to NON_DELIVERED.
However for what ever reason sometimes the 2nd or 3th time the message does get processed to the IS.
Is there anyone who experienced similar problems or does anyone know a solution for this.
tnx
EmileHi,
Is this the problem with JMS adapter or with any other Adapter.
<b>8000</b>, is this the same port in smicm-->services. B'cos sometimes people might have a different instance number even.
Cheers,
Siva Maranani.
Maybe you are looking for
-
How to send output of alv report as mail
Hi Experts, I Have retrieved data from USER tables and i need to send the output of the list through mail. could you please help me in completing this task Moderator message: FAQ, please search for previous discussions of this topic. Edited by: Thoma
-
Update from 10.6.8 to Lion - Wiki not working
Hey everybody, updated a server from 10.6.8 to 10.7.3 Lion server. Most of the data is working on the new server. iCal is working as expected, but the wiki didn't work. Reimported the data with wikiadmin migrate -r Backup/Collaboration -g wiki or wik
-
Refx lease rental cash flow for non-cancellable contracts
Dear Refx Group, As per Accounting Standard (AS) 19 - Leases, the lessee should make the following disclosures for operating leases: a) the total of future minimum lease payments under non-cancellable operating leases for each of the following perio
-
Pass a value to a form to be used as a label/readonly
I have a link between a report and an update form. I want to pass the value of a report column to the form to be used as a label. The report column does not exist in the table that the form is based on. How can I do this? I added an item to the form,
-
Open and move files follow by date
How do I open files follow by date for button 1 and move the files follow by date for button 2? Thanks