Is this the same problem as this:
http://www.javaprogrammingforums.com/whats-wrong-my-code/13247-chat-application-login-error.html

You should only use One thread for one problem