A simple GroupChat how to --- please help!

I keep getting the following error:

Exception in thread “main” org.jivesoftware.smack.XMPPException: No response from server.

at org.jivesoftware.smack.GroupChat.join(GroupChat.java:192)

at org.jivesoftware.smack.GroupChat.join(GroupChat.java:154)

  • here is my code **************

import org.jivesoftware.smack.GroupChat;

import org.jivesoftware.smack.PacketListener;

import org.jivesoftware.smack.XMPPConnection;

import org.jivesoftware.smack.XMPPException;

import org.jivesoftware.smack.packet.Packet;

public class Driver

{

String username= “chall”;

String password= “chall”;

String nickName = “Carvel Hall”;

String host= “jabber.objectsciences.com”;

String room= "foo@chat.jabber.objectsciences.com";

XMPPConnection connection;

GroupChat groupChat;

public class TestListener implements PacketListener

{

public void processPacket(Packet arg0)

{

System.out.println(“processPacket ==>”);

System.out.println(“processPacket <==”);

}

}

public Driver() throws XMPPException

{

connection= new XMPPConnection(host, 5222);

connection.login(username, password);

groupChat= connection.createGroupChat(room);

groupChat.addMessageListener(new TestListener());

groupChat.addParticipantListener(new TestListener());

groupChat.join(nickName);

}

public static void main(String[] args) throws XMPPException

{

Driver driver= new Driver();

}

}

  • here is my code **************

Can anyone tell me what I am doing wrong?

This code example works fine!

I think this is a problem with your jabber server!

Message was edited by: andre

Yeah, jabberd doesn’‘t support multi user chat (=group chat) by default, you’'ll have to install the jabberd component runtime and then install the mu-conference. of course this all only helps if you use Jabberd as your Jabber Server, other servers may support multiuser chat by default. maybe you could try to login to your groupchat with a normal client, just to check if it works.

Cheers,

tom

Thanks dude.