Iam using apache commons FTPClient (In "commons-net-1.4.1.jar" ). Iam using it to read files and write a file onto a FTP server.
This class works fine in Windows environment, but its not working on linux ( red hat linux) environment. The following snippet code is for reading a file on FTP. This piece of code results to deadlock situation at bolded code.