Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


mamun pratra
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using commons-net-1.4.1 to create an FTP conection.And the connection is successfully generating after passing the FTP url,username and password .

But problem is when i am trying to run the code and download a file using a standalone applin its downloading the file successfully.

But when i am deploying that code in JBOSS server its connecting successfully to the FTP site but its not downloading the file.

Its giving me false in the retrieveFile() method.

String localFileNameWithTimeStamp = getLocalFileNameWithTimeStamp();
FileOutputStream fileOutputStream = getFileOutPutStream(localFileNameWithTimeStamp);
if (fileOutputStream != null) {
boolean downLoad = getFtpClient().retrieveFile(getRemoteFileName(), fileOutputStream);
if (downLoad)

The above boolean value "downLoad" is coming as null when i am deploying into JBOSS server .

Can anybody help me on this why its happening like this.

Thnx in advance

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic