SocketException: Connection reset on server with ObjectInputStream
问题 I'm trying to get my head around the ObjectInputStream/ObjectOutputStream , so I create a very simple server-client application where the client sends a HashMap object over the created stream and the server receives that and prints it out. This my server code: import java.io.*; import java.net.*; public class Server { public static void main(String[] args) throws IOException, ClassNotFoundException { ServerSocket server = new ServerSocket(4444); while (true) { Socket socket = server.accept();