Solved

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

Posted on 2001-08-27
7
858 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 105
runtime exception 2 67
Java Restore security prompts not working 10 261
hashmap order 17 63
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

751 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