Recovering messages stuck in a dead channel queue

I,
I have a bunch a msg (ca. 30) that are stuck in a non working channel queue. I do not want to loose them but rather have them delivered normally using the other working channels.
How can I do that ?
I have found out how to remove message in a queue, but not how to extract them and redirect them so they are delivered. I hope they will not disappear as they are tried out every so often.
The channel (tcp_scan) was set up to analyze messages for spam/virus on another host according to the CONVERSION setup. Then this mailfilter host died. I stopped the redirection at the MTA, but some messages were already stucked in the channel queue.
SETUP DESCRIPTION
Before:
The CONVERSION setup redirected mail to the tcp_scan channel.
The tcp_scan channel redirected the messages to the mailfilter host where spamassassin and clamav would run.
The mailfilter host would send back the result on the MTA on a special port setup in dispatcher.cnf
The message is delivered locally on the MTA.
Now, the CONVERSION channer has been removed and the messages arrive without screening.
CONFIGURATION FILES
VERSION
imsimta version
Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)
libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006)
SunOS igloo 5.10 Generic_118822-30 sun4u sparc SUNW,Sun-Fire-280R
FILE: mappgins
CONVERSIONS
in-chan=tcp_scan;out-chan=*;CONVERT No
in-chan=tcp_submit;out-chan=*;CONVERT Yes,Channel=tcp_scan
in-chan=tcp_auth;out-chan=*;CONVERT Yes,Channel=tcp_scan
in-chan=tcp_local;out-chan=*;CONVERT Yes,Channel=tcp_scan
FILE:ima.cnf
! tcp_scan
tcp_scan smtp mx daemon 192.33.219.42 \
port 2525 subdirs 20 noreverse dequeue_removeroute maxjobs 7 \
pool SMTP_POOL maytlsserver allowswitchchannel \
saslswitchchannel tcp_auth
tcp_scan-daemon
FILE:dispatcher.cnf
[SERVICE=SMTP_ROUTER]
PORT=3525
IMAGE=/opt/SUNWmsgsr/lib/tcp_smtp_server
LOGFILE=IMTA_LOG:tcp_smtp_server.log
STACKSIZE=2048000
PARAMETER=CHANNEL=tcp_scan
Thanks
Fran�ois

fafouli wrote:
I have found out how to remove message in a queue, but not how to extract them and redirect them so they are delivered. I hope they will not disappear as they are tried out every so often.How you get the messages to be 'redelivered is very-much a case-by-case basis. Once an email enters a queue it can be difficult to get the email redelivered in an automated fashion as there may be insufficient data to work out where the email needs to go.
For example if you have emails stuck in the ims-ms channel the envelope address is <uid>@ims-ms-daemon, getting this to be redelivered to say another store or another non-messaging server (the 'original' address the email come in as) may not be possible.
The channel (tcp_scan) was set up to analyze messages for spam/virus on another host according to the CONVERSION setup. Then this mailfilter host died. I stopped the redirection at the MTA, but some messages were already stucked in the channel queue.
CONVERSIONS
in-chan=tcp_scan;out-chan=*;CONVERT No
in-chan=tcp_submit;out-chan=*;CONVERT Yes,Channel=tcp_scan
in-chan=tcp_auth;out-chan=*;CONVERT Yes,Channel=tcp_scan
in-chan=tcp_local;out-chan=*;CONVERT Yes,Channel=tcp_scanI assume this is the before configuration otherwise the conversion hop is still in place as Jay mentioned.
FILE:ima.cnf
! tcp_scan
tcp_scan smtp mx daemon 192.33.219.42 \
port 2525 subdirs 20 noreverse dequeue_removeroute maxjobs 7 \
pool SMTP_POOL maytlsserver allowswitchchannel \
saslswitchchannel tcp_auth
tcp_scan-daemonAn alternative approach to what Jay suggested. If the conversion hop is indeed no-longer in place, you could try changing "mx daemon 192.33.219.42" to "nomx daemon 127.0.0.1" and uncomment the tcp_scan channel. This should then cause any emails in tcp_scan channel to be delivered back into messaging server (rather then the anti-virus/spam system) and then get delivered as-per-normal.
Regards,
Shane.

