Posted on 2005-03-04
I'm currently making a chat room where i have a server.java file and a client.java file.2 users can connect to the server successfully,and send a few messages between each other.the problem is that after a random amount of messages the following exception error occurs on the server window:
Exception in thread "Thread-0" java.lang.IndexOutOfBoundsException: end
after that error appears,the user that thread is associated with cannot send anymore messages,however,they can still received messages sent by other users.
i personally don't understand what it means and how to fix it.i've only beens tudying java for a few months so don't have the required knowledge to fix it so any help is appreciated!
if any code is required then just ask and i'll give you it