I am using openfire 3.7.0 and smack 3.2.2. I have the next simple client to join a multi user chat:
package jabber.smack;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.MessageListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smackx.muc.MultiUserChat;
public class Main {
public static void main(String[] args) throws Exception {
XMPPConnection connection = new XMPPConnection("chat.k1.dev");
connection.connect();
connection.login("admin", "123123");
MultiUserChat chatNew = new MultiUserChat(connection, "testroom@conference.chat.k1.dev");
chatNew.join("Conj.Jardim das Acácias, bloco 19, nº 07 tЁtá");
connection.disconnect();
}
}
I have the next problem in run this program:
Exception in thread “main” No response from server.:
at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:468)
at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:362)
at jabber.smack.Main.main(Main.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Openife log have no error messages, but openfire have a session with the next nickname :
“Conj.Jardim das Acácias, bloco 19, n**o **07 tЁtá”
If I use nickname without symbol º, all ok.
Any help would be appreciated