This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I have created a server-client application where the client asks for data from the server using a custom Message class. I've made the Message class into a JAR and use it as an external reference in both the server and the client, so both apps would use the same class for serialization/de-serialization. When I send a Message object from the client to the server, I get the EOFException on the line where the server reads from the ObjectInputStream.
This is the server code:
The client is for Android but I don't think that this has anything to do with the problem.
This is the client class:
On the main activity I just have 2 buttons, one to connect to the server and one to send the Message object
This is the Main Activity Code: