Duplicate Messages sent
Hi there,
I am trying to figure out why I receive duplicate messages from my message queue. We have our Entity Beans send out messages when their state changes. When the beans are deployed first, and their state changes, only a single message is sent out, but if the state of the bean is changed again, then multiple messages are sent out. I guess the message queue does not get flushed after the delivery of the messages. Can any one shed some light on this issue?
Here is my client code, which is gui.
try {
TopicConnectionFactory factory = serviceLocator.getTopicConnectionFactory("jms/TopicConnectionFactory");
Topic topic = serviceLocator.getTopic("jms/jtTopic");
TopicConnection connect = factory.createTopicConnection();
TopicSession session = connect.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE);
TopicSubscriber subscriber = session.createSubscriber(topic);
subscriber.setMessageListener(this);
System.out.println("Listening for messages on topic/rhythm-employee...");
// calls onMessage();
connect.start();
} catch (NamingException ne) {
ne.printStackTrace();
} catch (JMSException jme) {
jme.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
And here is the onMessage code:
public synchronized void onMessage(Message message) {
try {
ObjectMessage oMsg = (ObjectMessage) message;
String jobName = oMsg.getStringProperty("jobName");
String scnName = oMsg.getStringProperty("scnName");
if (oMsg.getStringProperty("actionType").equals("scene")) {
SceneTO sceneTO = (SceneTO) oMsg.getObject();
System.out.println("Scene Name: " + sceneTO.getSceneName());
final Object obj = oMsg.getObject();
Hashtable hash;
if (obj instanceof SceneTO) {
JTBase.jobLock.lock();
hash = (Hashtable) JTBase.Jobs.get(jobName);
if (!hash.containsKey(scnName)) {
hash.put(scnName,new Hashtable());
hash = (Hashtable) hash.get(scnName);
if (!hash.containsKey("Scene Info")) {
hash.put("Scene Info",new Hashtable());
hash = (Hashtable) hash.get("Scene Info");
if (hash.containsKey("data")) {
hash.remove("data");
hash.put("data",obj);
JTBase.jobLock.releaseLock();
// Refresh if needed
if(JTBase.jobName.equals(jobName) && JTBase.scnName.equals(scnName)) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
updateHeader(obj);
if (JTBase.tabName.equals("Scene Info")) {
updateMain("Refresh");
oMsg.clearBody();
message.acknowledge();
} catch(JMSException jmsE) {
JTBase.jobLock.releaseLock();
jmsE.printStackTrace();
Thanks in advance
-r
Hi,
<rhajikhani1>
When the beans are deployed first, and their state changes, only a single message is sent out, but if the state of the bean is changed again, then multiple messages are sent out
</rhajikhani1>
Does this not sound like a problem at the sending-side (your Entity Bean) rather than the receiving-side (the GUI code you have below).
You say that when the Entity Bean is deployed it sends one message which (I assume) is handled OK by the GUI code. Then, when the Entitiy Bean changes it starts sending multiple messages, isn't this a problem with the Entity Bean message sending code?
Anyway, if you are sure it is the receiver side I suggest placing a try catch (Throwable) around the code in the onMessage and printing the stack trace. At the moment you only catch JMSExceptions. The reason I say this is that maybe the message.acknowledge line is not being called which has resulted in a redelivery for some reason.
I can see several points in your code where a NullPointerException could be raised which would result in the message not being acknowledged. For example if the message does not contain the property "scnName" then a NullPointerException will be thrown by the call to hash.containsKey(scnName). If you were to catch Throwables then you can tell if there is a problem with the onMessage method (or the messages it is receiving).
Hope this helps,
Tom Jenkinson
Arjuna Technologies Limited
Similar Messages
-
Duplicate message sent to WebLogic
I'm not sure where to search for answers so I'm starting here. We have SunONE 6.1 SP4 web servers acting as proxies to WebLogic 8.1 SP4 servers. The web server and app server are on the same hardware. The problem occurs occasionally but usually at least once a day. One of our applications sends XML messages as a post to the web server. The XML messages are sent in batches and typically contain 5 to 10 at a time. Sometimes one of those messages is sent two or three times to application running on the WebLogic server. The WebLogic server access log shows more access events for the application than there are posts to the web server.
Has anyone seen this before? Is it a web server issue or should I be looking elsewhere?
Thank you!What do the Web Server logs show? Are there multiple submissions logged? Does the WebLogic plugin maintain a log? What does it indicate?
-
I have 2 phones attached to my apple ID account and when I text message that person, I am getting a duplicate message sent back to me. How do I stop this from happening?
Make 3 different iCloud accounts and use ONLY for iMessage. That will permanently fix your issue.
-
I send an e-mail message from my iPhone 5c and it shows up in Sent folder as a duplicate message. 2 identical messages sent at the same time. What's up with this? Tried Apple Support by phone, and did a couple of troubleshoots, then my connection with Apple Support was cut off. Issue not resolved yet.
Did the mail get sent? Is the only issue the fact that it appears twice in the Sent folder?
-
Duplicate messages in sent folder in hotmail
I am suing hotmail account on Mac/ apple Email. All messages sent from hotmail account are shown in duplicate in Sent folder.
Its frustrating to delete these messages as I have a habit of keeping Sent folder empty after transferring the required messages to my folders.You could try the advice in the page I linked, under "Corrupted Folders". If Thunderbird is in its safe mode, are the messages still missing? Some extensions can cause problems.
* http://kb.mozillazine.org/Compacting_folders#Compacting_doesn.27t_seem_to_work
How often do you compact your folders? You should be doing that frequently. Try the advice above first. -
Apple Mail shows duplicate message in Sent mailbox - HOW TO FIX IT?
I have sent a message with Apple Mail 7.3 on Mac with OS X Mavericks 10.9.3, and it shows DUPLICATED in the Sent mailbox of Mail. I mean, two entries with the very same message inside are displayed, yet, as said, I only sent it once! I am using POP.
Selecting "Mailbox - Rebuild", quitting and opening Mail, repairing permissions with Apple Disk Utility, restarting the Mac, and even resetting the PRAM does not fix it.
I have seen the following article, but cannot find the "MessageSorting.plist" in Mavericks that it indicates:
How to Fix Duplicate Emails Sent From Apple Email
http://www.ehow.com/how_12135498_fix-duplicate-emails-sent-apple-email.html
Any idea on how to prevent this duplication behavior (beyond deleting one of such messages, which, of course, I can do); I mean, to fixing whatever is corrupted and prevent such behavior happening again in the future?
What is the equivalent of "MessageSorting.plist" in Mavericks to do what indicates the above article?
Thanks.I have exactly the same problem. Didn't find a solution yet.
-
Duplicate message checking for inbound idocs sent via http protocol
When our warehouse system sends inbound WMMBXY idocs to us it appears to be checking an internal table in SAP to make sure that the message has not already been processed. This check appears to be related to a unique message ID that is originated by the DC system. This message ID does not appear in the actual idoc it appears to have been removed prior to the idoc being created.
When we restore production data into a test environment we occasionally have problems where the warehouse system fails to post WMMBXY messages with a "Idoc already posted" type message. Can someone tell me where the file is on SAP that holds a log of already processed messages - so that in such cases I can make sure that the warehouse do not send duplicate messages.
Many thanks, John.hey
if you wanna see your messages you may look in table SXMSPMAST
also have a look at the following thread
In Which Database Table the Messages are Stored in XI
Thanx
Ahmad -
Duplicate Message ID issue in case of Multi mapping (without BPM)
Hi Experts,
I am doing one sample Example for my requirement of converting the single source message data into the multiple Target messages.
for example, when sender system is sending the 5 sale order details into a single message in PI then my Inbound proxy class of ECC R/3 receiver system must get this sale orders separately, that means inbound proxy class method must be triggered separately for 5 sale orders from sender system. for achieving this, I have used the Multi mapping concept in ESR (without BPM).
This scenario is in Asynchronous mode.
The below screen shots give the details on what I have configures so far.
IN ESR
IN ID
IN SXMB_MONI of PI
IN SXMB_MONI of ECC R/3 Receiver system (Error in Processing)
due to this error, inbound Proxy class method is not being triggered for the single Sale order details as well,
please let me know how to tackle this duplicate message ID issue when we have multiple payloads to process in a single message.
please also let me know if is there any other workaround to fulfil this requirement.
Thank you,
Regards,
JageshHi Nunu,
Check the below blog for restrictions.
Multi-Mapping without BPM - Yes, it’s possible!
Restrictions
Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
Regards,
Praveen. -
How to ENABLE detection of duplicate messages in Mavericks Mail?
Hello,
There was a good discussion of how to disable detection of duplicate messages in Lion mail - https://discussions.apple.com/message/18265121#18265121
but unfortunately nothing seems to work to turn them ON in Mavericks.
In Lion or Mt. Lion I do see duplicate messages - but in Mavericks I do not - but I want to see if there are duplicates for a variety of reasons.
In the post referenced above none of the command line suggestions seem to make a difference. My mail perference settings are idential on each system, be it Lion, Mr. Lion or Mavericks. Settings as follows:
Please note 'include related messages' seems to make no difference either way.
Can anyone please tell me how to display duplicates in Mavericks. Thank you very much in advance.
E.As a quick update, the following command DOES in fact show the duplicates in the mail folder:
defaults write com.apple.mail AlwaysShowDuplicates -bool true
So, if there are two exact messages (one sent to me at [email protected] and one forwarded to that email address and sent to me at [email protected], BOTH will show up as separate messages.
But to be clear, what I want to see is a single message with the '1 Duplicate' indicated in the message header.
Any way to do that in Mavericks?
Again, thanks in advance. -
AS2 receiver adapter seems to be transmitting duplicate message to Partner
Hello guys,
we have serious issue in prod. we have a partner with whom we share EDI data using As2 adapter.
let me take eg here
our AS2 id- AAA
partner AS2 id - DDD
first we had problem with them
"could not send asynchron mdn to partner url" but before we rectified this issue ,DDD has upgraded the As2 sofware which solved current issue but created different issue which is described below :
as per partner ,messages are sent twice from AAA to DDD . but AAA is claiming that they dont send duplicate messages
as per DDD sometime they receive whole set of message twice. which AAA cant see at all at their side. but AAA do receive MDN back but with error "MIC not verified # duplicate-document"
so now AAA also have doubt that why the messages are rejected from the DDD when AAA is not sending the duplicate.
but anyone has encountered this problem before ???Hi Rai,
I have a similar problem.
AAA is send AS2 to DDD and from time to time (not always) I get back an AS2 notification saying
MIC not verified # duplicate-document
Did you find the solution on this?
Regards,
Luis. -
How to handle duplicate messages in J2SE File scenario
Hi,
Is there any way to handle processing of duplicate messages in J2SE File adapter scenario?
Here is the scenario ,
Steps :
1. Engine picks up a message and checks the size of it.
2. Before reaching the checking interval , the adapter(file) was terminated unfortunately.
3. J2SE engine was restarted.
4. Previous file was again picked up and sent as the first time with one msgID.
5. After sometime, same file was picked up with a new msgID
6. System gets only ONE configrmation that file has been successfully transfered.
So we find two messages containing the same file.
I have checked in J2SE doc, there is a parameter called "db.exactlyOnceErrorInPendingState" which is related to DB.
Is there any similar parameter to handle the duplicate messages in FIle Adapter scenarios of J2SE Engine.
Please help me in this regard as it seems to be a new thing in J2SE AE.
Regards,
Soorya.Hi swarup,
But using OS command how can we rename /archive that file?
Module means any Custom Module or wat?
Following are the channel configurations used in File To File scenario.
File Sender :
version=30
mode=XMB2FILE
XI.httpPort=58201
XI.httpService=/test
XI.ReceiverAdapterForService=test_rcv
file.numberOfMessageTypes=1
XI.Interface=MI_test_out
XI.InterfaceNamespace=http://nestle.com/test
file.type=BIN
file.targetDir=/test_inb
file.targetFilename=unusedbutreq
file.writeMode=fromHeader.ext
file.createDir=0
file.nestleName=initial
file.writeMode=fromHeader.ext
file.nestleEXT=test
file.nestleFileOverwrite=False
File Receiver :
version=30
mode=FILE2XMB
XI.TargetURL=http://localhost:58201/test
XI.NestleTargetURL=http://localhost:58201/test
file.type=BIN
file.checkFileModificationInterval=300000
file.pollInterval=300
file.processingMode=archiveWithTimestamp
file.archiveDir=/test_out/arc
XI.QualityOfService=EO
file.numberOfMessageTypes=1
file.messageAttributes=name
XI.SenderService=test_snd
XI.Interface=MI_test_out
XI.InterfaceNamespace=http://nestle.com/test
XI.ReceiverService=test_rcv
file.nestleBadMsgDir=/test_out/bad
file.sourceDir=/test_out
file.sourceFilename=.
Do the needful help asap.
Regards,
Prakash. -
Duplicate messages in mulitcast test
We are doing a multicast test on the multicast IP=224.0.0.115 port=61101. But we are getting some duplicate messages as given in the test output.
This is done from host sjh75a01,sjh75a02,sjh75a03,sjh75a04,sjh75a05
sjh75a01 neop04 $ java utils.MulticastTest -N sjh75a01 -a 224.0.0.115 -p 61101 -s 5
***** WARNING ***** WARNING ***** WARNING *****
Do NOT use the same multicast address as a running WLS cluster.
Starting test. Hit any key to abort
Using multicast address 224.0.0.115:61101
Will send messages under the name sjh75a01 every 5 seconds
Will print warning every 600 seconds if no messages are received
I (sjh75a01) sent message num 1
Duplicate message from sjh75a01: 1
New Neighbor sjh75a02 found on message number 1
New Neighbor sjh75a03 found on message number 1
New Neighbor sjh75a04 found on message number 1
New Neighbor sjh75a05 found on message number 1
I (sjh75a01) sent message num 2
Received message 2 from sjh75a01
Duplicate message from sjh75a01: 2
Received message 2 from sjh75a02
Received message 2 from sjh75a03
Received message 2 from sjh75a04
Received message 2 from sjh75a05
we have Weblogic servers on 5 physical hosts that need to broadcast messages to each other via IP multicast (IP=224.0.0.115 port=61101). These broadcast messages are used by WebLogic servers to update their cluster membership and are hence very important.
The test results indicate that each host receives packets sent out from all other 4 hosts once, but receives the packet that it sent out twice.
For example, if host A and host B send out packets "a" and "b" respectively to the multicast IP/port, then host A receives packet "a" twice (duplicate) and packet "b" once (normal). Similarly host B receives packet "a" once (normal) and packet "b" twice (duplicate).
We wish to know if this a normal behaviourHi Deepak,
I can say from my personal experience that whenever we use same multicast ip address and port for the purpose of multicast utility then we will get the duplicate messages.
If that is not the case, then I can say the following are the reasons for duplicate packets and it is better if we can contact your network team to check the following :
***Duplicate multicast packets are symptoms of several things:***
1. An ethernet-level device (e.g. bridge) that doesn't understand multicast so reforwards it. This is easy to track to the right subnet using mtrace's packet statistics, but hard to track to the final device because it doesn't change the ethernet source address.
2. The design of the PIM protocol accepts multiple copies periodically; when there are multiple paths to a multi-access link the default state is that all routers on the link forward; PIM Assert messages elect a single router as the forwarder but periodically time out.
3. Forwarding loops. This is often due to a misconfigured router.
Please cross verify the same but I am agreeing partly with Jay as most of the times we consider that the multicast test is passed even if there is any duplicate messages. But reconsider the above reasons and trace it out along with your network team..
Thanks,
Sreedevi -
Distributed topic - JMS adapter consuming duplicate messages
We have distributed topic thats consumed by a composite (JMSadpter in mediator).
We see for every one message sent the composite consumes the message twice. (With forwarding policy set to partitioned)
Is this an expected behavior? and how do we make the consumer (JMS adapter) consume only once per message
Thanks
VijayFrom the documentation (provided here: http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10231/adptr_jms.htm)
The JMS API specifies three types of acknowledgments that can be sent by the JMS publisher:
- DUPS_OK_ACKNOWLEDGE, for consumers that are not concerned about duplicate messages
- AUTO_ACKNOWLEDGE, in which the session automatically acknowledges the receipt of a message
- CLIENT_ACKNOWLEDGE, in which the client acknowledges the message by calling the message's acknowledge method
Could you check in the weblogic-ra.xml what acknowledge mode has been configured:
<property>
<name>AcknowledgeMode</name>
<value>AUTO_ACKNOWLEDGE</value>
</property>
...Note that when DUPS_OK_ACKNOWLEDGE is used it can happen that a message is consumed more than once.
Are you also sure that the message is not produced twice?
Seminar on Cloud Computing - http://middlewaremagic.com/weblogic/?p=7387 -
Duplicate messages to inbox on reply
Why do I receive a duplicate message in my Style inbox when replying? This only happens when I reply from my PC not the handheld. It only happens when replying - not forwarding. I have checked all the settings on Outlook and I don't see anything that would create this problem or solve it. My IT persons says it's a BB problem and my carrier says it's an Outlook problem
Hi and Welcome to the Forums!
You didn't say what email service this is for...and that matters a great deal. So, here are some KBs that might apply...you will have to dig through them for those that match your situation:
KB13891BlackBerry smartphone users receive duplicate email messages after an enterprise activation process
KB13528Duplicate email messages are received on the BlackBerry smartphone
KB13587Duplicate email messages are received from a Yahoo! Mail account on the BlackBerry smartphone
KB10332Duplicate sent email message arrives on the BlackBerry smartphone when sent using an integrated Gmail account
KB11127Duplicate sent email messages are delivered to the BlackBerry smartphone when using Auto BCC
KB05477Duplicate sent items appear on the BlackBerry device
While some of those apply to BES, if you are indeed on BES, then your BES admins really should be assisting.
Good luck!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Duplicate message in Multicast test
I just ran a multicast test on a cluster which has 2 managed servers.Following is the result :-
Using multicast address 237.0.0.1:7001
Will send messages under the name MyServer-1 every 2 seconds
Will print warning every 600 seconds if no messages are received
I (MyServer-1) sent message num 1
New Neighbor ƒI7BÄsr ‼weblogic.rj found on message number 1997019664
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664
Received message 2 from MyServer-1
I (MyServer-1) sent message num 2
Received message 3 from MyServer-1
I (MyServer-1) sent message num 3
Received message 4 from MyServer-1
I (MyServer-1) sent message num 4
Received message 5 from MyServer-1
I (MyServer-1) sent message num 5
Received message 6 from MyServer-1
I (MyServer-1) sent message num 6
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664
Received message 7 from MyServer-1
I (MyServer-1) sent message num 7
Received message 8 from MyServer-1
I (MyServer-1) sent message num 8
Received message 9 from MyServer-1
I (MyServer-1) sent message num 9
Received message 10 from MyServer-1
I (MyServer-1) sent message num 10
Received message 11 from MyServer-1
I (MyServer-1) sent message num 11
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664
Can anyone tel me what the following 2 lines indicate:-
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664
Duplicate message from ƒI7BÄsr ‼weblogic.rj: 1997019664we are using weblogic 9.2 and we are seeing the same messages when we use the same multicast address configured in config.xml and with the different multiast address. Can anyone tell what is the reason for this.
Maybe you are looking for
-
ITunes won't work and freezes up the whole computer!
I upgraded to the new 7.0 iTunes and for about 10 minutes it worked fine. I then changed my library view to the screen the shows the "jukebox-like" images of the album cover. Just a couple of minutes in that view froze my entire computer and now iTun
-
Write-off asset below or after certain Value of Asset.
Hi All, I am try to write-off asset value from using ABZU - Write-Up But i am confused is it wright tcode or any other process please help me. Regards, juhi
-
Macbook not (completely) detecting USB audio device
Here's what I'm doing. I am ripping my cassette collection using a tape deck, a Roxio video capture device (VHS to DVD), Soundflower, and Adobe Audition. Everything was working fine. I finished a tape and unplugged the USB device to make room for my
-
Authorization to a transaction with spro locked
HI! (I didn't found any answer for my question in the forum, I'm sorry if it's already answered) I want to give access/authotization to a few users in transaction OB58 (spro) in production system . The thing is the access to spro is not allowed in pr
-
I have a number of WLST scripts which all use a number of common functions I've written such as: common.py: import sys import os import shutil import re def offline_createManagedServer(Name, Port, ListenAddress): cd('/') create(Name, 'Serve