Project

General

Profile

I have got an error : recipient-unavailable xmpp The recipient is no longer available

Xuan Zhou
Added almost 4 years ago

2015-04-28 10:10:43.091 [in_30-sess-man]   SessionManager.processPacket()     INFO:     Impossible happened, please report to developer packet: from=sess-man@admin-pc, to=sess-man@admin-pc, DATA=<iq id="m3MKU4" xmlns="jabber:client" to="192.168.0.12" from="admin@192.168.0.12/AWSProxy-1430184450002" type="set"><command node="http://jabber.org/protocol/admin#get-user-roster" xmlns="http://jabber.org/protocol/commands" action="execute"/></iq>, SIZE=248, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=set, connection: XMPPResourceConnection=[user_jid=sess-man@admin-pc, packets=5, connectioId=null, domain=admin-pc, authState=NOT_AUTHORIZED, isAnon=false, isTmp=false].

I want to use admin account to get a user's roster...


Replies (8)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

How do you try to go about it? it looks like you are connecting as admin, but without authorizing the session, vide:

sess-man@admin-pc, packets=5, connectioId=null, domain=admin-pc, authState=NOT_AUTHORIZED

Added by Xuan Zhou almost 4 years ago

Thank you for reply!

I want to send a message to a jid (for example: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC) by admin account, and the jid is offline, and then:

2015-05-08 09:07:06.189 [in_5-message-router] MessageRouter.processPacket() FINEST: Possible infinite loop, dropping packet: from=sess-man@localhost, to=sess-man@localhost, DATA=22adminThe recipient is no longer available., SIZE=465, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=error

is this normal ? why this message doesn't save in the offline-msg table ?

Added by Xuan Zhou almost 4 years ago

Wojciech Kapcia wrote:

How do you try to go about it? it looks like you are connecting as admin, but without authorizing the session, vide:

[...]

Thank you for reply!

I want to send a message to a jid (for example: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC) by admin account, and the jid is offline, and then:

2015-05-08 09:07:06.189 [in_5-message-router] MessageRouter.processPacket() FINEST: Possible infinite loop, dropping packet: from=sess-man@localhost, to=sess-man@localhost, DATA=22adminThe recipient is no longer available., SIZE=465, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=error

is this normal ? why this message doesn't save in the offline-msg table ?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

As I've said - it looks like you are trying to use not yet authorized session which breaks things. Please share more details how you are trying to send the message and what tools do you use. Ideally please share full client XML log.

Added by Xuan Zhou almost 4 years ago

Wojciech Kapcia wrote:

As I've said - it looks like you are trying to use not yet authorized session which breaks things. Please share more details how you are trying to send the message and what tools do you use. Ideally please share full client XML log.

