powered by Jive Software

Why doesn't the smack java process terminate in windows 7?

I’m running the openfire server on windows and created a very simple program:

public class Main {

public static void main(String[] args) throws Exception{

Connection connection = new XMPPConnection(“localhost”);

connection.connect();

connection.login(“bjacobs”, “password”);

Chat chat = connection.getChatManager().createChat(“mjacobs@Bryan-PC”, new MessageListener() {

@Override

public void processMessage(Chat chat, Message message) {

System.out.println(message.getBody());

}

});

connection.disconnect(); // strange behavior here

}

}

connection.disconnect results in two odd things:

  1. The following message is displayed in my intellij console: couldn’t setup local SOCKS5 proxy on port 7777: Unrecognized Windows Sockets error: 0: JVM_Bind

  2. The java process isn’t killed and I can’t kill it in the Task Manager I’m told access denied.

Any thoughts would be greatly appreciated.