Solved

Why do I get the error:Write end dead. in Piped ?

Posted on 2001-08-27
7
852 Views
Last Modified: 2008-03-10
Hi,
Why do I get the error:Write end dead. in Piped ?
The PipedReader is in a child thread,
and the PipedWriter in the main parent thread.
When I put the string into the pip in the main thread,
the child thread's piped can get the string.
But,I set the PipedReader object int a for(;;) section,
the object can get the string too,and also throw the
java.IOException:Write end dead.
Why?
0
Comment
Question by:cocia
  • 4
  • 3
7 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 6430931
> java.IOException:Write end dead.

probably the other thread (writer) has closed the pipe.
0
 

Author Comment

by:cocia
ID: 6431947
heyhey:
but I can read data again from pipe.
What's meaning?
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6431970
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cocia
ID: 6432070
Thanks heyhey.
I go back to read this article!
I think I will get the answer.
Thanks!
0
 

Author Comment

by:cocia
ID: 6432088
heyhey:
How can I send the points to u!
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 50 total points
ID: 6432119
just accept this answer with grade A :)
0
 

Author Comment

by:cocia
ID: 6432246
:)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet and mdb, jms error 1 54
Why doesn't this text field show up on my Applet frame? 2 27
passing enum to a method 4 34
batch vs regular insert in spring DAO 2 20
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question