Muse API & Openfire

Hello everyone,

I have installed Openfire, and using Muse0.81 API for client side coding,. however every time i connect using the examples provided with the API, i get “ioexception: sockect closed” error. I cant figure out why this error is comming.

My question is that, is Openfire and muse compatible with each other?

If any one can help me with this would be appritiated…

This is the simple code that i am using to connect to the server

/******************************************************************************* ****************************************************/

import com.echomine.jabber.;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

public class JabberN
JabberSession session = null;

public JabberN()

Jabber jabber = new Jabber();
JabberContext context = new JabberContext(“admin@pc5/Home”, “1234556”, “”);

        session = jabber.createSession(context);

ConnectionListener listener = new ConnectionListener() {
public void connectionStarting(ConnectionEvent event)
throws ConnectionVetoException {
System.out.println(“Connection starting…”);
public void connectionEstablished(ConnectionEvent event) {
System.out.println(“Connected to remote server.”);
public void connectionClosed(ConnectionEvent event) {
System.out.println(“Connection closed.”);

System.out.println(“N: Starting connection…”);
session.connect(“”, 5222);

session.getUserService().login(); /I get error in this line saying IOException: socket closed.******/

    catch(Exception e)
    finally    { session.disconnect(); }

public static void main(String args[])
new JabberN();


/******************************************************************************* ****************************************************/


Unfortunately, Muse does not support the newer XMPP standards, only the old Jabber standards.

In order to talk to newer XMPP servers, you will have to use the new Feridian API. This API is fairly similar to Muse since some lower layers are reused. Unfortunately, Feridian does not have as much documentation, but good news is that it is still very similar to Muse so it should be an easy migration.