i'm working on a java client that will send numeric instructions to a server program coded in C through pipe files on Solaris 2.6. i'm able to write instructions through a pipe file to the server, the server will make its computations, and then the server should send back the results through a response pipe. the problem occurs when i try to send several requests to the server, after a few successful responses to the server back to the client, the client will hang randomly on the FileReader statement in the code below. but no exceptions are tripped to STDOUT. when i compiled with the jdb on, and i ran the jdb on the client class file, the "frin" object below had a com.sun.jdi.NativeMethodException associated with it. i'm not sure how to prevent the client from hanging. any suggestions? btw, we've also written the client code in C, and if we but a sleep(2) in right before the code below, the issue is resolved, yet with the Java client, it will ALWAYS fail on the FileReader statement in the code below.