InterruptedIOExcpetion for InputStreamReader
I am using Server socket to read from console .In the server socket , I am reading from client through InputStreamReader.
In a different method, I am opening a new InputStreamReader to process the output of os command through exec().
Whenever this method calls, the other InputStreamReader gets an InterruptedIOException and terminates.
Any solution on this ?
Thanks
[397 byte] By [
mammaa] at [2007-11-27 9:39:46]

# 1
> I am using Server socket to read from console No you're not, this makes no sense.Something, probably not the first reading method, is issuing an interrupt to the second reading thread.
ejpa at 2007-7-12 23:15:47 >

# 2
> I am using Server socket to read from console
No way.
>Whenever this method calls, the other InputStreamReader gets an InterruptedIOException and terminates.
See the exit code of the command line you executed, maybe it is terminating unexpectedly.
What about post your code?
# 3
I got the problem.It's actually the BufferedReader's readLine() that is issuing the InterruptedIOException.And as these all are happening in the same thread, the thread got terminated.Now I am using read() to get the things done in more efficient way.Thanks
mammaa at 2007-7-12 23:15:47 >
