Hi All I am using Apache commons net 1.4.1 API to upload files. My program is running on a AIX box and I am also using the ftp service running on AIX. I upload some of of files one after the other. I issue a noop command before every upload(if noop fails by throwing a FTPConnectionClosedException then i check isConnected and if true disconnect() and connect again). But some of the requests fail by throwing the below error.
I see there are some issues on AIX plaform and Java from this link. http://www.ibm.com/developerworks/aix/library/au-aix-javatraps/index.html Has anybody faced this problem earlier. Do you have any solution or work around. I am checking at the code if all the close() are done properly Thanks very much Sarath Ambadas Caused by: java.net.SocketException: There is no process to read data written to a pipe. at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java(Compiled Code)) at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code)) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java(Inlined Compiled Code)) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java(Compiled Code)) at org.apache.commons.net.telnet.TelnetClient._flushOutputStream( TelnetClient.java:77) at org.apache.commons.net.telnet.TelnetOutputStream.flush( TelnetOutputStream.java:137) at java.io.FilterOutputStream.flush(FilterOutputStream.java(Compiled Code)) at sun.nio.cs.StreamEncoder$ConverterSE.implFlush(StreamEncoder.java(Compiled Code)) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java(Inlined Compiled Code)) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled Code)) at java.io.BufferedWriter.flush(BufferedWriter.java(Compiled Code)) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442<ftp://ftp.java:442/> ) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520<ftp://ftp.java:520/> ) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:569<ftp://ftp.java:569/> ) at org.apache.commons.net.ftp.FTP.noop(FTP.java:1463 <ftp://ftp.java:1463/> ) at org.apache.commons.net.ftp.FTPClient.sendNoOp(FTPClient.java:1924)
