Solved

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

Posted on 2001-08-27
7
834 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_
Comment Utility
> java.IOException:Write end dead.

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

Author Comment

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

Expert Comment

by:heyhey_
Comment Utility
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

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

Author Comment

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

Accepted Solution

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

Author Comment

by:cocia
Comment Utility
:)
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 video teaches viewers about errors in exception handling.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now