File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark ""write end dead" or "pipe" broken error" Watch ""write end dead" or "pipe" broken error" New topic

"write end dead" or "pipe" broken error

Jimmy Anderson

Joined: Aug 22, 2003
Posts: 3
I am trying to write a program using the PipedInputStream and PipedOutputStream classes. I either get a "pipe broken" or " write end dead" error. There are four classes in all, the first class Prime I won't include, it simply creates a file and populates it with the first 5 prime numbers. The code follows. Some of the code is commented out because I have been playing around trying to get it to work. Any help as to why it won't work would be appreciated.
Thanks in advance.

[ February 05, 2004: Message edited by: Jim Yingst ]
I agree. Here's the link:
subject: "write end dead" or "pipe" broken error
It's not a secret anymore!