2016-11-21 12 views
0

私は私が作成され、ここで私は何をすべきかですましJabberd2サーバーに接続するためにtryginだ:XMPP 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) 

これは私のスマックデバッグです: 送信:

<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> 

私は間違っていますか?

答えて

0

私はc2s.xmlのセクションの下にセクションがありませんでした