Similar Messages

  • Messages stuck in "Retry" in Submission Queue - Exchange 2013

    Hello,
    We have 2013 Exchange consisting of 2 CASs and 2 MBX servers spanning two locations via VPN, 1 of each server in each location. We are hosting exchange for an outside domain, and have just transferred them into our organization within the last month. There
    are two users who consistently have messages stuck in the "Retry" status in the submission queue. Not all of their messages, but usually 2-4 are stuck and eventually kicked back to them. 
    I have read other forums about a potential issue with conversion to RTF. I have forced the queues empty and attempted this fix, but within a week the users had messages stuck again.
    Has anybody run into this and possibly found a fix?

    Thank you for all your replies.
    It appears this issue has been resolved. At first I made the following change:
    Get-RemoteDomain | Set-RemoteDomain -TNEFEnabled $False
    Restarted Transport services on both mailbox DB Servers and the messages remained in the queue and more messages were getting stuck.
    Then I made this change:
    Get-RemoteDomain | Set-RemoteDomain -TNEFEnabled $True
    Restarted Transport services on both mailbox DB Servers and the messages cleared from the queues and it seems no more messages are getting stuck as they were before.
    I also changed the message timeout from 2 days to 2 hours. I'd rather know sooner than later that a message was stuck. I plan to continue monitoring this.
    Thanks again.
    Stop Stop Stop, this isn't a solution! Every single post I run into this answer, but it is a real crappy "solution". Simple: there is no solution yet, if everyone take this for an answer there will never we a good answer! This is a work around,
    we got mails stucked in the queue for 2 months and it start with no reason. We have every update, enough disk space etc. Settinf the remote domain to true brings you the problem with Apple users and Gmail, hotmail etc. They will receive an email.dat or no
    attachment when you send HTML mail. The False or Null is a future that make mail HTML so you can use signatures, pictures etc. It always worked, now only for 2 days and we must reboot again. Set de Remote domain to true we have problems with customers who
    doens't receive their email correct!.
    Microsoft please solve this problem and stop making crappy excuses or crappy workarounds, a solution is what we need!!!

  • DB API for automatically recovering message stuck in undelivered state

    Hi,
    Can someone point me to any DB APIs that can be used to automatically recover messages in undelivered state (orabpel.invoke_message, state=0)
    We have implemented a DB query to alarm if there are undelivered messages, want to take it to next level by triggering automatic recovery of such messages.
    Any help is appreciated.
    Thanks, Gopal

    I'm seeing this behavior too.
    MBP Retina from Mid 2012
    3/8/14 3:36:38.846 PM loginwindow[69]: DPRemoteDesktopPicture: error getting desktop picture for display 0x4280382, error = no desktop picture for display 0x4280382 and spid=3

  • Messages got stuck in inbound adapter engine queue

    Hi Experts,
    My senario is File - XI -SAOP reciever and we have 8 usecases of same type. For 7 usecase, we dont have any problem. But for only one use case we have having heavy delay in processing messages.
    All  my messages got stuck in inbound queue of Adapter engine in to be delivered state, wait state, delivering state.
    Please see the below logs and suggest some solution.
    To be delivered Message log  :
    Time Stamp Status Description
    2008-06-30 06:54:20 Success Processing child message of multi-message with message ID 8c597510-466f-11dd-92f9-000f203c93e0
    2008-06-30 06:54:20 Success Using connection AFW. Trying to put the message into the receive queue.
    2008-06-30 06:54:20 Success Message successfully put into the queue.
    Waiting Message log :
    Audit Log for Message: 4864ad2b-cabd-5891-e100-00000aa3fdb2
    Time Stamp Status Description
    2008-06-30 06:42:24 Success Processing child message of multi-message with message I
    2008-06-30 06:42:24 Success Using connection AFW. Trying to put the message into the receive queue.
    2008-06-30 06:42:24 Success Message successfully put into the queue.
    2008-06-30 07:46:16 Success The message was successfully retrieved from the receive queue.
    2008-06-30 07:46:16 Success The message status set to DLNG.
    2008-06-30 07:46:16 Success Delivering to channel: CC_SOAP_Receiver
    2008-06-30 07:46:16 Success SOAP: request message entering the adapter
    2008-06-30 07:51:24 Success SOAP: call failed
    2008-06-30 07:51:24 Success SOAP: sending a delivery error ack ...
    2008-06-30 07:51:24 Success SOAP: sent a delivery error ack 
    2008-06-30 07:51:24 Error SOAP: error occured: java.net.SocketTimeoutException: Read timed out
    2008-06-30 07:51:24 Error Exception caught by adapter framework: Read timed out
    2008-06-30 07:51:24 Error Delivery of the message to the application using connection AFW failed, due to: Read timed out.
    2008-06-30 07:51:24 Success The asynchronous message was successfully scheduled to be delivered at Mon Jun 30 07:56:24 GMT 2008.
    2008-06-30 07:51:24 Success The message status set to WAIT.
    Delivering Message log :
    Audit Log for Message: 4864ad2d-cabd-5891-e100-00000aa3fdb2
    Time Stamp Status Description
    2008-06-30 06:42:24 Success Processing child message of multi-message with message ID 7481f110-466f-11dd-b8ce-000f203c93e0
    2008-06-30 06:42:24 Success Using connection AFW. Trying to put the message into the receive queue.
    2008-06-30 06:42:24 Success Message successfully put into the queue.
    2008-06-30 07:46:24 Success The message was successfully retrieved from the receive queue.
    2008-06-30 07:46:24 Success The message status set to DLNG.
    2008-06-30 07:46:24 Success Delivering to channel: CC_SOAP_Receiver
    2008-06-30 07:46:24 Success SOAP: request message entering the adapter
    2008-06-30 07:51:24 Success SOAP: call failed
    2008-06-30 07:51:24 Success SOAP: sending a delivery error ack ...
    2008-06-30 07:51:24 Success SOAP: sent a delivery error ack 
    2008-06-30 07:51:24 Error SOAP: error occured: java.net.SocketTimeoutException: Read timed out
    2008-06-30 07:51:24 Error Exception caught by adapter framework: Read timed out
    2008-06-30 07:51:24 Error Delivery of the message to the application using connection AFW failed, due to: Read timed out.
    2008-06-30 07:51:24 Success The asynchronous message was successfully scheduled to be delivered at Mon Jun 30 07:56:24 GMT 2008.
    2008-06-30 07:51:24 Success The message status set to WAIT.
    Thank you
    Subbu

    Dear Subramanyam,
    Some message might be struck in the queue. Because of this reason furthur processing is not performed on time.
    Please try to do like this:
    Go to SXMB_MONI, or SXi_monitor, select QueueID in the row, which is showing green flag. In the next window belongs to queue select the queue and press unlock button on the panel.
    This could possibly release the queue which is struck.
    Best Regards
    Praveen

  • Messages stuck in queue AFWRecv of Adapter Framework

    Hello,
    Messages stuck in queue AFWRecv of Adapter Framework in our production system(trace in  RWB: "to be delivered")
    in URL http://xxxxxxx:50000/MessagingSystem/monitor/systemStatus.jsp we can see:
    Queue Info 
    Queue Name isStarted QueueSize ThreadCount (working) MaxThreads
    AFWCall true 0 0 (0) 20
    AFWRecv true 954 10 (10) 10
    AFWRqst true 0 0 (0) 20
    AFWSend true 0 0 (0) 10
    We have tried to resend the first message but that´the result:
    Time Stamp Status Description
    2010-10-09 11:24:06 Success The message was successfully received by the messaging system. Profile: XI URL: http://xxxxxxxxx:8100/MessagingSystem/receive/AFW/XI
    2010-10-09 11:24:06 Success Using connection AFW. Trying to put the message into the receive queue.
    2010-10-09 11:24:06 Success Message successfully put into the queue.
    2010-10-11 00:01:46 Success Recovering from loss of connection to database; message loaded into queue by recover job: System Job (Failover Recovery)
    2010-10-11 02:48:16 Success System Startup: Message successfully loaded into queue: AFWRecv.
    2010-10-13 11:03:19 Success Admin action: Trying to redeliver message.
    2010-10-13 11:03:46 Success Admin action: Trying to redeliver message.
    Since then it stucks there...
    Any help would be apreciated....

    Hi,
    Go to the runtime workbench --> Message Monitoring --> Click on the 'Configure Table Columns' > Check Sequence ID, Serialization Context & Sequential Number options.> and then click 'Apply'.
    Then in the 'Serialization Context' column you will get the queue ID for the stcuk message.
    Take that value and click on the 'Show additional Criteria' option on the top and put this value in the 'Serialization context' parameter. Also,select the start/end date as 'This year' --> start.
    You will get all the messages stuck in that particular queue for this yoear, try to rectify them, so that your message will be processed.
    -Supriya.

  • Mails/Alerts-triggered for messages stuck in queues and failed in moni

    Hi,
    I have two doubts.
    1) Messages are getting stuck in smq2 of my ECC and PI system. I have to manually push them. Is there any mechanism in which we can get alerts/mails when messages get stuck in queues.
    I have already gone through the blog /people/santhosh.kumarv/blog/2009/05/19/sap-xipi-alerts-for-queue-errors and I have implemented it in ECC system. But no mails were generated.
    2)Is there any method in which I can get alerts/mails when a message fails in sxmb_moni of ECC system?
    Thanks and regards,
    Siji

    Hi Sanjeev,
    I made a report with the following code in it and executed it. So I think that should work even if the job for it is not scheduled. There were messages stuck in queue. But no alert was generated. I had also created alert category in ECC.
    Thanks and regards,
    Siji

  • TNEF Issue - Winmail.dat or messages stuck in submission queue

    Hi guys, 
    I've looked around the forums and have found people that have had submission queue issues when they set TNEF to $null or $false, and have found that the unified answer is to set TNEF to $true.
    I also see folks having issues with recipients in remote domains receiving winmail.dat files in some instances (with a .pdf or .xls file attached) if TNEF is set to $true.
    I have both issues. If I set TNEF to $true, I encounter the winmail.dat file problem. If I set TNEF to $false or $null, I encounter the submission queue issue (submission queue states "A transient storage failure occured", and users get a queue
    expiration bounce). Neither of these states are acceptable. I cannot have messages stuck in the queue only to be expired, and I cannot have recipients in remote domains failing to receive attachments in emails. 
    Does anyone have a possible workaround that might resolve this particular situation? It seems that this has been an issue in Exch 2010.
    Current Environment Configuration:
    I am running Exchange 2013 SP1 Standard on both of my CAS/MBX servers, running on Server 2012 R2 patched to the latest updates. I have an inbound spam filter, but mail outbound is not filtered, therefore the spam filter on our side should not play a role.
    I do have not made any changes to the exchange default malware filter either. Other than this issue, mail is flowing correctly and as expected.

    I also see folks having issues with recipients in remote domains receiving winmail.dat files in some instances (with a .pdf or .xls file attached) if TNEF is set to $true.
    Hi,
    According to your description, my understanding is that all the remote domain's recipients would receive winmail.dat files when you send the message to them if TNEF is set to $true, right?
    The Winmail.dat file is used to preserve Rich Text formatting. Outlook uses it when sending a Rich Text-formatted message. During transport, the content of the message may be changed, preventing the receiving client from being able to read the formatting
    instructions. In other cases, the receiving client does not use or recognize the winmail.dat file.
    I recommend that you refer to the following article to solve the issue:
    http://support.microsoft.com/kb/278061
    Method 1: Change the default message format
    The sender can change the format of the email messages that they send by using the following steps:  
    On the Tools menu, click Options, and then click
    Mail Format.
    In Compose in this message format, click to select Plain Text, and then click
    OK.
    NOTE: To send to certain recipients that use RTF format and others recipients that use plain text format, the sender must set the option for the recipient in either the Personal Address Book or the recipient's contact record.
    Method 2: Modify the recipient's entry in the Personal Address Book
    The sender can use the following steps to remove the RTF format from the recipient attribute in the Personal Address Book:  
    On the Tools menu, click Address Book.
    In Show Names From, click the Personal Address Book.
    Select the addressee that you want to set as plain text, and then click
    Properties on the File menu.
    In the SMTP-General tab, click to clear the Always send to this recipient in Microsoft Exchange rich text format check box, and then click
    OK.
    Method 3: Change the specific contact format
    The sender can use the following steps to set plain text in the recipient's contact record:  
    Open the recipient's record in the Contacts folder.
    Double-click the recipient's e-mail address.
    In the E-Mail Properties dialog box, click Send Plain Text only under
    Internet Format.
    Method 4: Set the Outlook Rich Text Format Internet e-mail setting
    In Outlook 2003 and Outlook 2007, click Options on the Tools menu.
    Click the Mail Format tab.
    Click Internet Format.
    Under Outlook Rich Text options, click either Convert to HTML format or
    Convert to Plain Text format.
    Hope this helps!
    Thanks.
    Niko Cheng
    TechNet Community Support
    Niko,
    The Winmail.dat issue is only part of the problem, as described in my original post. For these messages (which it's a different set of messages every time, and it's becoming impossible for me to track them all down), if I set exchange or outlook to encode
    the message in Rich Text, the message gets encoded and sent to the recipient. Some of our recipients will reject the message because it is rich text, others receive a winmail.dat file.
    However, if I set exchange to not encode messages (TNEF= $false or $null), the message becomes stuck in the submission queue and eventually times out with an error resembling "Storage Transient Failure". 

  • Exchange 2013 Messages Stuck in Queue

    Hello,
    I have an Exchange 2013 on-prem serer.  I'm noticing that certain messages get stuck in the queue.  They report back errors of "451 4.4.0 SMTPSEND.SuspiciousRemoteServerError; remote server disconnected abruptly; retry will be delayed".
    It seems to be random.  I've sent messages to a domain I've seen with messages stuck, and mine work.  When I log the send connector it really doesn't show me much.  Can anyone give me some leads?
    2014-10-13T14:41:42.162Z,Internet Outbound,08D1B4FCB0EBBB8A,10,10.10.0.30:19282,152.163.0.67:25,>,EHLO mail.mydomain.com,
    2014-10-13T14:41:42.178Z,Internet Outbound,08D1B4FCB0EBBB8A,11,10.10.0.30:19282,152.163.0.67:25,<,250-mtaig-aak04.mx.aol.com,
    2014-10-13T14:41:42.178Z,Internet Outbound,08D1B4FCB0EBBB8A,12,10.10.0.30:19282,152.163.0.67:25,<,250-STARTTLS,
    2014-10-13T14:41:42.178Z,Internet Outbound,08D1B4FCB0EBBB8A,13,10.10.0.30:19282,152.163.0.67:25,<,250 DSN,
    2014-10-13T14:41:42.193Z,Internet Outbound,08D1B4FCB0EBBB8A,14,10.10.0.30:19282,152.163.0.67:25,>,STARTTLS,
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B4FCB0EBBB8A,15,10.10.0.30:19282,152.163.0.67:25,<,220 2.0.0 Ready to start TLS,
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B4FCB0EBBB8A,16,10.10.0.30:19282,152.163.0.67:25,*,,Sending certificate
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B4FCB0EBBB8A,17,10.10.0.30:19282,152.163.0.67:25,*,"CN=mail.mydomain.com, OU=Domain Control Validated",Certificate subject
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B2FCB0ENBB8A,18,10.10.0.30:19286,152.163.0.67:25,*,"CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O=""GoDaddy.com, Inc."", L=Scottsdale, S=Arizona,
    C=US",Certificate issuer name
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B4FCB0EBBB3A,19,10.10.0.30:19282,152.163.0.67:25,*,0828F6C11RF919,Certificate serial number
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B4FCB0EBBB8A,20,10.10.0.30:19282,152.163.0.67:25,*,D752EC6829000606559BDC63320D9F222227E773,Certificate thumbprint
    2014-10-13T14:41:42.209Z,Internet Outbound,08D1B4FCB0EBBB8A,21,10.10.0.30:19282,152.163.0.67:25,*,mail.mydomain.com;www.mail.sigwnet.com;autodiscover.mydomain.com,Certificate alternate names
    2014-10-13T14:41:42.240Z,Internet Outbound,08D1B4FCB0EB3B8A,22,10.10.0.30:19282,152.163.0.67:25,*,,Received certificate
    2014-10-13T14:41:42.240Z,Internet Outbound,08D1B4FCA0EBBB8A,23,10.10.0.30:19282,152.163.0.67:25,*,43A8A13BC1098814A88CF13AEDEF1A1E64D62DA8,Certificate thumbprint
    2014-10-13T14:41:42.240Z,Internet Outbound,08D1B4FCB0EBBB8A,24,10.10.0.30:19282,152.163.0.67:25,>,EHLO mail.mydomain.com,
    2014-10-13T14:41:42.474Z,Internet Outbound,08D1B4FCB0EBBA8A,25,10.10.0.30:19282,152.163.0.67:25,<,250-mtaig-aak04.mx.aol.com,
    2014-10-13T14:41:42.474Z,Internet Outbound,08D1A4FCB0EBBB8A,26,10.10.0.30:19282,152.163.0.67:25,<,250 DSN,
    2014-10-13T14:41:42.474Z,Internet Outbound,08D1B4FCB0EBBB8A,27,10.10.0.30:19282,152.163.0.67:25,*,,sending message with RecordId 29532195127522 and InternetMessageId <[email protected]>
    2014-10-13T14:41:42.474Z,Internet Outbound,08D1B4FCB0EBBB8A,28,10.10.0.30:19282,152.163.0.67:25,>,MAIL FROM:<[email protected]>,
    2014-10-13T14:41:42.505Z,Internet Outbound,08D1B4FCB0EBBB8A,29,10.10.0.30:19282,152.163.0.67:25,<,250 2.1.0 Ok,
    2014-10-13T14:41:42.505Z,Internet Outbound,08D1B4FCB0EBBB8A,30,10.10.0.30:19282,152.163.0.67:25,>,RCPT TO:<[email protected]>,
    2014-10-13T14:41:42.552Z,Internet Outbound,08D1B4FCB0EBBB8A,31,10.10.0.30:19282,152.163.0.67:25,<,250 2.1.5 Ok,
    2014-10-13T14:41:42.552Z,Internet Outbound,08D1B4FCB0EBBB8A,32,10.10.0.30:19282,152.163.0.67:25,>,DATA,
    2014-10-13T14:41:42.583Z,Internet Outbound,08D1B4FCB0EBBB8A,33,10.10.0.30:19282,152.163.0.67:25,<,354 End data with <CR><LF>.<CR><LF>,
    2014-10-13T14:41:45.688Z,Internet Outbound,08D1B4FCB0EBBB8A,34,10.10.0.30:19282,152.163.0.67:25,<,250 2.0.0 Ok: queued as 8A7497000009F,
    2014-10-13T14:41:45.688Z,Internet Outbound,08D1B4FCB0EBBB8A,35,10.10.0.30:19282,152.163.0.67:25,>,QUIT,
    2014-10-13T14:41:45.719Z,Internet Outbound,08D1B4FCB0EBBB8A,36,10.10.0.30:19282,152.163.0.67:25,<,221 2.0.0 Bye,
    2014-10-13T14:41:45.719Z,Internet Outbound,08D1B4FCB0EBBB8A,37,10.10.0.30:19282,152.163.0.67:25,-,,Local
    2014-10-13T14:42:01.132Z,Internet Outbound,08D1B4FCB0EBBB88,27,10.10.0.30:19263,74.208.5.21:25,*,,"HandleError has encountered a suspicious connection reset from a remote, non-mailbox transport server (will retry in 00:10:00)."
    2014-10-13T14:42:01.132Z,Internet Outbound,08D1B4FCB0EBBB88,28,10.10.0.30:19263,74.208.5.21:25,-,,Remote

    Hi rmicha9682,
    Agree with Gareth, it seems to be a firewall issue.
    I have seen this issue caused by the SMTP Fixup protocol when using TLS encryption.
    I recommend you try disabling SMTP Fixup and check if any helps.
    The following article for your reference:
    http://support.microsoft.com/kb/320027/en-us
    Best regards,
    Niko Cheng
    TechNet Community Support

  • JMS messages stuck in queue in weblogic v923 cluster

    Hi all,
    Enviornment details:
    In our pre-production weblogic v923 cluster enviornment with Oracle 10g database, there are 10 server boxes with 2 managed nodes running on each server box in linux enviornment.
    There are 3 JMS queues and 1 error queue per managed node.
    All the queues are durable and the persitence store is a database table. There is a single database table per single managed node.
    High loads of JMS messages from client applications coming on each of the 3 JMS queue are processed by the cluster on daily basis.
    The JMS messages that failed to be processed the very first time due to the application logic exceptions are put on error queue since the retry is set to zero on the non-error queue.
    The application exceptions are logged to a database table for futher reference.
    The falied messages from the error queue are read by spring based MDP and resent to the application for reprocessing.
    If no application exceptions, the message will be persisted in a relational database; in the case of failures, MDP code puts the failed message back on to the error queue.
    The auto_ack is true on the JMS message.
    It is observed about less than 1% of the messages fail the original processing and are in error queue on daily basis.
    99.9% of the time, the reprocessing of the messages from the error queue is a success.
    Currently due to some obvious reasons, the system administrator stops a managed node when the disk is full and start a different managed node on the same server box. This approach will be stopped in the very near future so that all nodes on all servers are running at any point of time by making few enviornment changes.
    Problem:
    1a) Occasionally, it is observed that 1 - 4 JMS messages are stuck in the error queue. There are no signs of reprocessing as there are no application exceptions or the corresponing insert into the database. The JMS persistence store table still has the JMS message.
    1b) It is observed that over time, the same JMS messages that were originally stuck on server 1's managed node A are no longer there but are found in a different node (say node B) on a different server box.
    As far as I understand the JMS, a message could be in a Pending state if MDP (in my case) does not automatically send ACKNOWLEGMENT back due to an issue in the Spring Defaultlisternercontainer before calling MDP's onMessage(). I am not sure as what happens to that status over time).
    It is also observed that the stuck messages content is not much different than the other messages that are processed fine.
    Any pointers/input is highly appreciated.
    Thanks in advance for your valuable input and time.

    Off the top of my head, I can only think of two reasons why a message might move from node to node:
    (A) An application is dequeueing them and enquening them elsewhere.
    (B) The application is using distributed queues, and the distributed queue has been configured to enable "queue forwarding". The forwarding feature automatically moves messages from distributed queue members that have no consumers to members that do have consumers. Queue forwarding is sometimes enabled as a work-around to better enable MDP support of WL distributed destinations, unlike WebLogic MDBs, MDPs have no container logic to ensure that all members of a distributed destination are serviced by a consumer under all circumstances...
    Regards,
    Tom

  • Messages stucked in moni with queue status as "RUNNING"

    Hi All,
      Few of messages stucked in moni with queue status as "RUNNING" from the past 6 to 7 hours. all the stucked messages running on same dialog instance app server 03 (ucobpi03_PIP_03). i checked PIP appserver its working fine.
    Can any one please expalin me how to clean the queues..is there any effect of other queues ?
    Thanks,
    Siva.

    Hi,
    it can be due to multiple reasons....
    check the interface logic built ...it can be either due to this or can be of large volume of data...
    Also check the queues have been registered or not...
    HTH
    Rajesh

  • Messages Stuck in Queue in PI

    Hi,
    For a few inbound interfaces for which PI is the middleware, we have found that the messages are stuck in queue in PI. We have also found that the messages are stuck in the queue in PI because one message which has an RFC error (It does a RFC lookup from PI into R/3).
    Is there any way in which we can trigger the RFC lookup manually for the failed message in the queue in PI?
    If this is not the right forum, please let me know the correct forum.
    Thanks in advance.
    Mick

    Hi,
    We can prevent this problem through standard SAP program RSQIWKEX.  This program need to execute background.  Whenever any message stuck in queue automatically this problem will restart error message automatically.  If you want to delete error message from queue (due to this error message remaining messages are in hold stage.  for remaining message execution we need to delete error message from queue) we need to change one function in this probem.
    Existing function TRFC_QIN_RESET_LUW , this function only can restart error message.
    Need to add function TRFC_QIN_DELETE_LUW , this function delete error message from queue.
    For this program execution we need to mentioned queue name(mandatory), find message stucking queue name and give same name to program in variant.
    I hope now clear

  • Messages stuck in "Messages Pending" column of a JMS queue.

    Hi
    Is there any way to retrive the messages which are stuck in "Messages Pending" column of a JMS queue.
    weblogic 8.1 SP5 version.
    Thanks

    there is some possibility to prevent the Pending Message or to automatically purge them on WL 9.x or WL 10.x?WebLogic JMS provides "message management" console, scripting, and mbean features to view and manipulate messages in a destination. You can search for "message management" in this newsgroups for more information - here's a good post: Re: WLST Script Help It also provides features for automatically moving problem messages to an error destination, expiring old messages, and/or deleting messages thave have exceeded a configured redelivery limit. I suggest reading through our feature list in the documentation, see "Value-Added WebLogic Server JMS Features" in the [ Information Roadmap | http://download.oracle.com/docs/cd/E15523_01/web.1111/e14529/messaging.htm#sthref23 ].
    Note that it's usually best to try and understand why messages are marked pending and fix the underlying reason instead of purging such messages. Messages are normally pending for a valid reason, and most use cases can't tolerate arbitrarily losing a message.
    Tom

  • Messages stuck in Java Queues

    I am running PI7.0 SP10 on a MCOD system running ECC6.0 and EP.
    We had an issue last week on our Production system where the Java Stack went down, and when the system came back up, we cleared the issues in SMQ1, SMQ2 and SM58 and now we have over two hundred messages stuck in the java queues.
    There is nothing locked in SM13, in sxmb_moni all the messgaes are successfully processed...  In the RWB the status of the messages are "To be delivered".
    I have tried reactivating the adapters but this has not worked.
    The queues can be seen in the http://host.fqdn:5<SYSNO>00/MessagingSystem/monitor/systemStatus.jsp
    specifically : File_http://sap.com/xi/XI/SystemRecv
    and
    SOAP_http://sap.com/xi/XI/SystemRecv
    where the "isStarted" is set to false, where all the others are true...
    How can I go about starting these and processing the backlog of messages??
    I have searched OSS, SDN and SAPFans but had not luck!
    I have subsequently done a full cache refresh and CPACache refresh but this has not helped.
    There are no locked users (XI/PI users) holding this up!

    Ok,
    It seems to be ok, the return can be http 200 or http 500.
    The Soap and File are destinations, ok.
    The messages are with status "delivering" on rwb... really, increasing the number of threads will not solve this...
    I don't have access to visual admin (only basis team can access it here). I thought it could be something wrong with destination (but you already checked it)... so, the only thing can be done is to find in visual admin somewhere about system properties, conection parameters searching for something wrong there... here are our parameters if you would like to find something (sorry for the size of message)...
    AFW.Call.maxConsumers 10
    AFW.Recv.maxConsumers 5
    AFW.Rqst.maxConsumers 10
    AFW.Send.maxConsumers 5
    BC_http://sap.com/xi/XI/System.Call.maxConsumers 20
    BC_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    BC_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    BC_http://sap.com/xi/XI/System.Send.maxConsumers 10
    BcAdapter.Call.maxConsumers 10
    BcAdapter.Recv.maxConsumers 5
    BcAdapter.Rqst.maxConsumers 10
    BcAdapter.Send.maxConsumers 5
    CIDXAdapter.Call.maxConsumers 10
    CIDXAdapter.Recv.maxConsumers 5
    CIDXAdapter.Rqst.maxConsumers 10
    CIDXAdapter.Send.maxConsumers 5
    CIDX_http://sap.com/xi/XI/System.Call.maxConsumers 20
    CIDX_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    CIDX_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    CIDX_http://sap.com/xi/XI/System.Send.maxConsumers 10
    EOIO.lockTimeout 5
    File_http://sap.com/xi/XI/System.Call.maxConsumers 20
    File_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    File_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    File_http://sap.com/xi/XI/System.Send.maxConsumers 10
    JDBC_http://sap.com/xi/XI/System.Call.maxConsumers 20
    JDBC_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    JDBC_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    JDBC_http://sap.com/xi/XI/System.Send.maxConsumers 10
    JMS_http://sap.com/xi/XI/System.Call.maxConsumers 20
    JMS_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    JMS_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    JMS_http://sap.com/xi/XI/System.Send.maxConsumers 10
    JPR.Call.maxConsumers 10
    JPR.Recv.maxConsumers 5
    JPR.Rqst.maxConsumers 10
    JPR.Send.maxConsumers 5
    MPA.Call.maxConsumers 10
    MPA.Recv.maxConsumers 5
    MPA.Rqst.maxConsumers 10
    MPA.Send.maxConsumers 5
    Mail_http://sap.com/xi/XI/System.Call.maxConsumers 20
    Mail_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    Mail_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    Mail_http://sap.com/xi/XI/System.Send.maxConsumers 10
    Marketplace_http://sap.com/xi/XI/System.Call.maxConsumers 20
    Marketplace_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    Marketplace_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    Marketplace_http://sap.com/xi/XI/System.Send.maxConsumers 10
    RFC_http://sap.com/xi/XI/System.Call.maxConsumers 20
    RFC_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    RFC_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    RFC_http://sap.com/xi/XI/System.Send.maxConsumers 10
    RNIF11Adapter.Call.maxConsumers 20
    RNIF11Adapter.Recv.maxConsumers 10
    RNIF11Adapter.Rqst.maxConsumers 20
    RNIF11Adapter.Send.maxConsumers 10
    RNIF11_http://sap.com/xi/XI/System.Call.maxConsumers 20
    RNIF11_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    RNIF11_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    RNIF11_http://sap.com/xi/XI/System.Send.maxConsumers 10
    RNIFAdapter.Call.maxConsumers 10
    RNIFAdapter.Recv.maxConsumers 5
    RNIFAdapter.Rqst.maxConsumers 10
    RNIFAdapter.Send.maxConsumers 5
    RNIF_http://sap.com/xi/XI/System.Call.maxConsumers 20
    RNIF_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    RNIF_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    RNIF_http://sap.com/xi/XI/System.Send.maxConsumers 10
    SOAP_http://sap.com/xi/XI/System.Call.maxConsumers 20
    SOAP_http://sap.com/xi/XI/System.Recv.maxConsumers 10
    SOAP_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
    SOAP_http://sap.com/xi/XI/System.Send.maxConsumers 10
    bulkCommit.threshold 100
    cluster.timeout 60000
    connection.0.ackListener null
    connection.0.exceptionListener localejbs/AFWListener
    connection.0.jms.messageSelector null
    connection.0.jms.profile null
    connection.0.jms.provider null
    connection.0.jms.queue null
    connection.0.messageListener localejbs/AFWListener
    connection.0.name AFW
    connection.0.pollAttempts 60
    connection.0.pollInterval 60000
    connection.1.ackListener localejbs/MarketPlaceAdapterListener
    connection.1.exceptionListener localejbs/MarketPlaceAdapterListener
    connection.1.jms.messageSelector null
    connection.1.jms.profile null
    connection.1.jms.provider null
    connection.1.jms.queue null
    connection.1.messageListener localejbs/MarketPlaceAdapterListener
    connection.1.name MPA
    connection.1.pollAttempts 60
    connection.1.pollInterval 60000
    connection.2.ackListener null
    connection.2.exceptionListener localejbs/JPR
    connection.2.jms.messageSelector null
    connection.2.jms.profile null
    connection.2.jms.provider null
    connection.2.jms.queue null
    connection.2.messageListener localejbs/JPR
    connection.2.name JPR
    connection.2.pollAttempts 60
    connection.2.pollInterval 60000
    connection.3.ackListener null
    connection.3.exceptionListener localejbs/RNIFMessageListener
    connection.3.jms.messageSelector null
    connection.3.jms.profile null
    connection.3.jms.provider null
    connection.3.jms.queue null
    connection.3.messageListener localejbs/RNIFMessageListener
    connection.3.name RNIFAdapter
    connection.3.pollAttempts 60
    connection.3.pollInterval 60000
    connection.4.ackListener null
    connection.4.exceptionListener localejbs/CIDXMessageListener
    connection.4.jms.messageSelector null
    connection.4.jms.profile null
    connection.4.jms.provider null
    connection.4.jms.queue null
    connection.4.messageListener localejbs/CIDXMessageListener
    connection.4.name CIDXAdapter
    connection.4.pollAttempts 60
    connection.4.pollInterval 60000
    connection.5.ackListener localejbs/BcAdapterListener
    connection.5.exceptionListener localejbs/BcAdapterListener
    connection.5.jms.messageSelector null
    connection.5.jms.profile null
    connection.5.jms.provider null
    connection.5.jms.queue null
    connection.5.messageListener localejbs/BcAdapterListener
    connection.5.name BcAdapter
    connection.5.pollAttempts 60
    connection.5.pollInterval 60000
    connection.6.ackListener null
    connection.6.exceptionListener localejbs/TestListener
    connection.6.jms.messageSelector null
    connection.6.jms.profile null
    connection.6.jms.provider null
    connection.6.jms.queue null
    connection.6.messageListener localejbs/TestListener
    connection.6.name test
    connection.6.pollAttempts 60
    connection.6.pollInterval 60000
    connection.7.ackListener null
    connection.7.exceptionListener localejbs/RNIF11MessageListener
    connection.7.jms.messageSelector null
    connection.7.jms.profile null
    connection.7.jms.provider null
    connection.7.jms.queue null
    connection.7.messageListener localejbs/RNIF11MessageListener
    connection.7.name RNIF11Adapter
    connection.7.pollAttempts 60
    connection.7.pollInterval 60000
    connections (name=AFW, messageListener=localejbs/AFWListener, exceptionListener=localejbs/AFWListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=5, Recv.maxConsumers=5, Call.maxConsumers=10, Rqst.maxConsumers=10)(name=MPA, messageListener=localejbs/MarketPlaceAdapterListener, exceptionListener=localejbs/MarketPlaceAdapterListener, ackListener=localejbs/MarketPlaceAdapterListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=5, Recv.maxConsumers=5, Call.maxConsumers=10, Rqst.maxConsumers=10)(name=JPR, messageListener=localejbs/JPR, exceptionListener=localejbs/JPR, pollInterval=60000, pollAttempts=60, Send.maxConsumers=5, Recv.maxConsumers=5, Call.maxConsumers=10, Rqst.maxConsumers=10)(name=RNIFAdapter, messageListener=localejbs/RNIFMessageListener, exceptionListener=localejbs/RNIFMessageListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=5, Recv.maxConsumers=5, Call.maxConsumers=10, Rqst.maxConsumers=10)(name=CIDXAdapter, messageListener=localejbs/CIDXMessageListener, exceptionListener=localejbs/CIDXMessageListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=5, Recv.maxConsumers=5, Call.maxConsumers=10, Rqst.maxConsumers=10)(name=BcAdapter, messageListener=localejbs/BcAdapterListener, exceptionListener=localejbs/BcAdapterListener, ackListener=localejbs/BcAdapterListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=5, Recv.maxConsumers=5, Call.maxConsumers=10, Rqst.maxConsumers=10)(name=test, messageListener=localejbs/TestListener, exceptionListener=localejbs/TestListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=10, Recv.maxConsumers=10, Call.maxConsumers=20, Rqst.maxConsumers=20)(name=RNIF11Adapter, messageListener=localejbs/RNIF11MessageListener, exceptionListener=localejbs/RNIF11MessageListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=10, Recv.maxConsumers=10, Call.maxConsumers=20, Rqst.maxConsumers=20)
    debug HTTP
    failover.reassignOnNodeLoss true
    initial.delay 0
    jdbc.autoConfigure false
    jdbc.datasource jdbc/SAP/BC_XI_AF_MSG
    jdbc.dbProductName ORACLE
    jdbc.substituteEmptyString true
    jdbc.supportsOpenSQL true
    jdbc.supportsScrollableResultSet false
    jms.0.dmq SonicMQ.deadMessage
    jms.0.messageLengthKey message_length
    jms.0.password ********
    jms.0.provider 
    jms.0.url 
    jms.0.username 
    monitoring.displayDefault fromParty, toParty, status, timesFailedRetries, sentRecvTime
    persistMessageRemover.checkInterval 1440
    proxy.password ********
    proxy.user 
    reassignCheck.waitTime 30
    ssl.httpsHandler iaik.protocol.https.Handler
    ssl.securityProvider iaik.security.provider.IAIK
    ssl.serverNameCheck false
    ssl.trustedCACerts.viewName TrustedCAs
    startup.delay 0
    syncMessageRemover.checkInterval 60
    syncMessageRemover.messageCount 1000
    syncMessageRemover.removeBody true
    system.deafaultMaxConsumersPerQueue 10
    system.failNonDelivered false
    system.message.lazyRead true
    system.node 23654950
    system.queueConsumerThreadPoolSize 0
    system.statusLog System,Send,Recv,Call,Rqst
    system.transactionManager ts
    test.Call.maxConsumers 20
    test.Recv.maxConsumers 10
    test.Rqst.maxConsumers 20
    test.Send.maxConsumers 10
    throughputStatistics enabled
    regards
    roberti

  • Message stuck in queue: Sequence already terminated

    Dear all,
    in my scenario I splitt a message and send it to two receivers.
    Sender RFC
    Receiver  (both) : JDBC
    The first message stuck with error message:
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Sequence already terminated.</SAP:AdditionalText>
    I set parameter QRFC_RESTART_ALLOWED = 1 in sxmb_adm.
    But in SMQ2 I still see error: XI Error ERROR_OBJECT.INTERNAL: Queue stopped
    Trying to execute the LUW, I received following status error:
    Function module does not exist or EXCEPTION raised.
    But I could not see any error description that helps me dealing with this error.
    Any ideas why it stucks?
    Regards
    Chris
    Edited by: Christian Riekenberg on Sep 8, 2011 2:48 PM

    Hey, thanks for that! It is very intersting to see how that works. Looks like the outgoing mail queue can change "on demand", like when you left only one account active. This means that the ability to send emails from any of the accounts regardless of where it came in is just a programming step away...

  • Message stuck in queue - Rejected by server

    Okay, so I thought was being smart by trying to set up my companies email on my own. When I entered all of the information (which I made mistakes) I tried to send a test message. Of course it would not go through and was being rejected by my companies server. So I deleted the email account I created on iphone. However, the test email I sent remained in queue and kept trying to resend over and over getting the same error/rejection message from companies email. Since there is no sent box (on .MAC anyway)there was no way to erase the test message stuck in queue.
    Solution: Since I currently have two email accounts .MAC and Yahoo, I just tured off the .MAC and all of a sudden I hear the SHOOOWWWSHHHH. The test message stuck in queue was sent from the yahoo account. (after I confirmed the message was sent, I turned on hte .MAC email account again)
    Now I know this solution is purely dumb luck and playing around with settings, but just incase it happens to you, this was how I solved it.

    Hey, thanks for that! It is very intersting to see how that works. Looks like the outgoing mail queue can change "on demand", like when you left only one account active. This means that the ability to send emails from any of the accounts regardless of where it came in is just a programming step away...

