Connection closed on error, Parser got END_DOCUMENT event

E/Connection Closed Error: true
08-06 11:50:13.111 20095-20212/com.death.dummy W/System.err: org.jivesoftware.smack.SmackException: Parser got END_DOCUMENT event. This could happen e.g. if the server closed the connection without sending a closing stream element
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1245)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:764)

whenever I try to connect to xmpp server, I get this error, and this is random in nature, sometimes connection is flawless, and sometimes this error comes up. unable to understand why this error comes up, if it is related to server or client code, then it should be persistent in nature.

@Flow anything?

I am also facing the same issue with smack 4.1

Any solution for this issue. I am facing this issue only on Mobile data. On Wi-Fi network it’s working perfectly fine.

That is simply an symptom of the XMPP connection being abruptly disconnected. Usually there is not much you can do about it besides handling the error by reconnecting.

but it’s continuously disconnecting. Even after i disconnect and reconnect it .

Then you need to debug the issue why your connection got disconnected. And that most likely isn’t caused by Smack.

@Flow Thanks for your support.

2019-03-05 12:44:51.332 19408-19470/com.app.smacktest D/SMACK: SENT (0): <stream:stream xmlns='jabber:client' to='cc-iaaa-ejab.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='*****@***.com' xml:lang='en'>
2019-03-05 12:44:51.402 19408-19471/com.app.smacktest D/SMACK: RECV (0): <?xml version='1.0'?><stream:stream id='17598517058171366130' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='*****@***.com' from='cc-iaaa-ejab.com' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
2019-03-05 12:44:51.410 19408-19470/com.app.smacktest D/SMACK: SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1kNjFlNmIwNi1kYjM3LTRkMWYtODE4Yi1iZGMzZjBlYTM2MDAscj1IV2kqUTdRNVZ+c11kOVdgeWk/PEIyQjBtW2dIRW9KdQ==</auth>
2019-03-05 12:44:51.478 19408-19471/com.app.smacktest D/SMACK: RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj1IV2kqUTdRNVZ+c11kOVdgeWk/PEIyQjBtW2dIRW9KdW93K3JCekd0emdyZE1pRmFTbFJoRXc9PSxzPXA5YkU4dVNpT0RweHRYZjJwcEZCOFE9PSxpPTQwOTY=</challenge>
2019-03-05 12:44:51.853 19408-19470/com.app.smacktest D/SMACK: SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9SFdpKlE3UTVWfnNdZDlXYHlpPzxCMkIwbVtnSEVvSnVvdytyQnpHdHpncmRNaUZhU2xSaEV3PT0scD1Ka254UUQwaVVuNytBTDE1ODRFd0dxNnpyMEk9</response>
2019-03-05 12:44:51.918 19408-19471/com.app.smacktest D/SMACK: RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj1ZZm1EZlVJWDhNMmgzSUk0RnhPWFJ5NDhOVm89</success>
2019-03-05 12:44:51.922 19408-19470/com.app.smacktest D/SMACK: SENT (0): <stream:stream xmlns='jabber:client' to='cc-iaaa-ejab.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='*****@***.com' id='17598517058171366130' xml:lang='en'>
2019-03-05 12:44:51.985 19408-19471/com.app.smacktest D/SMACK: RECV (0): <?xml version='1.0'?><stream:stream id='15212093559770957551' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='*****@***.com' from='cc-iaaa-ejab.com' xmlns='jabber:client'><stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session><c ver='sg7ZnA5zzsPpRyrmVVRdsh4nhRU=' 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>
2019-03-05 12:44:51.991 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq id='hycFS-10' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'></bind></iq>
2019-03-05 12:44:52.060 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq type='result' id='hycFS-10'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>*****@***.com/6700257878905071210250466</jid></bind></iq>
2019-03-05 12:44:52.066 19408-19470/com.app.smacktest D/SMACK: SENT (0): <enable xmlns='urn:xmpp:sm:3' resume='true' max='60'/>
2019-03-05 12:44:52.130 19408-19471/com.app.smacktest D/SMACK: RECV (0): <enabled resume='true' max='5' id='g2gCbQAAABk2NzAwMjU3ODc4OTA1MDcxMjEwMjUwNDY2aANiAAAGD2IAC8AtYgAACSo=' xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.131 19408-19440/com.app.smacktest D/SMACK: User logged (0): *****@***.com:5222/6700257878905071210250466
2019-03-05 12:44:52.139 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq id='hycFS-12' type='get'><query xmlns='jabber:iq:roster'></query></iq><iq to='cc-iaaa-ejab.com' id='hycFS-13' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='http://www.process-one.net/en/ejabberd/#sg7ZnA5zzsPpRyrmVVRdsh4nhRU='></query></iq>
2019-03-05 12:44:52.202 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='*****@***.com' type='result' id='hycFS-12'><query xmlns='jabber:iq:roster'><item subscription='both' jid='0eef9970-4a15-47d8-bb2d-460a0e023160@cc-iaaa-ejab.com'/><item ask='subscribe' jid='528c7f61-0f4c-4a0b-a83f-eb44ab3f180b@cc-iaaa-ejab.com'/><item subscription='from' jid='09b595ea-1b17-47c4-9610-be6bdd8458ac@cc-iaaa-ejab.com'/><item subscription='both' jid='73152451-6934-4698-9dec-9bf3677ee6ce@cc-iaaa-ejab.com'/><item ask='subscribe' jid='b2cf25a3-94b2-4777-9e71-ba08ada74444@ec2-13-126-56-217.ap-south-1.compute.amazonaws.com'/><item subscription='both' jid='66d7e271-2256-40b1-8ee7-41116b6cb09d@cc-iaaa-ejab.com'/><item ask='subscribe' jid='b2cf25a3-94b2-4777-9e71-ba08ada74444@cc-iaaa-ejab.com'/><item ask='subscribe' jid='46dcf84c-c3fe-4718-ad38-3c1a6b2bbd46@cc-iaaa-ejab.com'/><item subscription='both' jid='b1f49bd0-4a5b-4faf-b785-6c9305ae19c2@cc-iaaa-ejab.com'/><item subscription='both' jid='f4de6fca-4cde-4d00-8e73-2f16c24ad7d8@cc-iaaa-ejab.com'/><item subscription='both' jid='dfc1a076-614d-4d39-b33a-f22c2a390a6f@cc-iaaa-ejab.com'/><item ask='subscribe' jid='5aceca03-dbc8-4842-b1c8-34408d655dea@cc-iaaa-ejab.com'/><item subscription='both' jid='18128c42-7390-4df2-b388-3aea0260aaca@cc-iaaa-ejab.com'/><item subscription='to' jid='da08dedb-8fa3-4899-bc93-7447f84e1a0c@cc-iaaa-ejab.com'/><item ask='subscribe' jid='46c86c25-a098-4a91-86f4-7f1e851dd1d5@cc-iaaa-ejab.com'/><item subscription='to' jid='d0e4ca32-84cb-424b-b801-5e9368bbdff5@cc-iaaa-ejab.com'/><item subscription='both' jid='89164ef5-9ba2-4772-92df-306fae094655@cc-iaaa-ejab.com'/><item ask='subscribe' jid='2b726e00-30b9-4583-8990-d71e3b3be595@cc-iaaa-ejab.com'/><item ask='subscribe' jid='8e19027e-1b36-4782-8ea3-f50eef3ad9c7@cc-iaaa-ejab.com'/><item subscription='both' jid='c27b9c10-2d4c-4365-a684-5f94251f1a73@cc-iaaa-ejab.com'/><item ask='subscribe' jid='05b0458f-046c-4544-8168-37193e04d3f4@cc-iaaa-ejab.com'/><item subscription='both' jid='5f0de842-00fc-4054-b630-c0f876924de8@cc-iaaa-ejab.com'/><item subscription='both' jid='cda8f4a6-bf1c-4099-8633-c4abe983848a@cc-iaaa-ejab.com'/><item subscription='both' jid='228cdb68-9c77-4554-8ed6-0e7f3a85e48d@cc-iaaa-ejab.com'/><item subscription='to' jid='0f794e2d-3f2c-4ffb-96c0-63ab6c8886f1@cc-iaaa-ejab.com'/><item subscription='both' jid='b030bbca-3f48-48a0-af1b-1457b614038c@cc-iaaa-ejab.com'/><item ask='subscribe' jid='f4de6fca-4cde-4d00-8e73-2f16c24ad7d8@ec2-13-126-56-217.ap-south-1.compute.amazonaws.com'/><item ask='subscribe' jid='8e19027e-1b36-4782-8ea3-f50eef3ad9c7@ec2-13-126-56-217.ap-south-1.compute.amazonaws.com'/><item ask='subscribe' jid='e732df7b-8914-44a7-b73d-e74d1411558c@cc-iaaa-ejab.com'/><item subscription='both' jid='3abe18f5-94b1-4942-b307-46bd10a02f4e@cc-iaaa-ejab.com'/><item subscription='to' jid='fa237191-28c9-471d-86e6-ba323cefb0a7@cc-iaaa-ejab.com'/><item ask='subscribe' jid='citizenchatsupport@cc-iaaa-ejab.com'/><item subscription='both' jid='9b23d8e6-04df-47fd-8961-201963c48de3@cc-iaaa-ejab.com'/><item subscription='both' jid='8511510c-deec-4f9d-bda5-27c0dbc68c76@cc-iaaa-ejab.com'/><item ask='subscribe' jid='9285d182-9174-4de6-bcd2-871c1467ffa3@cc-iaaa-ejab.com'/><item subscription='both' jid='f5352bd6-8aac-404e-87e2-1840c22877a7@cc-iaaa-ejab.com'/><item subscription='both' jid='47c6e712-c530-475b-b3de-3a9ce16137e5@cc-iaaa-ejab.com'/><item ask='subscribe' jid='cc68b2ca-c4e7-416a-a7ad-1bdf8433e368@cc-iaaa-ejab.com'/><item subscription='to' jid='f40c3776-0a30-4d85-8d25-650b92a0d3cb@cc-iaaa-ejab.com'/><item ask='subscribe' jid='407f2704-8128-4c81-a9cc-65eddbb1f848@cc-iaaa-ejab.com'/><item subscription='both' jid='ab88e9f7-44a3-4fad-93d4-95f4b9084e9b@cc-iaaa-ejab.com'/><item subscription='to' jid='ff7f88d9-d0e5-4c10-a7b0-b9fd8b5e89eb@cc-iaaa-ejab.com'/><item ask='subscribe' jid='e24e488e-0c74-4df1-af79-9ce01e26cbe2@cc-iaaa-ejab.com'/><item subscription='both' jid='2e94d175-c0db-4f25-ada3-1a0fed626700@cc-iaaa-ejab.
2019-03-05 12:44:52.222 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='cc-iaaa-ejab.com' type='result' id='hycFS-13'><query node='http://www.process-one.net/en/ejabberd/#sg7ZnA5zzsPpRyrmVVRdsh4nhRU=' 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#multi-items'/><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#publish-options'/><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='iq'/><feature var='jabber:iq:last'/><feature var='jabber:iq:privacy'/><feature var='jabber:iq:register'/><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:ping'/><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>
2019-03-05 12:44:52.223 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='1'/>
2019-03-05 12:44:52.243 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='cc-iaaa-ejab.com' id='hycFS-16' type='get'><query xmlns='http://jabber.org/protocol/disco#items'></query></iq>
2019-03-05 12:44:52.276 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.277 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='2'/>
2019-03-05 12:44:52.320 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='cc-iaaa-ejab.com' type='result' id='hycFS-16'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='conference.cc-iaaa-ejab.com'/><item jid='pubsub.cc-iaaa-ejab.com'/></query></iq>
2019-03-05 12:44:52.325 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='conference.cc-iaaa-ejab.com' id='hycFS-18' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
2019-03-05 12:44:52.351 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.355 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='3'/>
2019-03-05 12:44:52.400 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='conference.cc-iaaa-ejab.com' type='result' id='hycFS-18'><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='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='jabber:iq:register'/><feature var='http://jabber.org/protocol/rsm'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
2019-03-05 12:44:52.424 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='pubsub.cc-iaaa-ejab.com' id='hycFS-20' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.445 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.447 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='4'/>
2019-03-05 12:44:52.480 19408-19471/com.app.smacktest D/SMACK: RECV (0): <a h='5' xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.481 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='pubsub.cc-iaaa-ejab.com' type='result' id='hycFS-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/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#multi-items'/><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#publish-options'/><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>
2019-03-05 12:44:52.492 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='cc-iaaa-ejab.com' id='hycFS-22' type='get'><query xmlns='http://jabber.org/protocol/disco#items'></query></iq>
2019-03-05 12:44:52.521 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.522 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='5'/>
2019-03-05 12:44:52.561 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='cc-iaaa-ejab.com' type='result' id='hycFS-22'><query xmlns='http://jabber.org/protocol/disco#items'><item jid='conference.cc-iaaa-ejab.com'/><item jid='pubsub.cc-iaaa-ejab.com'/></query></iq>
2019-03-05 12:44:52.566 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='conference.cc-iaaa-ejab.com' id='hycFS-24' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
2019-03-05 12:44:52.591 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.592 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='6'/>
2019-03-05 12:44:52.641 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='conference.cc-iaaa-ejab.com' type='result' id='hycFS-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='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='jabber:iq:register'/><feature var='http://jabber.org/protocol/rsm'/><x type='result' xmlns='jabber:x:data'><field var='FORM_TYPE' type='hidden'><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
2019-03-05 12:44:52.647 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='pubsub.cc-iaaa-ejab.com' id='hycFS-26' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>
2019-03-05 12:44:52.671 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.672 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='7'/>
2019-03-05 12:44:52.701 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='pubsub.cc-iaaa-ejab.com' type='result' id='hycFS-26'><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#multi-items'/><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#publish-options'/><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>
2019-03-05 12:44:52.712 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='8'/><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.721 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.722 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='8'/>
2019-03-05 12:44:52.733 19408-19470/com.app.smacktest D/SMACK: SENT (0): <iq to='cc-iaaa-ejab.com' id='hycFS-29' type='get'><ping xmlns='urn:xmpp:ping'/></iq>
2019-03-05 12:44:52.761 19408-19471/com.app.smacktest D/SMACK: RECV (0): <a h='8' xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.803 19408-19471/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='cc-iaaa-ejab.com' type='result' id='hycFS-29'/><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.806 19408-19440/com.app.smacktest D/SMACK: XMPPConnection authenticated (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0))
2019-03-05 12:44:52.807 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='9'/>
2019-03-05 12:44:52.811 19408-19470/com.app.smacktest D/SMACK: SENT (0): <presence id='hycFS-31'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/></presence><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.821 19408-19470/com.app.smacktest D/SMACK: SENT (0): <presence id='hycFS-7'><status>available</status><priority>127</priority><show>chat</show><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/></presence><presence id='hycFS-7'><status>available</status><priority>127</priority><show>chat</show><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/></presence>
2019-03-05 12:44:52.927 19408-19471/com.app.smacktest D/SMACK: RECV (0): <a h='10' xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:52.938 19408-19471/com.app.smacktest D/SMACK: RECV (0): <presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='7ad768b7-9684-4bb1-8af5-c91b6e4b0b09@cc-iaaa-ejab.com/10363752559067359271216994' id='hfqf6-81'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><delay from='7ad768b7-9684-4bb1-8af5-c91b6e4b0b09@cc-iaaa-ejab.com/10363752559067359271216994' stamp='2019-03-05T05:54:45.355597Z' xmlns='urn:xmpp:delay'/><priority>100</priority><show>away</show><status>Unavailable</status></presence><r xmlns='urn:xmpp:sm:3'/><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='2e94d175-c0db-4f25-ada3-1a0fed626700@cc-iaaa-ejab.com/13368525014430009492242658' id='ZmtMY-120'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><delay from='2e94d175-c0db-4f25-ada3-1a0fed626700@cc-iaaa-ejab.com/13368525014430009492242658' stamp='2019-03-05T06:51:58.722300Z' xmlns='urn:xmpp:delay'/><priority>100</priority><show>away</show><status>Unavailable</status></presence><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='89164ef5-9ba2-4772-92df-306fae094655@cc-iaaa-ejab.com/4963954945045938111249666' id='wE4I6-36819'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><delay from='89164ef5-9ba2-4772-92df-306fae094655@cc-iaaa-ejab.com/4963954945045938111249666' stamp='2019-03-05T07:12:26.420273Z' xmlns='urn:xmpp:delay'/><priority>127</priority><show>chat</show><status>available</status></presence><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='*****@***.com/6700257878905071210250466' id='hycFS-31'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/></presence><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='*****@***.com/6700257878905071210250466' id='hycFS-7'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><priority>127</priority><show>chat</show><status>available</status></presence><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='*****@***.com/6700257878905071210250466' id='hycFS-7'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><priority>127</priority><show>chat</show><status>available</status></presence>
2019-03-05 12:44:52.959 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='10'/>
2019-03-05 12:44:53.315 19408-19471/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:44:53.317 19408-19470/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='15'/>
2019-03-05 12:45:01.299 19408-19471/com.app.smacktest D/SMACK: XMPPConnection closed due to an exception (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0))
    org.jivesoftware.smack.SmackException: Parser got END_DOCUMENT event. This could happen e.g. if the server closed the connection without sending a closing stream element
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1260)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1011)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1028)
        at java.lang.Thread.run(Thread.java:784)
