xmpp - 使用 Smack 加载 vCard 信息时出错 : "EmptyResultIQ cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard"

标签 xmpp ejabberd smack vcf-vcard

我正在使用 smack 4.1.1 创建一个 Android 聊天应用程序

我可以在本地测试服务器 (Openfire) 上加载用户 vcard。

但是现在在 ejabberd 服务器上,当我尝试加载 vcard 时,出现以下错误:

07-19 11:11:26.175: E/AndroidRuntime(13849): java.lang.RuntimeException: An error occured while executing doInBackground()
07-19 11:11:26.175: E/AndroidRuntime(13849):    at android.os.AsyncTask$3.done(AsyncTask.java:300)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.lang.Thread.run(Thread.java:818)
07-19 11:11:26.175: E/AndroidRuntime(13849): Caused by: java.lang.ClassCastException: org.jivesoftware.smack.packet.EmptyResultIQ cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard
07-19 11:11:26.175: E/AndroidRuntime(13849):    at org.jivesoftware.smackx.vcardtemp.VCardManager.loadVCard(VCardManager.java:125)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at service.ChatService$Connect.doInBackground(ChatService.java:331)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at service.ChatService$Connect.doInBackground(ChatService.java:1)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at android.os.AsyncTask$2.call(AsyncTask.java:288)
07-19 11:11:26.175: E/AndroidRuntime(13849):    at java.util.concurrent.FutureTask.run(FutureTask.java:237)

这一行:

org.jivesoftware.smack.packet.EmptyResultIQ cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard

这就是我获取电子名片的方式:

VCard info;
    for (RosterEntry entry : entries) {
        Presence entryPresence = roster.getPresence(entry.getUser());
        Presence.Type type = entryPresence.getType();
        Log.d(entry.getUser(), "bar jid");
        if(entry.getUser().lastIndexOf("@") == -1)
            continue;
        String username = entry.getUser().substring(0,
                entry.getUser().lastIndexOf("@"));      
        try {
            info = VCardManager.getInstanceFor(connection).loadVCard(entry.getUser());
            if(info.getMiddleName() != null)
            {

                uh.updateAvatar(username, info.getMiddleName());
            }
        } catch (NoResponseException | XMPPErrorException
                | NotConnectedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        }
    }

logcat 提到这一行是问题的根源:

        info = VCardManager.getInstanceFor(connection).loadVCard(entry.getUser());

这就是我在崩溃之前得到的:

07-19 12:38:06.030: D/SMACK(16307): SENT (0): <stream:stream xmlns='jabber:client' to='myserver.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
07-19 12:38:06.665: D/SMACK(16307): RECV (0): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='184908447' from='myserver.com' version='1.0' xml:lang='en'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='wwrSvLFOLzC92POh074kJuEqYxE='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
07-19 12:38:06.665: D/SMACK(16307): SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1laGRpMTIzADEyMzQ=</auth>
07-19 12:38:07.390: D/SMACK(16307): RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
07-19 12:38:07.390: D/SMACK(16307): SENT (0): <stream:stream xmlns='jabber:client' to='myserver.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' id='184908447' xml:lang='en'>
07-19 12:38:08.005: D/SMACK(16307): RECV (0): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1619836774' from='myserver.com' version='1.0' xml:lang='en'><stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='wwrSvLFOLzC92POh074kJuEqYxE='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
07-19 12:38:08.005: D/SMACK(16307): SENT (0): <iq id='VSflA-4' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>roo</resource></bind></iq>
07-19 12:38:08.725: D/SMACK(16307): RECV (0): <iq id='VSflA-4' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid><a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a676f626e633b38394a6773796f787c6f7824696567" rel="noreferrer noopener nofollow">[email protected]</a>/roo</jid></bind></iq>
07-19 12:38:08.725: D/SMACK(16307): SENT (0): <iq id='VSflA-6' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
07-19 12:38:09.245: D/SMACK(16307): RECV (0): <iq type='result' id='VSflA-6'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
07-19 12:38:09.245: D/SMACK(16307): User logged (0): <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b262e232f227a79780b2632382e393d2e3965282426" rel="noreferrer noopener nofollow">[email protected]</a>:5222/roo
07-19 12:38:09.245: D/received from authenticated service(16307): connected: true
07-19 12:38:09.245: D/SMACK(16307): SENT (0): <iq id='VSflA-8' type='get'><query xmlns='jabber:iq:roster'></query></iq>
07-19 12:38:09.245: D/SMACK(16307): SENT (0): <iq id='VSflA-9' type='get'><vCard xmlns='vcard-temp'/></iq>
07-19 12:38:09.860: D/SMACK(16307): RECV (0): <iq from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7f121a171b164e4d4c3f12060c1a0d091a0d511c1012" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f39e969b979ac2c1c0b39e8a809681859681dd909c9e" rel="noreferrer noopener nofollow">[email protected]</a>/roo' id='VSflA-9' type='result'><vCard xmlns='vcard-temp'><N><FAMILY/><GIVEN>gigi</GIVEN><MIDDLE>http://31.170.166.15/avatars/mehdi123.jpg</MIDDLE></N><FN>gigi http://31.170.166.15/avatars/mehdi123.jpg </FN><NICKNAME>gigi </NICKNAME><EMAIL><HOME/><INTERNET/><PREF/><USERID>iyi</USERID></EMAIL><TEL><HOME/><CELL/><NUMBER>hfu</NUMBER></TEL><ADR><HOME/><CTRY/><LOCALITY/><REGION/></ADR></vCard></iq><iq from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aac7cfc2cec39b9899eac7d3d9cfd8dccfd884c9c5c7" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2449414c404d15161764495d5741565241560a474b49" rel="noreferrer noopener nofollow">[email protected]</a>/roo' id='VSflA-8' type='result'><query xmlns='jabber:iq:roster'><item subscription='from' jid='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddb7bcbbbcafecefee9db0a4aeb8afabb8aff3beb2b0" rel="noreferrer noopener nofollow">[email protected]</a>'/></query></iq>
07-19 12:38:09.860: D/http://31.170.166.15/avatars/mehdi123.jpg(16307): http://31.170.166.15/avatars/mehdi123.jpg from chatservice
07-19 12:38:09.865: D/SMACK(16307): XMPPConnection authenticated (0)
07-19 12:38:09.865: I/XMPPChatDemoActivity(16307): connected & logged in
07-19 12:38:09.865: D/SMACK(16307): SENT (0): <presence id='VSflA-12'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
07-19 12:38:09.875: D/SMACK(16307): SENT (0): <presence to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e68f948788a685898880839483888583c88b9f958394908394c885898b" rel="noreferrer noopener nofollow">[email protected]</a>/mehdi123' id='VSflA-13'><x xmlns='http://jabber.org/protocol/muc'><password></password><history maxstanzas='0'/></x><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
07-19 12:38:10.575: D/SMACK(16307): RECV (0): <presence from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="523f373a363b636061123f2b2137202437207c313d3f" rel="noreferrer noopener nofollow">[email protected]</a>/roo' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ea878f828e83dbd8d9aa8793998f989c8f98c4898587" rel="noreferrer noopener nofollow">[email protected]</a>/roo' xml:lang='en' id='VSflA-12'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
07-19 12:38:11.310: D/SMACK(16307): RECV (0): <message from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aec7dccfc0eecdc1c0c8cbdccbc0cdcb80c3d7ddcbdcd8cbdc80cdc1c3" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b565e535f520a09087b5642485e494d5e4915585456" rel="noreferrer noopener nofollow">[email protected]</a>/roo' type='groupchat'><body>This room is not anonymous</body><x xmlns='http://jabber.org/protocol/muc#user'><status code='100'/></x></message><message from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c3aab1a2ad83a0acada5a6b1a6ada0a6edaebab0a6b1b5a6b1eda0acae" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="563b333e323f676465163b2f2533242033247835393b" rel="noreferrer noopener nofollow">[email protected]</a>/roo' type='groupchat'><body>This room is filtered by external service</body><x xmlns='http://jabber.org/protocol/muc#user'><status code='100'/></x></message><presence from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="08617a6966486b67666e6d7a6d666b6d2665717b6d7a7e6d7a266b6765" rel="noreferrer noopener nofollow">[email protected]</a>/boy' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bfd2dad7dbd68e8d8cffd2c6ccdacdc9dacd91dcd0d2" rel="noreferrer noopener nofollow">[email protected]</a>/roo' xml:lang='En' ver='2.3.1'><show>dnd</show><status>iN niZ BoGZaRaD ツ</status><c xmlns='http://jabber.org/protocol/caps' node='http://kopete.kde.org/jabber/capshttp://kopete.kde.org/jabber/caps' ver='xzah7XZzG6oCHvM2nNnG2hHNOBM=' hash='sha-1'/><x xmlns='http://jabber.org/protocol/muc#user'><item jid='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b6964724b6672786e797d6e7925686466" rel="noreferrer noopener nofollow">[email protected]</a>/SaM' affiliation='member' role='participant'/></x></presence><presence from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="96ffe4f7f8d6f5f9f8f0f3e4f3f8f5f3b8fbefe5f3e4e0f3e4b8f5f9fb" rel="noreferrer noopener nofollow">[email protected]</a>/jafar123' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87eae2efe3eeb6b5b4c7eafef4e2f5f1e2f5a9e4e8ea" rel="noreferrer noopener nofollow">[email protected]</a>/roo' id='BYLNs-85'><x xmlns='http://jabber.org/protocol/muc#user'><item jid='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f892999e998ac9cacbb895818b9d8a8e9d8ad69b9795" rel="noreferrer noopener nofollow">[email protected]</a>/Spark 2.6.3' affiliation='admin' role='moderator'/></x></presence>
07-19 12:38:11.895: D/SMACK(16307): RECV (0): <presence from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a4cdd6c5cae4c7cbcac2c1d6c1cac7c18ac9ddd7c1d6d2c1d68ac7cbc9" rel="noreferrer noopener nofollow">[email protected]</a>/mehdi123' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d2bfb7bab6bbe3e0e192bfaba1b7a0a4b7a0fcb1bdbf" rel="noreferrer noopener nofollow">[email protected]</a>/roo' xml:lang='en' id='VSflA-13'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/><x xmlns='http://jabber.org/protocol/muc#user'><item jid='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bbd6ded3dfd28a8988fbd6c2c8dec9cddec995d8d4d6" rel="noreferrer noopener nofollow">[email protected]</a>/roo' affiliation='admin' role='moderator'/><status code='110'/><status code='100'/></x></presence><message from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a33283b341a3935343c3f283f34393f743723293f282c3f2874393537" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88e5ede0ece1b9babbc8e5f1fbedfafeedfaa6ebe7e5" rel="noreferrer noopener nofollow">[email protected]</a>/roo' type='groupchat'><subject>be dalile barkhi masael va tamirat server named off mishe ta zamani ke barname  android kamel nashe on nemikonam ,  momkene yemah domah ya chand mah zaman bebare</subject><body>mahan has set the subject to: be dalile barkhi masael va tamirat server named off mishe ta zamani ke barname  android kamel nashe on nemikonam ,  momkene yemah domah ya chand mah zaman bebare</body></message>
07-19 12:38:11.895: D/SMACK(16307): SENT (0): <presence to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b0838281f0d3dfded6d5c2d5ded3d59eddc9c3d5c2c6d5c29ed3dfdd" rel="noreferrer noopener nofollow">[email protected]</a>/mehdi123' id='VSflA-21'><x xmlns='http://jabber.org/protocol/muc'><password></password><history maxstanzas='0'/></x><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
07-19 12:38:14.790: D/SMACK(16307): RECV (0): <presence from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8bb8b9bacbe8e4e5edeef9eee5e8eea5e6f2f8eef9fdeef9a5e8e4e6" rel="noreferrer noopener nofollow">[email protected]</a>/mehdi123' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9ef3fbf6faf7afacaddef3e7edfbece8fbecb0fdf1f3" rel="noreferrer noopener nofollow">[email protected]</a>/roo' xml:lang='en' id='VSflA-21'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/><x xmlns='http://jabber.org/protocol/muc#user'><item jid='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e489818c808dd5d6d7a4899d978196928196ca878b89" rel="noreferrer noopener nofollow">[email protected]</a>/roo' affiliation='owner' role='moderator'/><status code='110'/><status code='201'/></x></presence>
07-19 12:38:14.790: D/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="600a01060112515253200d191305121605124e030f0d" rel="noreferrer noopener nofollow">[email protected]</a>(16307): bar jid
07-19 12:38:14.790: D/SMACK(16307): SENT (0): <presence id='VSflA-23'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
07-19 12:38:14.795: D/SMACK(16307): SENT (0): <iq to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="741e1512150645464734190d0711060211065a171b19" rel="noreferrer noopener nofollow">[email protected]</a>' id='VSflA-26' type='get'><vCard xmlns='vcard-temp'/></iq>
07-19 12:38:15.435: D/SMACK(16307): RECV (0): <presence from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c61696468653d3e3f4c61757f697e7a697e226f6361" rel="noreferrer noopener nofollow">[email protected]</a>/roo' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b1dcd4d9d5d8808382f1dcc8c2d4c3c7d4c39fd2dedc" rel="noreferrer noopener nofollow">[email protected]</a>/roo' xml:lang='en' id='VSflA-23'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>
07-19 12:38:16.040: D/SMACK(16307): RECV (0): <iq from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e747f787f6c2f2c2d5e73676d7b6c687b6c307d7173" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1479717c707d25262754796d6771666271663a777b79" rel="noreferrer noopener nofollow">[email protected]</a>/roo' id='VSflA-26' type='result'/>

最佳答案

SENT: <iq to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1f757e797e6d2e2d2c5f72666c7a6d697a6d317c7072" rel="noreferrer noopener nofollow">[email protected]</a>' id='VSflA-26' type='get'><vCard xmlns='vcard-temp'/></iq>
RECV: <iq from='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bbd1dadddac98a8988fbd6c2c8dec9cddec995d8d4d6" rel="noreferrer noopener nofollow">[email protected]</a>' to='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fc9199949895cdcecfbc91858f998e8a998ed29f9391" rel="noreferrer noopener nofollow">[email protected]</a>/roo' id='VSflA-26' type='result'/>

这似乎是服务器实现中的一个错误。 XEP-54 § 3.2 明确指出 vcard 获取的结果必须是

  1. 有效的 vcard 结果 IQ
  2. 智商错误

If no vCard exists or the user does not exist, the server MUST return a stanza error...

这里的服务器确实返回了一个空的 IQ 结果。

我建议向服务器开发人员报告此问题。

关于xmpp - 使用 Smack 加载 vCard 信息时出错 : "EmptyResultIQ cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31498721/

相关文章:

dns - 如何检查服务器是否支持 xmpp 协议(protocol)?

android - 将 aSmack 0.8.3 用于 XMPP 聊天应用程序时出现 NoSuchAlgorithmException

iphone - iOS XMPP 按用户名搜索用户

mysql - ejabberd MySQL连接错误

android - 使用 asmack 库注册并作为服务器开火

iOS:XMPP:获取离线消息

xmpp - 在 android 中使用 smack 4.1.2 连接到我的 ejabberd 服务器时获取 SocketTimeoutException

android - NoClassDefFoundError:org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration 仅 API 19

java - 如何在 java 中使用 smack api 从 openfire 检索存档消息?

android - 使用 ejabberd 将参与者添加到聊天室