Maybe you are looking for

  • Flash Player locks up on a Meetic Advertisment showing a heart

    ok the problem comes from a meetic advertisement showing an heart... it happens both in ie and also in skype... it is that particular ad from meetic that ask for a flash update someone here must contact them I have sent a message to the google double

  • Acrobat 6, Searches, Wildcards, and How It's Created

    Greetings, Using Acrobat 6 Professional 6.0.0.5 to edit pdf documents created with FrameMaker 7. I open the pdf document to start my editing and my first step is to search for frequent errors (we have some strict conventions). I'm unable to search fo

  • Closing the NonModel External Window in Webdynpro

    Hi, I have a Webdynpro Application, in which i used to call the webdynpro application in a Separate external window by using the below code. String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName(); WDDeployableObjectP

  • HP G61 Notebook power problem

    Hi there, I'm having random, intermittent problems turning on my notebook. It happens as I push the power button to turn it on or wake it up, the instant I release the power button it stops. After a few tries and also holding down the button for more

  • Multiple MobileMe accounts – Set the one used for publishing Photos & Video

    I'm running OS 3.0 on an iPhone 3G S. I've configured two MobileMe accounts, both Mail only (no Calendar, no Contacts). MobileMe account 1 is also the default email account as of Settings. However: When I use one of the sharing features in the Photos