2015-05-08 09:07:06.171 [pool-11-thread-6]  ClientConnectionManager.processSocketData()  FINEST: Processing socket data: from=null, to=null, DATA=<message id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">CData size: 5</nick></message>, SIZE=203, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null from connection: c2s@localhost/192.168.0.201_5222_192.168.0.12_60799
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.processPacket()  FINEST:  Processing packet: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=203, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.getLocalComponent()  FINEST: No componentID matches (fast lookup against exact address): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [monitor@localhost, bosh@localhost, c2s@localhost, sess-man@localhost, vhost-man@localhost, message-archive@localhost, amp@localhost, s2s@localhost, ws2s@localhost, stats@localhost, basic-conf@localhost]; trying VHost lookup
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.getLocalComponent()  FINEST: No component name matches (VHost lookup against component name): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], for all VHosts: [192.168.0.201]; trying other forms of addressing
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.getLocalComponent()  FINEST: Component match failed: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for comp: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], basename: 168.0.201
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : sess-man@localhost
2015-05-08 09:07:06.172 [in_31-message-router]  MessageRouter.processPacket()  FINEST:  1. Packet will be processed by: sess-man@localhost, from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=203, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.173 [in_95-sess-man]   SessionManager.processPacket()     FINEST:   Received packet: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">CData size: 5</nick></message>, SIZE=203, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.173 [in_95-sess-man]   SessionManager.processPacket()     FINEST:   processing packet: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">CData size: 5</nick></message>, SIZE=203, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, connection: XMPPResourceConnection=[user_jid=admin@192.168.0.201/admin-PC, packets=16, connectioId=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, domain=192.168.0.201, authState=AUTHORIZED, isAnon=false, isTmp=false]
2015-05-08 09:07:06.173 [in_95-sess-man]   StartTLS.preProcess()              FINEST:   VHost: Domain: 192.168.0.201, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: bc19f942-f960-4065-9cf0-e1f4f7bf4a91, domainFilter: ALL, domainFilterDomains: null, c2sPortsAllowed: null, saslAllowedMechanisms: null
2015-05-08 09:07:06.173 [in_95-sess-man]   DomainFilter.preProcess()          FINEST:   Processing: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=203, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.173 [in_95-sess-man]   DomainFilter.getDomains()          FINEST:   Domains read from user session: ALL for VHost: Domain: 192.168.0.201, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: bc19f942-f960-4065-9cf0-e1f4f7bf4a91, domainFilter: ALL, domainFilterDomains: null, c2sPortsAllowed: null, saslAllowedMechanisms: null
2015-05-08 09:07:06.173 [in_95-sess-man]   DomainFilter.preProcess()          FINEST:   DOMAINS setting is: ALL
2015-05-08 09:07:06.173 [in_95-sess-man]   BindResource.preProcess()          FINEST:   Setting correct from attribute: admin@192.168.0.201/admin-PC
2015-05-08 09:07:06.173 [in_95-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: MessageArchivePlugin (message-archive-xep-0136)Request: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, conn: XMPPResourceConnection=[user_jid=admin@192.168.0.201/admin-PC, packets=17, connectioId=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, domain=192.168.0.201, authState=AUTHORIZED, isAnon=false, isTmp=false]
2015-05-08 09:07:06.173 [in_95-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: MessageAmp (amp)Request: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, conn: XMPPResourceConnection=[user_jid=admin@192.168.0.201/admin-PC, packets=17, connectioId=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, domain=192.168.0.201, authState=AUTHORIZED, isAnon=false, isTmp=false]
2015-05-08 09:07:06.174 [in_95-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: MessageCarbons (message-carbons)Request: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, conn: XMPPResourceConnection=[user_jid=admin@192.168.0.201/admin-PC, packets=17, connectioId=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, domain=192.168.0.201, authState=AUTHORIZED, isAnon=false, isTmp=false]
2015-05-08 09:07:06.174 [message-archive-xep-0136 Queue Worker 5]  DomainFilter.filter()  FINEST: Filtering (packet): from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.174 [message-archive-xep-0136 Queue Worker 5]  DomainFilter.getDomains()  FINEST: Domains read from user session: ALL for VHost: Domain: 192.168.0.201, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: bc19f942-f960-4065-9cf0-e1f4f7bf4a91, domainFilter: ALL, domainFilterDomains: null, c2sPortsAllowed: null, saslAllowedMechanisms: null
2015-05-08 09:07:06.174 [message-carbons Queue Worker 5]  DomainFilter.filter()  FINEST: Filtering (packet): from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.174 [in_95-sess-man]   DomainFilter.filter()              FINEST:   Filtering (packet): from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.174 [in_95-sess-man]   SessionManager.processPacket()     FINEST:   Packet processed by: [message-archive-xep-0136, amp, message-carbons]
2015-05-08 09:07:06.174 [amp Queue Worker 5]  Message.process()               FINEST:   Processing packet: from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, for session: XMPPResourceConnection=[user_jid=admin@192.168.0.201/admin-PC, packets=17, connectioId=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, domain=192.168.0.201, authState=AUTHORIZED, isAnon=false, isTmp=false]
2015-05-08 09:07:06.174 [message-archive-xep-0136 Queue Worker 5]  JabberIqPrivacy.filter()  FINEST: Checking outbound packet: from=null, to=message-archive@192.168.0.201, DATA=<message from="admin@192.168.0.201/admin-PC" owner="admin@192.168.0.201" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=267, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.175 [amp Queue Worker 5]  DomainFilter.filter()           FINEST:   Filtering (packet): from=c2s@localhost/192.168.0.201_5222_192.168.0.12_60799, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2015-05-08 09:07:06.175 [amp Queue Worker 5]  DomainFilter.getDomains()       FINEST:   Domains read from user session: ALL for VHost: Domain: 192.168.0.201, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: bc19f942-f960-4065-9cf0-e1f4f7bf4a91, domainFilter: ALL, domainFilterDomains: null, c2sPortsAllowed: null, saslAllowedMechanisms: null
2015-05-08 09:07:06.175 [message-archive-xep-0136 Queue Worker 5]  JabberIqPrivacy.allowed()  FINEST: Using privcy list: null
2015-05-08 09:07:06.175 [amp Queue Worker 5]  JabberIqPrivacy.filter()        FINEST:   Checking outbound packet: from=null, to=null, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.175 [amp Queue Worker 5]  JabberIqPrivacy.allowed()       FINEST:   Using privcy list: null
2015-05-08 09:07:06.175 [in_19-message-router]  MessageRouter.processPacket()  FINEST:  Processing packet: from=sess-man@localhost, to=message-archive@192.168.0.201, DATA=<message from="admin@192.168.0.201/admin-PC" owner="admin@192.168.0.201" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=267, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No componentID matches (fast lookup against exact address): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [monitor@localhost, bosh@localhost, c2s@localhost, sess-man@localhost, vhost-man@localhost, message-archive@localhost, amp@localhost, s2s@localhost, ws2s@localhost, stats@localhost, basic-conf@localhost]; trying VHost lookup
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No component name matches (VHost lookup against component name): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], for all VHosts: [192.168.0.201]; trying other forms of addressing
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Component match failed: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for comp: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], basename: 168.0.201
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : message-archive@192.168.0.201
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No componentID matches (fast lookup against exact address): message-archive@192.168.0.201, for map: [monitor@localhost, bosh@localhost, c2s@localhost, sess-man@localhost, vhost-man@localhost, message-archive@localhost, amp@localhost, s2s@localhost, ws2s@localhost, stats@localhost, basic-conf@localhost]; trying VHost lookup
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.processPacket()  FINEST:  1. Packet will be processed by: message-archive@localhost, from=sess-man@localhost, to=message-archive@192.168.0.201, DATA=<message from="admin@192.168.0.201/admin-PC" owner="admin@192.168.0.201" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=267, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.processPacket()  FINEST:  Processing packet: from=sess-man@localhost, to=null, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No componentID matches (fast lookup against exact address): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [monitor@localhost, bosh@localhost, c2s@localhost, sess-man@localhost, vhost-man@localhost, message-archive@localhost, amp@localhost, s2s@localhost, ws2s@localhost, stats@localhost, basic-conf@localhost]; trying VHost lookup
2015-05-08 09:07:06.176 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No component name matches (VHost lookup against component name): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], for all VHosts: [192.168.0.201]; trying other forms of addressing
2015-05-08 09:07:06.177 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Component match failed: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for comp: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], basename: 168.0.201
2015-05-08 09:07:06.177 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC
2015-05-08 09:07:06.177 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No componentID matches (fast lookup against exact address): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [monitor@localhost, bosh@localhost, c2s@localhost, sess-man@localhost, vhost-man@localhost, message-archive@localhost, amp@localhost, s2s@localhost, ws2s@localhost, stats@localhost, basic-conf@localhost]; trying VHost lookup
2015-05-08 09:07:06.177 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: No component name matches (VHost lookup against component name): 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for map: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], for all VHosts: [192.168.0.201]; trying other forms of addressing
2015-05-08 09:07:06.177 [in_19-message-router]  MessageRouter.getLocalComponent()  FINEST: Component match failed: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC, for comp: [c2s, basic-conf, s2s, bosh, vhost-man, sess-man, ws2s, message-router, stats, message-archive, amp, monitor], basename: 168.0.201
2015-05-08 09:07:06.185 [in_19-message-router]  ConfigRepository.getItem()    FINEST:   Getting item: 192.168.0.201 of items: [192.168.0.201]
2015-05-08 09:07:06.187 [in_19-message-router]  MessageRouter.processPacket()  FINEST:  2. Packet will be processed by: sess-man@localhost, from=sess-man@localhost, to=null, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.187 [in_51-sess-man]   SessionManager.processPacket()     FINEST:   Received packet: from=sess-man@localhost, to=null, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">CData size: 5</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.187 [in_51-sess-man]   SessionManager.getXMPPResourceConnection()  FINEST: Searching for resource connection for: 52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC
2015-05-08 09:07:06.187 [in_51-sess-man]   SessionManager.processPacket()     FINEST:   processing packet: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">CData size: 5</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null, connection: null
2015-05-08 09:07:06.187 [in_51-sess-man]   DomainFilter.preProcess()          FINEST:   Processing: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.187 [in_51-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: MessageArchivePlugin (message-archive-xep-0136)Request: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null, conn: null
2015-05-08 09:07:06.187 [in_51-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: MessageAmp (amp)Request: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null, conn: null
2015-05-08 09:07:06.187 [message-archive-xep-0136 Queue Worker 1]  DomainFilter.filter()  FINEST: Filtering (packet): from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.188 [amp Queue Worker 1]  Message.process()               FINEST:   Processing packet: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null, for session: null
2015-05-08 09:07:06.188 [in_51-sess-man]   SessionManager.walk()              FINEST:   XMPPProcessorIfc: MessageCarbons (message-carbons)Request: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null, conn: null
2015-05-08 09:07:06.188 [amp Queue Worker 1]  DomainFilter.filter()           FINEST:   Filtering (packet): from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.188 [message-carbons Queue Worker 1]  DomainFilter.filter()  FINEST: Filtering (packet): from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.188 [in_5-message-router]  MessageRouter.processPacket()  FINEST:   Processing packet: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC" type="error" id="ab04a" xmlns="jabber:client" to="admin@192.168.0.201/admin-PC"><subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick><error code="404" type="wait"><recipient-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The recipient is no longer available.</text></error></message>, SIZE=465, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=error
2015-05-08 09:07:06.189 [in_5-message-router]  MessageRouter.processPacket()  FINEST:   Possible infinite loop, dropping packet: from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC" type="error" id="ab04a" xmlns="jabber:client" to="admin@192.168.0.201/admin-PC"><subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick><error code="404" type="wait"><recipient-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The recipient is no longer available.</text></error></message>, SIZE=465, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=error
2015-05-08 09:07:06.188 [in_51-sess-man]   DomainFilter.filter()              FINEST:   Filtering (packet): from=sess-man@localhost, to=sess-man@localhost, DATA=<message from="admin@192.168.0.201/admin-PC" id="ab04a" xmlns="jabber:client" to="52301@192.168.0.201/51CADD57C546428D819E59FAC5DB2DFC">
<subject>2</subject><body>2</body><nick xmlns="http://jabber.org/protocol/nick">admin</nick></message>, SIZE=239, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
2015-05-08 09:07:06.189 [in_51-sess-man]   SessionManager.processPacket()     FINEST:   Packet processed by: [message-archive-xep-0136, amp, message-carbons]

I use the jaxmpp client to a specified client to send a message, I am through the resource to determine whether a client. (English is very poor, use the translation engine, I hope you can understand)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

You're sending message to FullJID (with resource) without type (so normal type is assumed) and in such case you get error back (recipient no longer available). You should send messages of type chat to avoid such problems.

Added by Xuan Zhou almost 4 years ago

Wojciech Kapcia wrote:

You're sending message to FullJID (with resource) without type (so normal type is assumed) and in such case you get error back (recipient no longer available). You should send messages of type chat to avoid such problems.

But now, I want to use the scene is an account to specify multiple resource devices to send information, however, the specified device may be offline, so there will be "recipient no longer available", I do have a problem?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

You need to specify type of the message stanza as @chat@. However bare in mind, that resource information is not stored in the database so after any device connects it will receive all offline messages, even those to different resources. This is because resource is inherently associated with the online presence.

    (1-8/8)