7 Replies Latest reply on Dec 6, 2016 8:55 PM by Bird

    same msg trigger repeatedlly

    Jay Rajpurohit

      i have implemented open-filer in my organization and using spark client. Everything is working fine

      but one issue is i am facing.. two day before i have broadcasted a msg to dept. after that that msg it triggering again and again.

      how to stop it

        • Re: same msg trigger repeatedlly
          wroot

          Try restarting Openfire.

            • Re: same msg trigger repeatedlly
              Jay Rajpurohit

              tried already

              actully server store offline msg and trigger when you come online

              i have changed defalut option store into store and drop but not worked

                • Re: same msg trigger repeatedlly
                  wroot

                  Can you explain again what have you done exactly (how did you sent the boradcast) and what is your issue?

                   

                  It sounds like you have sent a broadcast to the whole department (both online and offline) users. Online users got it immediately. Openfire saved it for the offline users and is sending it to them, when they get online. This is the correct behavior. If you don't want offline users to get such broadcast, then don't send broadcast to the whole department, but only to the online users. If you don't want Openfire to store offline messages, then change that policy to Drop. Because Store and Drop will store the messages until they reach the storage limit.

                   

                  If you want to get rid of that one broadcast, you can try temporarily setting policy to Drop, Save, then change back to Store. But i'm not sure if it will delete already saved broadcast.

                    • Re: same msg trigger repeatedlly
                      Jay Rajpurohit

                      your are right offline users get it when they come online but how many times.

                      server send that one msg again and again which they have already seen/received.

                      i have tried what u have said but no luck

                       

                      thanks for you response

                        • Re: same msg trigger repeatedlly
                          wroot

                          Offline message should only be send once. Something strange is happening in your case. Any errors in the /openfire/logs/error and warn files?

                          • Re: same msg trigger repeatedlly
                            Hiren

                            offline message get delivered when user connects and change presence available and it gets deleted from ofoffline table so it should be send only once while you are connecting to server.

                             

                            there might be some problem while deleting message from ofoffline table and it is delivered to user so when you are reconneting to server it will featch message from offline storage and it will delivered again.

                             

                            you can check property value from backend(database) it should be drop against xmpp.offline.type in ofproperty table let me know after knowing this value. please upload screen shot of error log it will better to understad your problem.

                    • Re: same msg trigger repeatedlly
                      Bird

                      Hi,

                      I have solved this issue in client side. the problem is that Openfire sends the message with same STANZA to client . Since the stanza is stored in client messages database, on every new message event I checked the new message's STANZA with messages' STANZA stored in database. I ignored messages that already exist in database.