2 Replies Latest reply on Jun 6, 2006 5:26 AM by Dan Liu

    java.net.SocketException: Broken pipe

    Dan Liu Apprentice

      I'm new to jboss serialization and I keep getting broken pipe exception. Here is my code:

      Sender.java
      socket = new Socket(address, port);
      ObjectOutputStream out = new JBossObjectOutputStream(stream);
      ...
      out.writeObject(myObject);

      Reciver.java
      inStream = new JBossObjectInputStream(socket.getInputStream());
      inStream.readObject();

      when I run the code above, I keep getting java.net.SocketException: Broken pipe, from my sender.java. Any idea?