Hey,
I have a question to receive messages from the MAM, which are saved by the MUC room.
The server I´m using is the ejabberd server with version 17.09.
This is my configuration:
mod_mam:
default: always
mod_muc:
## host: "conference.@HOST@"
access:
- allow
access_admin:
- allow: admin
access_create: muc_create
access_persistent: muc_create
default_room_options:
mam: true
moderated: true
persistent: true
max_users: 256
members_by_default: true
When I send a message to the room, is it automatically stored to the mam storage.
In this case “testuser@localhost ” sends a message to the conference room “testroom@conference.localhost ”.
Here is the xml result:
<message xml:lang='en' to='testuser@localhost/14610720446835824771170' from='testroom@conference.localhost/testuser' type='groupchat' id='BWwa9-39'><archived by='testroom@conference.localhost' id='1508350302191357' xmlns='urn:xmpp:mam:tmp'/><stanza-id by='testroom@conference.localhost' id='1508350302191357' xmlns='urn:xmpp:sid:0'/><body>Hey MAM Storage :)</body></message>
Then testuser2@localhos t wants to query the achieved message before.
I got this result xml:
<iq xml:lang='en' to='testuser2@localhost/14610720446835824771170' from='testuser2@localhost' type='result' id='BWwa9-41'><fin complete='true' queryid='62db9e25-0224-4889-be9f-488f4ce2c271' xmlns='urn:xmpp:mam:1'><set xmlns='http://jabber.org/protocol/rsm'><count>0</count></set></fin></iq>
This is my code to query the achieved messages:
DataForm dataForm = new DataForm(DataForm.Type.submit);
FormField field = new FormField(FormField.FORM_TYPE);
field.setType(FormField.Type.hidden);
field.addValue(MamElements.NAMESPACE);
dataForm.addField(field);
FormField field1 = new FormField("with");
field1.addValue("testuser2@localhost");
dataForm.addField(field1);
RSMSet rsmSet = new RSMSet(5, "", RSMSet.PageDirection.before);
MamManager.MamQueryResult mamQueryResult = mamManager.page(dataForm, rsmSet);
System.out.println("Mam messages: " + mamQueryResult.forwardedMessages.size());
I have looked into the database and all messages are stored successfully.
What is wrong with my code?
Thanks in advance.
Flow
October 18, 2017, 6:53pm
2
The IQ response does not originate from the MUC. You are querying the wrong entity. Likely because that is not how the page()
API is meant to use.
So, does I have to query the messages from the room, like?:
FormField field1 = new FormField("with");
field1.addValue("testroom@conference.localhost");
dataForm.addField(field1);
Flow
October 18, 2017, 6:58pm
4
How about
Jid mucJid = JidCreate.from("testroom@conference.localhost");
MamManager mamManager = MamManager.getInstanceFor(connection);
MamQueryResult result = mamManager.query(mucJid)
I did it and this my output.
21:02:43 RECV (0): <iq xml:lang='en' to='testuser2@localhost/133839350713001991551234' from='testuser2@localhost' type='result' id='KreSa-41'><fin complete='true' queryid='09539de8-e384-46c0-82a9-bc3937e75328' xmlns='urn:xmpp:mam:1'><set xmlns='http://jabber.org/protocol/rsm'><count>0</count></set></fin></iq>
Size: 0
This seems wrong, I thought the “from”-part is my testroom@conference.localhost chat.
Flow
October 18, 2017, 7:07pm
6
The IQ reply does still not originate from the MUC.
I sent the message with this code:
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
EntityBareJid jidRoom = JidCreate.entityBareFrom("testroom@conference.localhost");
MultiUserChat chatRoom = manager.getMultiUserChat(jidRoom);
Resourcepart nickname = Resourcepart.from("testuser");
chatRoom.join(nickname)
Message message = new Message();
message.setType(Message.Type.groupchat);
message.setBody("Hey MAM Storage :)");
chatRoom.sendMessage(message);
Nothing seems wrong to me, becuase the message is sent through the MultiUserChat object.
Flow
October 18, 2017, 7:30pm
8
The relevant the code part would be the one involving MamManager.
For the MamManager, I used only the lines you posted before.
I did not configure the MamManager object, I posted all the code, which I have for my MUC/MAM part.
Flow
October 18, 2017, 8:17pm
10
Are you 100% positive that you used the right JID with MamManger?
Yes, I used testroom@conference.localhost as the JID for the MamManager.
Flow
October 19, 2017, 5:21am
12
Can you show a full XMPP trace?
Of course, here is the stack, where the user “hallo8@localhost” creates a new MUC room (testroom12@conference.localhost", invites user "hallo7@localhost to the room and sends a message to the room.
08:39:31 SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='hallo8@localhost' xml:lang='en'>
08:39:31 RECV (0): <?xml version='1.0'?><stream:stream id='7068818173658222632' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='hallo8@localhost' from='localhost' xmlns='jabber:client'>
08:39:31 RECV (0): <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>X-OAUTH2</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms></stream:features>
Connected
08:39:31 SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1oYWxsbzgscj1vOVolMG9gS0Nldzk+MV5VK01TJThTJHpBfFdqTyQtcg==</auth>
08:39:31 RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj1vOVolMG9gS0Nldzk+MV5VK01TJThTJHpBfFdqTyQtcnUyK3RobFRpVm1PbXFCRjVZRFZFckE9PSxzPXMwNUdDZTFBUWYwNVhleUR4MHcwblE9PSxpPTQwOTY=</challenge>
08:39:31 SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9bzlaJTBvYEtDZXc5PjFeVStNUyU4UyR6QXxXak8kLXJ1Mit0aGxUaVZtT21xQkY1WURWRXJBPT0scD1PSURxb01aMVhJU0FhbTFsMDFWSmZ1SFRlem89</response>
08:39:31 RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj1Jc3RQbUN4My9FaWpqVTMxdU44dHMyK2pPT2s9</success>
08:39:31 SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='hallo8@localhost' id='7068818173658222632' xml:lang='en'>
08:39:31 RECV (0): <?xml version='1.0'?><stream:stream id='12570353549103281459' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='hallo8@localhost' from='localhost' xmlns='jabber:client'>
08:39:31 RECV (0): <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session><c ver='YuWj6ZtjJ2BcnWekxr/SbkDyfAI=' node='http://www.process-one.net/en/ejabberd/' hash='sha-1' xmlns='http://jabber.org/protocol/caps'/><sm xmlns='urn:xmpp:sm:2'/><sm xmlns='urn:xmpp:sm:3'/><csi xmlns='urn:xmpp:csi:0'/></stream:features>
08:39:31 SENT (0): <iq id='sYia8-4' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'></bind></iq>
08:39:32 RECV (0): <iq type='result' id='sYia8-4'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>hallo8@localhost/84257831993525987021682</jid></bind></iq>
08:39:32 SENT (0): <enable xmlns='urn:xmpp:sm:3' resume='true'/>
08:39:32 RECV (0): <enabled resume='true' max='300' id='g2gCbQAAABc4NDI1NzgzMTk5MzUyNTk4NzAyMTY4MmgDYgAABeRiAAYHo2ET' xmlns='urn:xmpp:sm:3'/>
08:39:32 User logged (0): hallo8@localhost:5222/84257831993525987021682
08:39:32 SENT (0): <iq id='sYia8-6' type='get'><query xmlns='jabber:iq:roster'></query></iq>
08:39:32 SENT (0): <iq to='localhost' id='sYia8-7' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='http://www.process-one.net/en/ejabberd/#YuWj6ZtjJ2BcnWekxr/SbkDyfAI='></query></iq>
08:39:32 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='hallo8@localhost' type='result' id='sYia8-6'><query xmlns='jabber:iq:roster'/></iq>
08:39:32 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:32 SENT (0): <a xmlns='urn:xmpp:sm:3' h='1'/>
08:39:32 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='localhost' type='result' id='sYia8-7'><query node='http://www.process-one.net/en/ejabberd/#YuWj6ZtjJ2BcnWekxr/SbkDyfAI=' xmlns='http://jabber.org/protocol/disco#info'><identity type='pep' category='pubsub'/><identity name='ejabberd' type='im' category='server'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/offline'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#filtered-notifications'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#publish-only-affiliation'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#shim'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><feature var='http://jabber.org/protocol/stats'/><feature var='iq'/><feature var='jabber:iq:last'/><feature var='jabber:iq:privacy'/><feature var='jabber:iq:version'/><feature var='msgoffline'/><feature var='presence'/><feature var='urn:xmpp:blocking'/><feature var='urn:xmpp:carbons:2'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:ping'/><feature var='urn:xmpp:time'/><feature var='vcard-temp'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:32 SENT (0): <iq to='localhost' id='sYia8-10' type='get'><query xmlns='http://jabber.org/protocol/disco#items'></query></iq>
08:39:32 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:32 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='localhost' type='result' id='sYia8-10'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='conference.localhost'/><item jid='echo.localhost'/><item jid='irc.localhost'/><item jid='pubsub.localhost'/></query></iq>
08:39:32 SENT (0): <a xmlns='urn:xmpp:sm:3' h='2'/>
08:39:32 SENT (0): <iq to='conference.localhost' id='sYia8-12' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:39:32 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:32 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='conference.localhost' type='result' id='sYia8-12'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Chatrooms' type='text' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='jabber:iq:register'/><feature var='http://jabber.org/protocol/muc'/><feature var='vcard-temp'/><feature var='urn:xmpp:mucsub:0'/><feature var='http://jabber.org/protocol/muc#unique'/><feature var='http://jabber.org/protocol/rsm'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:32 SENT (0): <a xmlns='urn:xmpp:sm:3' h='3'/>
08:39:32 SENT (0): <iq to='echo.localhost' id='sYia8-14' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
08:39:32 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:32 RECV (0): <a h='5' xmlns='urn:xmpp:sm:3'/><iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='echo.localhost' type='get' id='sYia8-14'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
08:39:32 SENT (0): <a xmlns='urn:xmpp:sm:3' h='4'/>
08:39:32 SENT (0): <iq to='echo.localhost' id='sYia8-14' type='result'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:39:32 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:32 SENT (0): <a xmlns='urn:xmpp:sm:3' h='5'/>
08:39:32 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='echo.localhost' type='result' id='sYia8-14'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:39:32 SENT (0): <iq to='irc.localhost' id='sYia8-18' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:39:33 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:33 SENT (0): <a xmlns='urn:xmpp:sm:3' h='6'/>
08:39:33 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='irc.localhost' type='result' id='sYia8-18'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='IRC Transport' type='irc' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/muc'/><feature var='jabber:iq:register'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/commands'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:33 SENT (0): <iq to='pubsub.localhost' id='sYia8-20' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:39:33 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:33 SENT (0): <a xmlns='urn:xmpp:sm:3' h='7'/>
08:39:33 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='pubsub.localhost' type='result' id='sYia8-20'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Publish-Subscribe' type='service' category='pubsub'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/com
08:39:33 RECV (0): mands'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#filtered-notifications'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#publish-only-affiliation'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#shim'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:33 SENT (0): <iq to='localhost' id='sYia8-22' type='get'><query xmlns='http://jabber.org/protocol/disco#items'></query></iq>
08:39:34 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:34 SENT (0): <a xmlns='urn:xmpp:sm:3' h='8'/>
08:39:34 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='localhost' type='result' id='sYia8-22'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='conference.localhost'/><item jid='echo.localhost'/><item jid='irc.localhost'/><item jid='pubsub.localhost'/></query></iq>
08:39:34 SENT (0): <iq to='conference.localhost' id='sYia8-24' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
08:39:34 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:34 RECV (0): <a h='10' xmlns='urn:xmpp:sm:3'/>
08:39:34 SENT (0): <a xmlns='urn:xmpp:sm:3' h='9'/>
08:39:34 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='conference.localhost' type='result' id='sYia8-24'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Chatrooms' type='text' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='jabber:iq:register'/><feature var='http://jabber.org/protocol/muc'/><feature var='vcard-temp'/><feature var='urn:xmpp:mucsub:0'/><feature var='http://jabber.org/protocol/muc#unique'/><feature var='http://jabber.org/protocol/rsm'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:34 SENT (0): <iq to='echo.localhost' id='sYia8-26' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:39:34 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:34 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='echo.localhost' type='get' id='sYia8-26'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
08:39:34 SENT (0): <a xmlns='urn:xmpp:sm:3' h='10'/>
08:39:34 SENT (0): <iq to='echo.localhost' id='sYia8-26' type='result'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:39:34 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:34 SENT (0): <a xmlns='urn:xmpp:sm:3' h='11'/>
08:39:34 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='echo.localhost' type='result' id='sYia8-26'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:39:34 SENT (0): <iq to='irc.localhost' id='sYia8-30' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:39:35 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:35 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='irc.localhost' type='result' id='sYia8-30'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='IRC Transport' type='irc' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/muc'/><feature var='jabber:iq:register'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/commands'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:35 SENT (0): <a xmlns='urn:xmpp:sm:3' h='12'/>
08:39:35 SENT (0): <iq to='pubsub.localhost' id='sYia8-32' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:39:35 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:35 SENT (0): <a xmlns='urn:xmpp:sm:3' h='13'/>
08:39:35 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='pubsub.localhost' type='result' id='sYia8-32'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Publish-Subscribe' type='service' category='pubsub'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/commands'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#filtered-notifications'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#publish-only-affiliation'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retri
08:39:35 RECV (0): eve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#shim'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
Auth.
08:39:35 XMPPConnection authenticated (XMPPTCPConnection[hallo8@localhost/84257831993525987021682] (0))
user connected & logged in!
08:39:35 SENT (0): <iq to='conference.localhost' id='sYia8-36' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
08:39:35 RECV (0): <r xmlns='urn:xmpp:sm:3'/><a h='15' xmlns='urn:xmpp:sm:3'/>
08:39:35 SENT (0): <a xmlns='urn:xmpp:sm:3' h='14'/>
08:39:35 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='conference.localhost' type='result' id='sYia8-36'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Chatrooms' type='text' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='jabber:iq:register'/><feature var='http://jabber.org/protocol/muc'/><feature var='vcard-temp'/><feature var='urn:xmpp:mucsub:0'/><feature var='http://jabber.org/protocol/muc#unique'/><feature var='http://jabber.org/protocol/rsm'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:39:35 SENT (0): <presence to='testroom12@conference.localhost/hallo8' id='sYia8-35'><x xmlns='http://jabber.org/protocol/muc'></x><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
08:39:35 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:35 SENT (0): <a xmlns='urn:xmpp:sm:3' h='15'/>
08:39:35 RECV (0): <presence xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='testroom12@conference.localhost/hallo8' id='sYia8-35'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/><x xmlns='vcard-temp:x:update'/><x xmlns='http://jabber.org/protocol/muc#user'><item jid='hallo8@localhost/84257831993525987021682' role='moderator' affiliation='owner'/><status code='201'/><status code='110'/></x></presence>
08:39:35 RECV (0): <message to='hallo8@localhost/84257831993525987021682' from='testroom12@conference.localhost' type='groupchat'><subject/></message>
MUC room created
User hallo7 invited.
08:39:35 SENT (0): <message to='testroom12@conference.localhost' id='sYia8-40'><x xmlns='http://jabber.org/protocol/muc#user'><invite to='hallo7@localhost'><reason>Join the room</reason></invite></x></message><r xmlns='urn:xmpp:sm:3'/>
Message sent to MUC room.
08:39:35 SENT (0): <message to='testroom12@conference.localhost' id='sYia8-41' type='groupchat'><body>Hey MAM Storage :)</body></message><r xmlns='urn:xmpp:sm:3'/>
08:39:36 SENT (0): <iq id='sYia8-42' type='set'><query xmlns='urn:xmpp:mam:1' queryid='1e7f5f97-8022-43d6-9340-739c59630389'><x xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' type='hidden'><value>urn:xmpp:mam:1</value></field><field var='with'><value>testroom12@conferenace.localhost</value></field></x></query></iq>
Okt 19, 2017 8:39:35 AM org.jivesoftware.smackx.muc.MultiUserChat$2 processStanza
WARNUNG: Message subject not changed by a full JID: testroom12@conference.localhost
08:39:36 RECV (0): <r xmlns='urn:xmpp:sm:3'/><a h='17' xmlns='urn:xmpp:sm:3'/><a h='18' xmlns='urn:xmpp:sm:3'/>
08:39:36 SENT (0): <a xmlns='urn:xmpp:sm:3' h='17'/>
08:39:36 RECV (0): <iq xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='hallo8@localhost' type='result' id='sYia8-42'><fin complete='true' queryid='1e7f5f97-8022-43d6-9340-739c59630389' xmlns='urn:xmpp:mam:1'><set xmlns='http://jabber.org/protocol/rsm'><count>0</count></set></fin></iq>
08:39:36 RECV (0): <message xml:lang='en' to='hallo8@localhost/84257831993525987021682' from='testroom12@conference.localhost/hallo8' type='groupchat' id='sYia8-41'><archived by='testroom12@conference.localhost' id='1508395175691674' xmlns='urn:xmpp:mam:tmp'/><stanza-id by='testroom12@conference.localhost' id='1508395175691674' xmlns='urn:xmpp:sid:0'/><body>Hey MAM Storage :)</body></message>
Size: 0
08:39:36 SENT (0): <presence id='sYia8-45' type='unavailable'></presence><a xmlns='urn:xmpp:sm:3' h='19'/>
08:39:36 SENT (0): </stream:stream>
08:39:36 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:39:36 RECV (0): </stream:stream>
Connection closed
08:39:36 XMPPConnection closed (XMPPTCPConnection[hallo8@localhost/84257831993525987021682] (0))
From the other side the user "hallo7@localhost joins the room and wants to receive the Mam message.
08:41:36 SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='hallo7@localhost' xml:lang='en'>
08:41:36 RECV (0): <?xml version='1.0'?><stream:stream id='18053146419180336142' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='hallo7@localhost' from='localhost' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>X-OAUTH2</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms></stream:features>
Connected
08:41:36 SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1oYWxsbzcscj1iRWI8bWxpX1pUWjVmej1DImgvcEVAZ0ApXEg0WUhtLg==</auth>
08:41:36 RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj1iRWI8bWxpX1pUWjVmej1DImgvcEVAZ0ApXEg0WUhtLk52NnBzeml2bk1QZi9qSW1wbUhOdVE9PSxzPVZwejU1NVhCdEIvck5OYUczY1pHTmc9PSxpPTQwOTY=</challenge>
08:41:36 SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9YkViPG1saV9aVFo1Zno9QyJoL3BFQGdAKVxINFlIbS5OdjZwc3ppdm5NUGYvakltcG1ITnVRPT0scD1YSGFFN21VaFN3b0JpWkRLYU0ybWZIOVlzNGs9</response>
08:41:36 RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj1rb2FCdWV5NStVZEt4aXRUbTJMSXlwbGtRalk9</success>
08:41:36 SENT (0): <stream:stream xmlns='jabber:client' to='localhost' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='hallo7@localhost' id='18053146419180336142' xml:lang='en'>
08:41:36 RECV (0): <?xml version='1.0'?><stream:stream id='14695215313838530603' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='hallo7@localhost' from='localhost' xmlns='jabber:client'>
08:41:36 RECV (0): <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session><c ver='YuWj6ZtjJ2BcnWekxr/SbkDyfAI=' node='http://www.process-one.net/en/ejabberd/' hash='sha-1' xmlns='http://jabber.org/protocol/caps'/><sm xmlns='urn:xmpp:sm:2'/><sm xmlns='urn:xmpp:sm:3'/><csi xmlns='urn:xmpp:csi:0'/></stream:features>
08:41:36 SENT (0): <iq id='sb1cH-4' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'></bind></iq>
08:41:36 RECV (0): <iq type='result' id='sb1cH-4'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>hallo7@localhost/36988679960960842631730</jid></bind></iq>
08:41:36 SENT (0): <enable xmlns='urn:xmpp:sm:3' resume='true'/>
08:41:37 RECV (0): <enabled resume='true' max='300' id='g2gCbQAAABczNjk4ODY3OTk2MDk2MDg0MjYzMTczMGgDYgAABeRiAAYIIGEU' xmlns='urn:xmpp:sm:3'/>
08:41:37 User logged (0): hallo7@localhost:5222/36988679960960842631730
08:41:37 SENT (0): <iq id='sb1cH-6' type='get'><query xmlns='jabber:iq:roster'></query></iq><iq to='localhost' id='sb1cH-7' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='http://www.process-one.net/en/ejabberd/#YuWj6ZtjJ2BcnWekxr/SbkDyfAI='></query></iq>
08:41:37 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='hallo7@localhost' type='result' id='sb1cH-6'><query xmlns='jabber:iq:roster'/></iq>
08:41:37 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:37 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='localhost' type='result' id='sb1cH-7'><query node='http://www.process-one.net/en/ejabberd/#YuWj6ZtjJ2BcnWekxr/SbkDyfAI=' xmlns='http://jabber.org/protocol/disco#info'><identity type='pep' category='pubsub'/><identity name='ejabberd' type='im' category='server'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/offline'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#filtered-notifications'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#publish-only-affiliation'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#shim'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><feature var='http://jabber.org/protocol/stats'/><feature var='iq'/><feature var='jabber:iq:last'/><feature var='jabber:iq:privacy'/><feature var='jabber:iq:version'/><feature var='msgoffline'/><feature var='presence'/><feature var='urn:xmpp:blocking'/><feature var='urn:xmpp:carbons:2'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:ping'/><feature var='urn:xmpp:time'/><feature var='vcard-temp'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:37 SENT (0): <a xmlns='urn:xmpp:sm:3' h='1'/>
08:41:37 SENT (0): <iq to='localhost' id='sb1cH-10' type='get'><query xmlns='http://jabber.org/protocol/disco#items'></query></iq>
08:41:37 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:37 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='localhost' type='result' id='sb1cH-10'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='conference.localhost'/><item jid='echo.localhost'/><item jid='irc.localhost'/><item jid='pubsub.localhost'/></query></iq>
08:41:37 SENT (0): <a xmlns='urn:xmpp:sm:3' h='2'/>
08:41:37 SENT (0): <iq to='conference.localhost' id='sb1cH-12' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:41:37 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:37 SENT (0): <a xmlns='urn:xmpp:sm:3' h='3'/>
08:41:37 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='conference.localhost' type='result' id='sb1cH-12'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Chatrooms' type='text' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='jabber:iq:register'/><feature var='http://jabber.org/protocol/muc'/><feature var='vcard-temp'/><feature var='urn:xmpp:mucsub:0'/><feature var='http://jabber.org/protocol/muc#unique'/><feature var='http://jabber.org/protocol/rsm'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:37 SENT (0): <iq to='echo.localhost' id='sb1cH-14' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
08:41:37 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:37 RECV (0): <a h='5' xmlns='urn:xmpp:sm:3'/>
08:41:37 SENT (0): <a xmlns='urn:xmpp:sm:3' h='4'/>
08:41:37 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='echo.localhost' type='get' id='sb1cH-14'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
08:41:37 SENT (0): <iq to='echo.localhost' id='sb1cH-14' type='result'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:41:37 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:37 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='echo.localhost' type='result' id='sb1cH-14'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:41:37 SENT (0): <a xmlns='urn:xmpp:sm:3' h='5'/>
08:41:37 SENT (0): <iq to='irc.localhost' id='sb1cH-18' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:41:38 RECV (0): <r xmlns='urn:xmpp:sm:3'/><iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='irc.localhost' type='result' id='sb1cH-18'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='IRC Transport' type='irc' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/muc'/><feature var='jabber:iq:register'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/commands'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:38 SENT (0): <a xmlns='urn:xmpp:sm:3' h='6'/>
08:41:38 SENT (0): <iq to='pubsub.localhost' id='sb1cH-20' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:41:38 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:38 SENT (0): <a xmlns='urn:xmpp:sm:3' h='7'/>
08:41:38 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='pubsub.localhost' type='result' id='sb1cH-20'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Publish-Subscribe' type='service' category='pubsub'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/com
08:41:38 RECV (0): mands'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#filtered-notifications'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#publish-only-affiliation'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#shim'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:38 SENT (0): <iq to='localhost' id='sb1cH-22' type='get'><query xmlns='http://jabber.org/protocol/disco#items'></query></iq>
08:41:38 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:38 SENT (0): <a xmlns='urn:xmpp:sm:3' h='8'/>
08:41:38 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='localhost' type='result' id='sb1cH-22'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='conference.localhost'/><item jid='echo.localhost'/><item jid='irc.localhost'/><item jid='pubsub.localhost'/></query></iq>
08:41:38 SENT (0): <iq to='conference.localhost' id='sb1cH-24' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
08:41:39 RECV (0): <r xmlns='urn:xmpp:sm:3'/><a h='10' xmlns='urn:xmpp:sm:3'/>
08:41:39 SENT (0): <a xmlns='urn:xmpp:sm:3' h='9'/>
08:41:39 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='conference.localhost' type='result' id='sb1cH-24'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Chatrooms' type='text' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='jabber:iq:register'/><feature var='http://jabber.org/protocol/muc'/><feature var='vcard-temp'/><feature var='urn:xmpp:mucsub:0'/><feature var='http://jabber.org/protocol/muc#unique'/><feature var='http://jabber.org/protocol/rsm'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:39 SENT (0): <iq to='echo.localhost' id='sb1cH-26' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:41:39 RECV (0): <r xmlns='urn:xmpp:sm:3'/><iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='echo.localhost' type='get' id='sb1cH-26'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>
08:41:39 SENT (0): <a xmlns='urn:xmpp:sm:3' h='10'/>
08:41:39 SENT (0): <iq to='echo.localhost' id='sb1cH-26' type='result'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:41:39 RECV (0): <r xmlns='urn:xmpp:sm:3'/><iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='echo.localhost' type='result' id='sb1cH-26'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' name='Smack' type='pc'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/bytestreams'/><feature var='http://jabber.org/protocol/xhtml-im'/><feature var='jabber:x:data'/><feature var='jabber:iq:version'/><feature var='urn:xmpp:http'/><feature var='urn:xmpp:time'/><feature var='jabber:iq:privacy'/><feature var='urn:xmpp:ping'/><feature var='jabber:iq:last'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/muc'/><feature var='http://jabber.org/protocol/xdata-validate'/><feature var='http://jabber.org/protocol/xdata-layout'/><feature var='urn:xmpp:receipts'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>
08:41:39 SENT (0): <a xmlns='urn:xmpp:sm:3' h='11'/>
08:41:39 SENT (0): <iq to='irc.localhost' id='sb1cH-30' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:41:40 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:40 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='irc.localhost' type='result' id='sb1cH-30'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='IRC Transport' type='irc' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/muc'/><feature var='jabber:iq:register'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/commands'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:40 SENT (0): <a xmlns='urn:xmpp:sm:3' h='12'/>
08:41:40 SENT (0): <iq to='pubsub.localhost' id='sb1cH-32' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
08:41:40 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:40 SENT (0): <a xmlns='urn:xmpp:sm:3' h='13'/>
08:41:40 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='pubsub.localhost' type='result' id='sb1cH-32'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Publish-Subscribe' type='service' category='pubsub'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/pubsub'/><feature var='http://jabber.org/protocol/commands'/><feature var='vcard-temp'/><feature var='http://jabber.org/protocol/pubsub#access-authorize'/><feature var='http://jabber.org/protocol/pubsub#access-open'/><feature var='http://jabber.org/protocol/pubsub#access-presence'/><feature var='http://jabber.org/protocol/pubsub#access-whitelist'/><feature var='http://jabber.org/protocol/pubsub#auto-create'/><feature var='http://jabber.org/protocol/pubsub#auto-subscribe'/><feature var='http://jabber.org/protocol/pubsub#collections'/><feature var='http://jabber.org/protocol/pubsub#config-node'/><feature var='http://jabber.org/protocol/pubsub#create-and-configure'/><feature var='http://jabber.org/protocol/pubsub#create-nodes'/><feature var='http://jabber.org/protocol/pubsub#delete-items'/><feature var='http://jabber.org/protocol/pubsub#delete-nodes'/><feature var='http://jabber.org/protocol/pubsub#filtered-notifications'/><feature var='http://jabber.org/protocol/pubsub#get-pending'/><feature var='http://jabber.org/protocol/pubsub#instant-nodes'/><feature var='http://jabber.org/protocol/pubsub#item-ids'/><feature var='http://jabber.org/protocol/pubsub#last-published'/><feature var='http://jabber.org/protocol/pubsub#manage-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#member-affiliation'/><feature var='http://jabber.org/protocol/pubsub#modify-affiliations'/><feature var='http://jabber.org/protocol/pubsub#outcast-affiliation'/><feature var='http://jabber.org/protocol/pubsub#persistent-items'/><feature var='http://jabber.org/protocol/pubsub#presence-notifications'/><feature var='http://jabber.org/protocol/pubsub#presence-subscribe'/><feature var='http://jabber.org/protocol/pubsub#publish'/><feature var='http://jabber.org/protocol/pubsub#publish-only-affiliation'/><feature var='http://jabber.org/protocol/pubsub#publisher-affiliation'/><feature var='http://jabber.org/protocol/pubsub#purge-nodes'/><feature var='http://jabber.org/protocol/pubsub#retract-items'/><feature var='http://jabber.org/protocol/pubsub#retri
08:41:40 RECV (0): eve-affiliations'/><feature var='http://jabber.org/protocol/pubsub#retrieve-default'/><feature var='http://jabber.org/protocol/pubsub#retrieve-items'/><feature var='http://jabber.org/protocol/pubsub#retrieve-subscriptions'/><feature var='http://jabber.org/protocol/pubsub#shim'/><feature var='http://jabber.org/protocol/pubsub#subscribe'/><feature var='http://jabber.org/protocol/pubsub#subscription-notifications'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
Auth.
08:41:40 XMPPConnection authenticated (XMPPTCPConnection[hallo7@localhost/36988679960960842631730] (0))
user connected & logged in!
08:41:40 SENT (0): <iq to='conference.localhost' id='sb1cH-36' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
08:41:40 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:40 RECV (0): <a h='15' xmlns='urn:xmpp:sm:3'/>
08:41:40 SENT (0): <a xmlns='urn:xmpp:sm:3' h='14'/>
08:41:40 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='conference.localhost' type='result' id='sb1cH-36'><query xmlns='http://jabber.org/protocol/disco#info'><identity name='Chatrooms' type='text' category='conference'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='jabber:iq:register'/><feature var='http://jabber.org/protocol/muc'/><feature var='vcard-temp'/><feature var='urn:xmpp:mucsub:0'/><feature var='http://jabber.org/protocol/muc#unique'/><feature var='http://jabber.org/protocol/rsm'/><feature var='urn:xmpp:mam:tmp'/><feature var='urn:xmpp:mam:0'/><feature var='urn:xmpp:mam:1'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
08:41:40 SENT (0): <presence to='testroom12@conference.localhost/hallo7' id='sb1cH-35'><x xmlns='http://jabber.org/protocol/muc'></x><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
08:41:40 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:40 SENT (0): <a xmlns='urn:xmpp:sm:3' h='15'/>
08:41:40 RECV (0): <presence xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='testroom12@conference.localhost/hallo7' id='sb1cH-35'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/><x xmlns='vcard-temp:x:update'/><x xmlns='http://jabber.org/protocol/muc#user'><item jid='hallo7@localhost/36988679960960842631730' role='participant' affiliation='none'/><status code='110'/></x></presence>
08:41:40 RECV (0): <message xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='testroom12@conference.localhost/hallo8' type='groupchat' id='sYia8-41'><archived by='testroom12@conference.localhost' id='1508395175691674' xmlns='urn:xmpp:mam:tmp'/><stanza-id by='testroom12@conference.localhost' id='1508395175691674' xmlns='urn:xmpp:sid:0'/><delay from='testroom12@conference.localhost' stamp='2017-10-19T06:39:35.693808Z' xmlns='urn:xmpp:delay'/><body>Hey MAM Storage :)</body></message><message to='hallo7@localhost/36988679960960842631730' from='testroom12@conference.localhost' type='groupchat'><subject/></message>
Okt 19, 2017 8:41:40 AM org.jivesoftware.smackx.muc.MultiUserChat$2 processStanza
08:41:40 SENT (0): <iq id='sb1cH-41' type='set'><query xmlns='urn:xmpp:mam:1' queryid='e0dc6785-77ff-4360-8afe-8fbea509b3a6'><x xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' type='hidden'><value>urn:xmpp:mam:1</value></field><field var='with'><value>testroom12@conferenace.localhost</value></field></x></query></iq>
WARNUNG: Message subject not changed by a full JID: testroom12@conference.localhost
08:41:41 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:41 SENT (0): <a xmlns='urn:xmpp:sm:3' h='18'/>
08:41:41 RECV (0): <iq xml:lang='en' to='hallo7@localhost/36988679960960842631730' from='hallo7@localhost' type='result' id='sb1cH-41'><fin complete='true' queryid='e0dc6785-77ff-4360-8afe-8fbea509b3a6' xmlns='urn:xmpp:mam:1'><set xmlns='http://jabber.org/protocol/rsm'><count>0</count></set></fin></iq>
Size: 0
08:41:41 SENT (0): <presence id='sb1cH-44' type='unavailable'></presence><a xmlns='urn:xmpp:sm:3' h='19'/>
08:41:41 SENT (0): </stream:stream>
08:41:41 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
08:41:41 RECV (0): </stream:stream>
Connection closed
08:41:41 XMPPConnection closed (XMPPTCPConnection[hallo7@localhost/36988679960960842631730] (0))
Flow
October 19, 2017, 7:31am
14
Ok, now let us try to have a closer lock at what happens when you perform MamManager.query()
: Set a break point at that line, run the code, and then continue at the break point and show us just the XMPP trace that is caused by query()
. And for completness, show me the arguments you give to query()
.
Okay, I did it, I got the following output.
22:17:53 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
22:17:53 SENT (0): <a xmlns='urn:xmpp:sm:3' h='18'/>
Okt 19, 2017 10:17:53 PM org.jivesoftware.smackx.muc.MultiUserChat$2 processStanza
WARNUNG: Message subject not changed by a full JID: testroom12@conference.localhost
22:18:08 SENT (0): <iq id='v370U-42' type='set'><query xmlns='urn:xmpp:mam:1' queryid='3da9a0fc-4505-42b5-b27b-eaa82d6851dc'><x xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' type='hidden'><value>urn:xmpp:mam:1</value></field><field var='with'><value>testroom12@conferenace.localhost</value></field></x></query></iq>
22:18:08 RECV (0): <iq xml:lang='en' to='hallo7@localhost/171919311824076449781794' from='hallo7@localhost' type='result' id='v370U-42'><fin complete='true' queryid='3da9a0fc-4505-42b5-b27b-eaa82d6851dc' xmlns='urn:xmpp:mam:1'><set xmlns='http://jabber.org/protocol/rsm'><count>0</count></set></fin></iq>
22:18:08 RECV (0): <r xmlns='urn:xmpp:sm:3'/>
22:18:08 SENT (0): <a xmlns='urn:xmpp:sm:3' h='19'/>
Thats my Java code, where I set the breakpoint:
MamManager mamManager = MamManager.getInstanceFor(connection);
if(mamManager.isSupportedByServer()){
MamManager.MamQueryResult result = mamManager.queryArchive(JidCreate.from("testroom12@conferenace.localhost"));
System.out.println("Size: " + result.forwardedMessages.size());
The warning is displayed always.
Flow
October 20, 2017, 4:52am
16
After looking at the code, you want:
MamManager mucMamManager = MamManager.getInstanceFor(connection, mucJid);
MamQueryResult result = mamMucManager.queryArchive(100);
Okay, I thought my configuration is correct, becuase I got an error that I can not receive the messages.
10:48:25 RECV (0): <iq xml:lang='en' to='hallo7@localhost/35027346449808821001938' from='testroom12@conferenace.localhost' type='error' id='ziVhf-42'><query xmlns='urn:xmpp:mam:1' queryid='07a36046-02b6-4abb-bc4d-ff2474bf39b5'><set xmlns='http://jabber.org/protocol/rsm'><max>100</max></set></query><error code='403' type='modify'><policy-violation xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Server connections to local subdomains are forbidden</text></error></iq>
This is the exception stack trace:
XMPP error reply received from testroom12@conferenace.localhost: XMPPError: policy-violation - modifyorg.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from testroom12@conferenace.localhost: XMPPError: policy-violation - modify
at org.jivesoftware.smack.XMPPException$XMPPErrorException.ifHasErrorThenThrow(XMPPException.java:130)
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:256)
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:208)
at org.jivesoftware.smackx.mam.MamManager.queryArchive(MamManager.java:528)
at org.jivesoftware.smackx.mam.MamManager.queryArchive(MamManager.java:273)
at org.jivesoftware.smackx.mam.MamManager.queryArchive(MamManager.java:122)
at io.xxxxxxxx.Main.main(Main.java:168)
I´ve looked around but I did not find any other configuration (ejabberd.yml) to allow connections to the subdomain.
EDIT: Okay, I´ve tried to set the JID from “testroom12@conference.localhost” to “testroom12@localhost” and it is now working but the user “hallo7” only receives the invite messages from the user “hello8”. When I send a message from user “hallo8” to the room, the message gets not archived, if the user “hallo7” wants to receive these.
Maybe this happens, because the warning I´ve posted before?
EDIT2: Okay I got it. Thank you very much for your support to solve this issue.
I marked the answer above as the solution.
Flow
October 21, 2017, 5:41am
18
Always Happy to help. What was the missing piece?
I had an error in the JID. I typed testroom12@localhost.conference instead of testroom12@conference.localhost.
Hi @Flow or @Ghostw4lk ,
I am getting the following exception:
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from mathew@dewaserv1630.dewa.gov.ae /Smack: XMPPError: service-unavailable - cancel
or if I remove the “/Smack” from jid, it gives me below error:
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from fibeesh@dewaserv1630.dewa.gov.ae : XMPPError: forbidden - auth
Regards,
Rohit Garg