What server are you using? Does the server know that it’'s supposed to be “localhost”? Also, test@conference.jabber.org will only work if your server supports s2s (server to server).
The server I’'m using is Openim.It is recognized as “localhost” because I can connect.The problem is, to groupChat.join(“me”).In this line I have the exception.
Also i don’'t know if the room “test” has been created.
Can you tell me another public chat room (except from test@conference.jabber.org) that i can connect as client (c2s), so i can test this code?