Solved

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

Posted on 2001-08-27
7
844 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JUnit 4 @Before and @BeforeClass differences 3 60
java.io.BufferedReader   readLine()  //returns the entire file ? 4 73
Java Timer (static) 9 45
Java: anonymous class 4 23
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

831 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