2019-03-05 12:45:02.300 19408-19527/com.app.smacktest D/SMACK: XMPPConnection (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) will reconnect in 1
2019-03-05 12:45:03.306 19408-19527/com.app.smacktest D/SMACK: XMPPConnection (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) will reconnect in 0
2019-03-05 12:45:03.310 19408-19527/com.app.smacktest D/SMACK: XMPPConnection (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) will reconnect in 0
2019-03-05 12:45:03.358 19408-19528/com.app.smacktest D/SMACK: SENT (0): <stream:stream xmlns='jabber:client' to='cc-iaaa-ejab.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='*****@***.com' xml:lang='en'>
2019-03-05 12:45:03.436 19408-19529/com.app.smacktest D/SMACK: RECV (0): <?xml version='1.0'?><stream:stream id='1477017795696993540' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='*****@***.com' from='cc-iaaa-ejab.com' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
2019-03-05 12:45:03.451 19408-19528/com.app.smacktest D/SMACK: SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1kNjFlNmIwNi1kYjM3LTRkMWYtODE4Yi1iZGMzZjBlYTM2MDAscj13KDNDSDVBMW5CJ09geG84RnsoJXgiY3hASnxcTkFIZQ==</auth>
2019-03-05 12:45:03.515 19408-19529/com.app.smacktest D/SMACK: RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj13KDNDSDVBMW5CJ09geG84RnsoJXgiY3hASnxcTkFIZXVEUHdKakZVTXVGaFhBRHlZRTVsQkE9PSxzPWFuVk16d2JrUHZEUExlTE8xbzNoM2c9PSxpPTQwOTY=</challenge>
2019-03-05 12:45:03.651 19408-19528/com.app.smacktest D/SMACK: SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9dygzQ0g1QTFuQidPYHhvOEZ7KCV4ImN4QEp8XE5BSGV1RFB3SmpGVU11RmhYQUR5WUU1bEJBPT0scD1HN2VGWnpZNXd1bzZVSytGaFE5VGpKMm9PUjA9</response>
2019-03-05 12:45:03.718 19408-19529/com.app.smacktest D/SMACK: RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj1IQlFPei8wNW9qbXBrYkxrSkZlekpZU1RUQVE9</success>
2019-03-05 12:45:03.722 19408-19528/com.app.smacktest D/SMACK: SENT (0): <stream:stream xmlns='jabber:client' to='cc-iaaa-ejab.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='*****@***.com' id='1477017795696993540' xml:lang='en'>
2019-03-05 12:45:03.778 19408-19529/com.app.smacktest D/SMACK: RECV (0): <?xml version='1.0'?><stream:stream id='18048616017222597551' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='*****@***.com' from='cc-iaaa-ejab.com' xmlns='jabber:client'><stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session><c ver='sg7ZnA5zzsPpRyrmVVRdsh4nhRU=' 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>
2019-03-05 12:45:03.789 19408-19528/com.app.smacktest D/SMACK: SENT (0): <resume xmlns='urn:xmpp:sm:3' h='15' previd='g2gCbQAAABk2NzAwMjU3ODc4OTA1MDcxMjEwMjUwNDY2aANiAAAGD2IAC8AtYgAACSo='/>
2019-03-05 12:45:03.849 19408-19529/com.app.smacktest D/SMACK: RECV (0): <resumed previd='g2gCbQAAABk2NzAwMjU3ODc4OTA1MDcxMjEwMjUwNDY2aANiAAAGD2IAC8AtYgAACSo=' h='12' xmlns='urn:xmpp:sm:3'/><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:45:03.852 19408-19527/com.app.smacktest D/SMACK: User logged (0): *****@***.com:5222/6700257878905071210250466
2019-03-05 12:45:03.856 19408-19528/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='15'/>
2019-03-05 12:45:03.876 19408-19528/com.app.smacktest D/SMACK: SENT (0): <iq to='cc-iaaa-ejab.com' id='hycFS-38' type='get'><ping xmlns='urn:xmpp:ping'/></iq>
2019-03-05 12:45:03.986 19408-19529/com.app.smacktest D/SMACK: RECV (0): <iq xml:lang='en' to='*****@***.com/6700257878905071210250466' from='cc-iaaa-ejab.com' type='result' id='hycFS-38'/><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:45:03.993 19408-19528/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='16'/>
2019-03-05 12:45:03.994 19408-19527/com.app.smacktest D/SMACK: XMPPConnection authenticated (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) and resumed
2019-03-05 12:45:03.995 19408-19527/com.app.smacktest D/SMACK: XMPPConnection connected (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0))
2019-03-05 12:45:04.017 19408-19528/com.app.smacktest D/SMACK: SENT (0): <presence id='hycFS-7'><status>available</status><priority>127</priority><show>chat</show><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/></presence><presence id='hycFS-7'><status>available</status><priority>127</priority><show>chat</show><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/></presence><r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:45:04.129 19408-19529/com.app.smacktest D/SMACK: RECV (0): <a h='15' xmlns='urn:xmpp:sm:3'/><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='*****@***.com/6700257878905071210250466' id='hycFS-7'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><priority>127</priority><show>chat</show><status>available</status></presence><r xmlns='urn:xmpp:sm:3'/><presence xml:lang='en' to='*****@***.com/6700257878905071210250466' from='*****@***.com/6700257878905071210250466' id='hycFS-7'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='ONI6UDI2Fo57I90pcYZ+UEOTjtc='/><x xmlns='vcard-temp:x:update'/><priority>127</priority><show>chat</show><status>available</status></presence>
2019-03-05 12:45:04.134 19408-19528/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='17'/>
2019-03-05 12:45:04.197 19408-19529/com.app.smacktest D/SMACK: RECV (0): <r xmlns='urn:xmpp:sm:3'/>
2019-03-05 12:45:04.199 19408-19528/com.app.smacktest D/SMACK: SENT (0): <a xmlns='urn:xmpp:sm:3' h='18'/>
2019-03-05 12:45:08.973 19408-19529/com.app.smacktest D/SMACK: XMPPConnection closed due to an exception (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0))
    org.jivesoftware.smack.SmackException: Parser got END_DOCUMENT event. This could happen e.g. if the server closed the connection without sending a closing stream element
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1260)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1011)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1028)
        at java.lang.Thread.run(Thread.java:784)
2019-03-05 12:45:09.973 19408-19539/com.app.smacktest D/SMACK: XMPPConnection (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) will reconnect in 1
2019-03-05 12:45:10.978 19408-19539/com.app.smacktest D/SMACK: XMPPConnection (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) will reconnect in 0
2019-03-05 12:45:10.988 19408-19539/com.app.smacktest D/SMACK: XMPPConnection (CChatXMPPTCPConnection[*****@***.com/6700257878905071210250466] (0)) will reconnect in 0
2019-03-05 12:45:11.046 19408-19540/com.app.smacktest D/SMACK: SENT (0): <stream:stream xmlns='jabber:client' to='cc-iaaa-ejab.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='*****@***.com' xml:lang='en'>

I am unable to figure out the issue. Is there anything that you could help me using above logs?

Unfortunately not.

Thanks