cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5742
Views
0
Helpful
1
Replies

Problem with sending message to another user through XMPP protocol

vtols
Level 1
Level 1

I work with CUCM 11.5 and trying to implement simple chat bot using Smack library for Java, that works with XMPP protocol. Message delivery works for user-to-user chats in DevNet Sandbox environment, but on a real installation, though it is possible to establish connection and login, messages aren't delivered at all, and server reports internal error. Unfortunately I have no access to server logs. Are there any ideas, what is the root cause of the problem and how it could be solved?

[INFO ] 2018-01-31 11:46:51.750 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <stream:stream xmlns='jabber:client' to='intra.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='bot@intra.net' xml:lang='en'>

[INFO ] 2018-01-31 11:46:51.751 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en-US.UTF-8' id='2AB633F4F97C0' from='intra.net' to='bot@intra.net' version='1.0'>

[INFO ] 2018-01-31 11:46:51.756 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>CISCO-VTG-TOKEN</mechanism><hostname xmlns='urn:xmpp:domain-based-name:0'>pres-sub.intra.net</hostname><hostname xmlns='urn:xmpp:domain-based-name:0'>pres-pub.intra.net</hostname></mechanisms></stream:features>

[INFO ] 2018-01-31 11:46:51.757 [main] Debug - Successfully connected to host

[INFO ] 2018-01-31 11:46:51.835 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJvdAAxMjM0</auth>

[INFO ] 2018-01-31 11:46:51.882 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>

[INFO ] 2018-01-31 11:46:51.883 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <stream:stream xmlns='jabber:client' to='intra.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='bot@intra.net' id='2AB633F4F97C0' xml:lang='en'>

[INFO ] 2018-01-31 11:46:51.884 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en-US.UTF-8' id='2AB633F4F97C0' from='intra.net' to='bot@intra.net' version='1.0'>

[INFO ] 2018-01-31 11:46:51.924 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><sm xmlns='urn:xmpp:sm:3'><optional/></sm><mdm xmlns='http://protocols.cisco.com/mdm:1'><optional/></mdm></stream:features>

[INFO ] 2018-01-31 11:46:51.928 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <iq id='6WomI-3' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>Smack</resource></bind></iq>

[INFO ] 2018-01-31 11:46:51.967 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <iq id='6WomI-3' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>bot@intra.net/Smack</jid></bind></iq>

[INFO ] 2018-01-31 11:46:51.972 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <iq from='bot@intra.net/Smack' id='6WomI-5' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

[INFO ] 2018-01-31 11:46:51.973 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <iq id='6WomI-5' to='bot@intra.net/Smack' type='result'/>

[INFO ] 2018-01-31 11:46:51.974 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <enable xmlns='urn:xmpp:sm:3' resume='true'/>

[INFO ] 2018-01-31 11:46:51.991 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <enabled id='3fac25e9-ecba-4e53-bccd-06cbe1600a18' max='60' resume='true' xmlns='urn:xmpp:sm:3'/>

[INFO ] 2018-01-31 11:46:51.993 [main] Log4jDebugger - User logged (0): bot@intra.net:5222/Smack

[INFO ] 2018-01-31 11:46:51.996 [main] Log4jDebugger - XMPPConnection authenticated (XMPPTCPConnection[bot@intra.net/Smack] (0))

[INFO ] 2018-01-31 11:46:51.996 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <iq from='bot@intra.net/Smack' id='6WomI-7' type='get'><query xmlns='jabber:iq:roster'></query></iq>

[INFO ] 2018-01-31 11:46:51.997 [main] Debug - Successfully performed login

[INFO ] 2018-01-31 11:46:51.997 [main] Debug - Login: OK

[INFO ] 2018-01-31 11:46:51.997 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <presence from='bot@intra.net/Smack' id='6WomI-8'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='NfJ3flI83zSdUDzCEICtbypursw='/></presence>

