posted 12 years ago
Hey everyone,
I am working on a small chat program for a class I am taking and am running into a lot of stream issues which I hope someone can give me some ideas how to fix.
Layout:
The basic setup of my program is the server-client model, I have a multi-threaded server which clients can connect to. When A client connects a ThreadHandler is spawned to hold the interaction between a single client and the server. Both the client and the ThreadHandler have an ObjectOutputStream and an ObjectInputStream object that are instantiated in their constructors.
Problem:
I can call some operations without running into issues but when I call some I get this error
I believe that one of the streams is writing its header twice but I dont really know why. Any ideas on this would be great!
Thanks,
Hunter
"If the facts don't fit the theory, get new facts" --Albert Einstein