Receiver JDBC channel is stuck in "delivering" status.
Hi experts,
I have a IDoc -> JDBC scenario, and when the JDBC channel tries to process a message, it get stuck in "delivering" status. Here's the log of the message process:
2011-04-25 17:38:10 Success Message successfully received by messaging system. Profile: XI URL: http://xq0ds001:50100/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
2011-04-25 17:38:10 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
2011-04-25 17:38:10 Success Message successfully put into the queue.
2011-04-25 17:38:10 Success The message was successfully retrieved from the receive queue.
2011-04-25 17:38:10 Success The message status set to DLNG.
2011-04-25 17:39:08 Success Delivering to channel: CC_JDBC_NA_Familiares_BUXIS_Receiver
2011-04-25 17:39:08 Success MP: Entering module processor
2011-04-25 17:39:08 Success MP: Processing local module localejbs/CallSapAdapter
2011-04-25 17:39:08 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
2011-04-25 17:39:09 Success JDBC adapter receiver channel CC_JDBC_NA_Familiares_BUXIS_Receiver: processing started; party , service BS_NA_BUXIS_QA
Any ideas of what could be causing this?
Many thanks!
Vanesa.-
Hi Vanesa,
Make sure you have set the MaxThreadCount parameter to 350 or higher depending of the case and of the resources available.
To increase the parameter, please follow the instructions below:
1. In the left frame choose Server -> Kernel -> ApplicationThreadManager
2. In the tab Display Configuration (right frame) choose Switch between view and edit mode to activate the edit mode.
3. The parameter MaxThreadCount must be set to 350.
4. You will then need to restart the J2ee
For reference see note #937159 - XI Adapter Engine is stuck
For specific setting to an adapter can be done by going to Services -> SAP XI AF Messaging
Look at the property 'Messaging connections' here you will see the following queues:
Send.maxConsumers (asynchronous sending - outbound)
Recv.maxConsumers (asynchronous receipt - inbound)
Call.maxConsumers (synchronous sending - outbound)
Rqst.maxConsumers (synchronous receipt - inbound)
Depending on where the bottleneck is occurring (i.e. too many entries in the Send.maxConsumers) you can increase these parameters.
Example of parameter value syntax (sample for JDBC adapter):
(name=JDBC_http://sap.com/xi/XI/System, Send.maxConsumers=15, Recv.maxConsumers=15, Call.maxConsumers=15, Rqst.maxConsumers=15)
For reference see note:
#791655 - Documentation of the XI Messaging System Service Properties
And see the link:
/people/kenny.scott/blog/2007/08/20/messaging-system-queue-properties-after-xi-30-sp19-xi-70sp11
Regards,
Caio Cagnani
Similar Messages
-
PI RWB-Messages stuck in Delivering Status
Hi Experts,
PI 7.1
Scenario: Proxy to Mail (Outbound)
QOs: Exactly Once in Order
We are facing problem while sending messages to receiver.
Messages are stuck in Delivering status and the messages followed by them are going into holding status.
Messages in Delivering status has no audit logs.
Issue has started couple of months back. We took restart initially to rectify the barrier but it is happening again. This is repetitive issue and we are looking for permanent fix. Restart is not preferred resolution as it is a production system. Please suggest how can we overcome it? It would be a great help.Hi Hardik
I've blogged about this issue recently. Please check out the blog:-
http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/03/27/handling-and-preventing-messages-stuck-in-to-be-delivered-status
Rgds
Eng Swee -
How to put Stored Procedure in Receiver JDBC channel
Hi all,Good Evening,Iam using a JDBC to JDBC scenario in which I have to move the data from database into XI and we all know that the Interfaces which require stored procedures on Oracle database server for publishing the data needs to be called in combination of BPM & Receiver JDBC adapter.
In this method, a dummy interface will be created for triggering the process. This interface could be designed using any adapter which works on polling mechanism (sender JDBC/File). Dummy interface will invoke a small BPM designed for each business object. BPM will make a synchronous call to Oracle database by calling underlying stored procedure. Stored procedure will return the result set by using a cursor. BPM will send this result set to target application.
Now my question is how to put a stored procedure in a receiver JDBC channel which need to collect the data from database when BPM makes a synchronous call.
Because it is required in my scenario,can any one tell me how and where to put stored Procedure in JDBC receiver channel.
Thanks in advance,
Regards,
PrajwalYour action should be EXECUTE for stored procedures in Message mapping.
<StatementName5>
<storedProcedureName action=u201D EXECUTEu201D>
<table>realStoredProcedureeName</table>
<param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
action=EXECUTE
Statements with this action result in a stored procedure being executed. The name of the element is interpreted as the name of the stored procedure in the database. If you use the optional <table> element, the value specified here is used as the stored procedure name. This enables you, for example, to define stored procedure names containing non-XML-compatible characters or characters that prevent them from being used in interface definitions in the Integration Builder/PCK. If specified, <table> must be the first element in the block within <dbTableName>.
The elements within the stored procedure are interpreted as parameters. They can optionally have the attribute isInput=u201C1u201C (input parameter) or isOutput=u201C1u201C (output parameter) or both (INOUT parameter). If both attributes are missing, the element is interpreted as an input parameter. The parameter names must be identical to those of the stored procedure definition.
The attribute type=<SQL-Datatype> , which describes the valid SQL data type, is mandatory for all parameter types (IN, OUT, INOUT).
http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
/people/sap.user72/blog/2005/10/15/jdbc-adapter-execution-mode-chained-or-unchained
/people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi -
Problem in the receiver JDBC channel
hi,
I am facing some problem with the receiver JDBC channel which is trying to insert some data in ORACLE DB. My sample input XML file is,
<root>
<statement>
<table>EBILL_CUST_STATE_AGE_HDR2</table>
<CUST_CODE>BA001</CUST_CODE>
<CUST_ADDR>Rental Customer Name 1+Name 2street01+TEL: 0331694100
FAX:0331694103</CUST_ADDR>
<CRD_LMT>1000000.00</CRD_LMT>
<BG_AMT>1000000.00</BG_AMT>
</statement>
</root>
Error stack is,
Exception caught when executing statement for table/stored proc. 'EBILL_CUST_STATE_AGE_HDR2' (structure 'Statement_CUST_STATE_AGE_HDR2'):
java.sql.SQLException: ORA-00917: missing comma
Please help me in solving the issue ASAP.
Thanks,
SooryaHi,
It works like this
<ROOT>
<STATEMENT>
<TABLENAME ACTION="INSERT">
<TABLE>EBILL_CUST_STATE_AGE_HDR2</TABLE>
<ACCESS>
<CUST_CODE>BA001</CUST_CODE>
<CUST_ADDR>Rental Customer Name 1+Name 2street01+TEL: 0331694100
FAX:0331694103</CUST_ADDR>
<CRD_LMT>1000000.00</CRD_LMT>
<BG_AMT>1000000.00</BG_AMT>
</ACCESS>
</TABLENAME>
</STATEMENT>
</ROOT>
Please refer the link.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
Abid Mazhar -
Messages are stuck in "delivering" status
Hi
We are doing Async RFC to JDBC Scenario. Messages are successful from R/3 to XI but getting stuck at receiver jdbc adapter . subsequent message are also stuck because of this
Below is the audit log of the message
2007-06-29 10:33:08
Success
The message status set to DLNG.
2007-06-29 10:33:08
Success
Delivering to channel: CS_CUS_PS_MAINTENANCE
2007-06-29 10:33:08
Success
MP: entering
2007-06-29 10:33:08
Success
MP: processing local module localejbs/CallSapAdapter
2007-06-29 10:33:08
Success
Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
2007-06-29 10:33:08
Success
JDBC adapter receiver channel CS_CUS_PS_MAINTENANCE: processing started; party , service BUS_MES
After then it just hangs and it shows "delivering" status only
There is no error in SXMB_MONI
Any clues!!!!!!!!!!!!!!
Regards
VijayVijay,
The queues in adapter are different from the queues in Integration Engine.
You can restart failed msg in adapter queues also. Stefan Grube has shown this in a weblog. Just do a search, you will get the blog.
Regards,
Jai Shankar -
Sender File channel in "To be Delivered" status always- PI 7.4- ICO interface
Hello All,
We are testing one Integrated Configuration Object (ICO) which is developed on PI 7.4 system (dual stack). Scenario is simple file to file and it doesnt have any ESR part (pass thru interface).
Sender channel (File adapter NFS based) is picking the file from IN directory and after which it is always in "To be Delivered" status and it never passed to Receiver file channel (NFS based).
We tried stop and starting the channel, deleted and recreated the channel, reactivated the channel, cancelled and restar the message from Message monitoring page, Cache refresh from ID and CPA cache refresh which didn't help us.
Below is audit log of sender File channnel:
Please help us in solving this problem.
Thanks,Hi Naresh,
Have you tried Eng Swee Yeoh advices in this blog Handling and preventing messages stuck in To Be Delivered status?, like to set timeout and the mode Per file transfer.
Regards -
Messages getting stuck in Delivering status in AE
Hi all,
Recently we are coming across messages that go into Delivering status. These messages mostly belong to File Sender/Receiver Adapter but not confined to them. Here is the audit log of one such message:
2011-03-21 10:01:55 Success Write to file "/usr/sap/ZX2/EXT/XI_INTERFACES/SCP2PIF016/NOT_PROCESSED/goodsReceiptPosting_InvalidRecords20110321-100155-650.xml" as binary, size 1949 bytes
2011-03-21 10:01:55 Success File processing complete
2011-03-21 10:01:55 Success MP: Leaving module processor
2011-03-21 10:01:55 Success The message was successfully delivered to the application using connection File_http://sap.com/xi/XI/System.
2011-03-21 10:01:55 Error Setting the message status to DLNG failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: Error updating status..
On searching in SDN I found one work around-- to restart Messaging Service in Visual Admin. This did work as the messages got processed after that. But, the problem seems to be recurring now(once in every two days).
Can any body shed some light on this to find the permanent fix?
Thanks a lot,
Gokul.Hi,
Make sure you have set the MaxThreadCount parameter to 350 or higher depending of the case and of the resources available.
To increase the parameter, please follow the instructions below:
1. In the left frame choose Server -> Kernel -> ApplicationThreadManager
2. In the tab Display Configuration (right frame) choose Switch between view and edit mode to activate the edit mode.
3. The parameter MaxThreadCount must be set to 350.
4. You will then need to restart the J2ee
For reference see note #937159 - XI Adapter Engine is stuck
For specific setting to an adapter can be done by going to the Visual Administrator -> Services -> SAP XI AF Messaging
Look at the property 'Messaging connections' here you will see the following queues:
Send.maxConsumers (asynchronous sending - outbound)
Recv.maxConsumers (asynchronous receipt - inbound)
Call.maxConsumers (synchronous sending - outbound)
Rqst.maxConsumers (synchronous receipt - inbound)
Depending on where the bottleneck is occurring (i.e. too many entries in the Send.maxConsumers) you can increase these parameters.
Example of parameter value syntax (sample for FILE adapter):
(name=FILE_http://sap.com/xi/XI/System, Send.maxConsumers=10, Recv.maxConsumers=10, Call.maxConsumers=10, Rqst.maxConsumers=10)
For reference see note:
#791655 - Documentation of the XI Messaging System Service Properties
And see the link:
/people/kenny.scott/blog/2007/08/20/messaging-system-queue-properties-after-xi-30-sp19-xi-70sp11
Regards,
Caio Cagnani -
Receiver JDBC Channel Error : Incorrect syntax near 'OR'
hi,
we are facing the below error at the receiver communication channel:
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'OR'.
When we again reprocess the message,it shows the exact error at the channel.
Any ideas why the first error shows up?Hi, Anu
The most probable it's that your target XML it's not correct because it haven't a correct format.
Please, check your target XML and see
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/465581929734d9e10000000a42189d/frameset.htm
Regards,
Carme -
Can we configure the dynamic IP address in receiver JDBC channel
Hello,
Can we configure the dynamic IP address in receiver JDBC communication channel at runtime.
Thanks,
Soorya.No, that is not possible.
The simplest solution would be to define a service and communication channel for each server and then use the receiver determination to determine which service to send to.
The only other way would be to use a receiver java proxy where you would have to code in the JDBC request yourself.
Regards,
Yaghya -
Error in receiver JDBC channel
Hi,
I have a receiver JDBC scenario, which must execute a stored procedure.
Output message seems correct:
<ns0:MT_SQL xmlns:ns0="http://www.xxxx">
<STATEMENT1>
<DIRECC ACTION="EXECUTE">
<TABLE>biz_mag_clientes_direcciones</TABLE>
<idcliente type="VARCHAR">0001000692</idcliente>
<idtipodir type="VARCHAR">1</idtipodir>
<iddireccion type="VARCHAR">0210054466</iddireccion>
<idtipovia type="INTEGER">1</idtipovia>
<idciclovida type="VARCHAR" />
<idmaestro type="VARCHAR" />
<idtiporeplicacion type="VARCHAR" />
<cp type="VARCHAR">08188</cp>
<callenum type="VARCHAR">UR CAN SALA XIC APDO. CORREOS 507,</callenum>
<telefono type="VARCHAR">9999999</telefono>
<observacion type="VARCHAR" />
<grupocnae type="VARCHAR">55</grupocnae>
<subgrupocnae type="VARCHAR">5541</subgrupocnae>
</DIRECC>
</STATEMENT1>
</ns0:MT_SQL>
But there is an error in receiver CC:
Unable to execute statement for table or stored procedure. 'biz_mag_clientes_direcciones' due to java.lang.NumberFormatException: For input string: "1 "
I think this problem it's due to idtipovia field (INTEGER type), but i don't know how to solve it.
Any input, please ? Thanks
Carme.Yuki, if i defined this field as CHAR, cc returned this error:
JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'biz_mag_clientes_direcciones' ): com.microsoft.sqlserver.jdbc.SQLServerException: Error converting data type nvarchar to int.
Because this field is INTEGER type in target stored procedure .
Ravi, This field is defined as xsd:integer in data type.
Thanks,
Carme. -
Messages stuck in delivering status
Hi all,
I have an idoc-xi-ftp scenario with EO quality of service. For the very first tests we set up a file CC using nfs and everything worked fine.
Today I received the info to connect to the FTP server and introduce it on the file CC. The issue comes because some kind of problem writing on the ftp server leaves the messages in status "delivering" (DLNG). While FTP guys try to fix the issue (they don't know where he tissue is right now) I have switch again to NFS with the old configuration in order to allow the users to keep testing.
But the issue comes because now the messages being sent to NFS scenario are marked as to be delivered and they are not processed.
I'm suspicious about the delivering ones and I'd like to cancel, but the cancel button doesn't allow me to do it so I'm hanged in a circle.
Any ideas?
Thanks in advance,
David R.Hi,
Yes, ABAP +Java implies a complete restart of the PI server, which is not recommended in the production environment.
Generally, this case is like a deadlock situation. We will not be able to either resend/cancel the messages in delivering.
So , best option would be to identify which server node these messages are stuck and then restart that server node.
With the server node restart these messages in Delivering are again reprocessed by the server.
Regards,
Younus -
While I am Practicing Sameer Shadab Blog
File to Jdbc ( XML file to MS- Access mdb file )
Connecting to MS Access using receiver JDBC Adapter (Without DSN)
I am getting following Error..
JDBC adapter receiver channel cc_jdbc_receiver not initialized. Unable to proceed due to null
Exception caught by adapter framework: JDBC Adapter configuration not initialized: null
MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null
What does it mean..
Is Jdbc adapter not maintained in My XI server or local system on which iam working..?
My server has SQL server ..
File has been picking correctly,while posting it into mdb file iam getting error.
Receiver Jdbc channel details are
JDBC DRIVER : jdbc.odbc.JdbcOdbcDriver
Connection : jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=E:\TEST2\Receiver\TestDB.mdb
are parameters correct?
Thanks in advance,
Ramesh.Hi ,
we tried to install MS-Access in my XI server ,
But we have installed XI server on
IA-64 Bit windows -2003 Enterprise server ..
And my basis guys are telling some 34 Bit vs 64 Bit incompatibility for Access installatoin.
How should i approach further.
Thanks In advance.
Ramesh. -
Errrror in sender JDBC channel in rwb
hi forum,
in a JDBC to XI scenario,
the sender JDBC channel, in rwb, shows error:
Status: RED
Short Log: Adapter has not provided any information for this channel
Error information: Exception: Channel with status unknown or Not Registered
pls help, its in production systemRAJ,
these channels were always active an working fine,
let me explain the problem in detail,
we have three cluster nodes for XI system,
so, in rwb, communiation channel monitoring, we can see the status of a channel corresponding to the 3 nodes seperately,
here i can see that, for 2 nodes the channel is GREEN and working, but for one of the node, it gave the already mention error -
Stuck in To Be Delivered Status in Message Monitoring - Adapter Engine
Hi,
I have messages stuck in To Be Delivered status in Messages Monitoring. When i checked the Audito Logs, there are NO LOGS. I resent the message and now the logs indicated in the Audit Logs is:
2014-03-26 08:39:10
Information
The message was successfully received by the messaging system. Protocol: XI URL: http://<host>:<port>/MessagingSystem/receive/AFW/XI Credential (User): PIIXXXX
2014-03-26 08:39:10
Information
Using connection SOAP_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
2014-03-26 08:39:10
Information
Message successfully put into the queue.
2014-03-26 08:52:48
Information
Admin action: Trying to redeliver message.
The connection between the receiver is ok, does this have something to do with the Communication Channels?
Please help.
thank you.Hi Eng Swee,
there are messages that were cancelled yesterday and the status is 'Terminated With Errors'
this is what is indicated in the Audit Logs
2014-03-26 02:38:47
Information
Admin action: Trying to fail message.
2014-03-26 02:38:47
Error
The message status was set to FAIL.
2014-03-26 02:38:47
Information
Admin action: The message was successfully set to status failed.
2014-03-26 02:38:47
Error
Asynchronous error detected: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Message failed by admin.. Trying to report it.
2014-03-26 02:38:47
Error
Asynchronous error reported.
Is this the reason why the messages are stuck?
thank you! -
Messages stuck in TO BE DELIVERED status
Hi !
Suddenly, whenever a message has to use the File Adapter, no mather which communication channel is to be used, the message is stuck with the "TO BE DELIVERED" status.
These messages, all have SUCCESSFUL status in the SXMB_MONI. The problem is in adapter engine. ALL have NO errors in their Audit Log. Because the problem is in adapter engine/framework, obviously queues at SMQR/SMQ1/SMQ2 are emtpy. ALL have QoS = EO (no eoio queue is used, NO predecessor messages are stuck with system error).
This occurs no mather which adapter is the sender (RFC, File, etc.)
The audit log is:
2008-04-10 16:59:34
Success
Message successfully received by messaging system. Profile: XI URL: http://xxxxxxx:yyyyy/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
2008-04-10 16:59:34
Success
Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
2008-04-10 16:59:34
Success
Message successfully put into the queue.
If we try to resend the message using the "resend" button in RWB, the message keeps in the TBDL state and the only difference is a new "success" entry in the audit log saying that:}
"Success | Admin action: Trying to redeliver message".
We already refreshed the cache and restarted the Java stack.
Any clues?
Thanks !
Regards,
Matias.Hi,
Statuses such as HOLDING or FAILED usually happen only for delivery semantics EOIO (exactly once in order) or BE (best effort means Asynchronous). TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue. This is done via the Messaging System receive servlet:
http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>/<PROTOCOL>
The MS returns HTTP 200 to the Integration Server only if this was executed successfully. In this example scenario, status TO_BE_DELIVERED should not appear since we assume that the IS has called the servlet successfully.
The status is updated from TO_BE_DELIVERED to DELIVERING when the message has popped out of the receive queue and the event handler lookup was successful, so there is a small gap where TO_BE_DELIVERED could remain in the message monitor, although it was delivered from IS successfully.
Regards,
Srini
Maybe you are looking for
-
Download Maintenance Orders instead of Production Order in SAP IM-3.2
Hi All, I am trying to fetch Maintenance orders instead of production order in syclo agentry IM-3.2 In the receipts screen their is a button GetProdOrder which fetches the Production order,instead of fetching the Production Order i want to change it
-
In Internet Explorer, when opening a PDF using the IE addon Adobe Reader XI, the Page Thumbnail toolbar is shrunk to the left (hidden). Our users access the thumbnails constantly and we need this to remain open by default but I cannot find anywhere
-
Integrating BI Publisher 10.1.3.2 with SSO
We have one OID/SSO server, one j2ee (10.1.2.0.2)/Portal server. We had xmlpublisher 5.6.2 deployed on the j2ee server. We installed J2ee (10.1.3.1) on a separate home and deployed BI Publisher. BIP works well standalone without any problems. We are
-
Hi friends. Iam excuting a query, i wanted to find the query excution time. kindly tell me is tr any transaction code to find out this or any ways to know this. regards, Balu.
-
CS4 Installation/Deployment Problem
Hello All, I am new to the forum so I want to thank you in advance for any help you might be able to provide. I have been given the task of deploying CS4 Enterprise to our organization. Using the process described in the CS4 Deployment guide I made