[INFO ] 2018-01-31 11:46:52.000 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <iq from='bot@intra.net/Smack' id='6WomI-7' type='result' xml:lang='en'><query xmlns='jabber:iq:roster'/></iq>

[INFO ] 2018-01-31 11:46:52.002 [main] Debug - Sending message: OK

[INFO ] 2018-01-31 11:46:52.002 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <message to='user@intra.net' from='bot@intra.net/Smack' id='6WomI-10' type='chat'><body>Hello: Basic send</body></message><r xmlns='urn:xmpp:sm:3'/>

[INFO ] 2018-01-31 11:46:52.007 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <presence from='bot@intra.net/Smack' id='6WomI-8' to='bot@intra.net' xml:lang='en'><c hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='NfJ3flI83zSdUDzCEICtbypursw=' xmlns='http://jabber.org/protocol/caps'/></presence>

[INFO ] 2018-01-31 11:46:52.008 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <presence from='bot@intra.net/composed' to='bot@intra.net/Smack' type='unavailable'><c hash='sha-1' node='http://cisco.com/cup/caps' ver='L0mwOaX6n8VnczsxLk2dMU2QzAg=' xmlns='http://jabber.org/protocol/caps'/><priority>-1</priority><presence entity='sip:bot@intra.net' xmlns='urn:ietf:params:xml:ns:pidf'><person id='bot' xmlns='urn:cisco:params:xml:ns:pidf:rpid'><activities><unavailable/></activities></person><tuple id='default' xmlns='urn:ietf:params:xml:ns:pidf'><status><basic>closed</basic></status></tuple></presence><x from='bot@intra.net/composed' stamp='20180119T12:13:31' xmlns='jabber:x:delay'/></presence>

[INFO ] 2018-01-31 11:46:52.049 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <presence from='bot@intra.net/composed' to='bot@intra.net'><c hash='sha-1' node='http://cisco.com/cup/caps' ver='L0mwOaX6n8VnczsxLk2dMU2QzAg=' xmlns='http://jabber.org/protocol/caps'/><priority>127</priority><presence entity='sip:bot@intra.net' xmlns='urn:ietf:params:xml:ns:pidf'><person id='bot' xmlns='urn:cisco:params:xml:ns:pidf:rpid'><activities><available/><phone-status>unavailable</phone-status><im-status>available</im-status></activities></person><tuple id='JabberSmack' xmlns='urn:ietf:params:xml:ns:pidf'><status><basic>open</basic></status><servcaps xmlns='urn:ietf:params:xml:ns:pidf:servcaps'><type>text/plain</type><type>application/x-cisco-cupc+xml</type><text>true</text></servcaps></tuple></presence></presence><a h='3' xmlns='urn:xmpp:sm:3'/>

[INFO ] 2018-01-31 11:46:52.081 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <message from='user@intra.net' id='6WomI-10' to='bot@intra.net/Smack' type='error' xml:lang='en'><body>Hello: Basic send</body><error code='500' type='wait'><internal-server-error xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message>

[INFO ] 2018-01-31 11:46:52.121 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): <r xmlns='urn:xmpp:sm:3'/>

[INFO ] 2018-01-31 11:46:52.122 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <a xmlns='urn:xmpp:sm:3' h='5'/>

[INFO ] 2018-01-31 11:46:54.003 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): <presence from='bot@intra.net/Smack' id='6WomI-15' type='unavailable'></presence><a xmlns='urn:xmpp:sm:3' h='5'/>

[INFO ] 2018-01-31 11:46:54.003 [Smack Packet Writer (0)] Log4jDebugger - SENT (0): </stream:stream>

[INFO ] 2018-01-31 11:46:54.004 [Smack Packet Reader (0)] Log4jDebugger - RECV (0): </stream:stream>


1 Reply 1

keglass
Level 7
Level 7

Valery,

I recommend you also post this to the Cisco Support Community for help with troubleshooting and for feedback from community experts.

Cisco Support Community - Cisco Support Community

Kelli Glass

Moderator for Cisco Customer Communities

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: