0

私が作成したJabberd2サーバーに接続しようとしていますが、ここで私がしていることは次のとおりです。

  ConnectionConfiguration configuration = new;  ConnectionConfiguration("localhost", 5222);
    configuration.setDebuggerEnabled(true);
    XMPPConnection connection = new XMPPConnection(configuration);
    connection.connect();

部分の後、connect();私はこのエラーが発生しています:

    stream:error (text)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:260)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)

これは私の Smack デバッグです: 送信済み:

    <stream:stream to="localhost" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">
    <presence id="iuS06-0" type="unavailable"></presence>
    </stream:stream>

受け取った:

<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='localhost' version='1.0' id='yawymcwsfxk8mzlyapv1y5pvgi9ngnpfxmdky9dd' xmlns:ack='http://www.xmpp.org/extensions/xep-0198.html#ns'><stream:error xmlns:stream='http://etherx.jabber.org/streams'><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>service requested for unknown domain</text></stream:error></stream:stream>

私は何を間違っていますか?

4

1 に答える 1

0

c2s.xml の section の下に section がないことが判明しました

于 2016-11-21T14:18:14.917 に答える