Questions tagged [apache-commons-net]

Apache Commons Net™ library implements the client side of many basic Internet protocols.

Protocols supported:

FTP/FTPS
NNTP
SMTP(S)
POP3(S)
IMAP(S)
Telnet
TFTP
Finger
Whois
rexec/rcmd/rlogin
Time (rdate) and Daytime
Echo
Discard
NTP/SNTP

Refer to https://commons.apache.org/proper/commons-net/ for additional information.

415 questions
0
votes
1 answer

FTP List Files return always root files

I'm using apache.commons.net ftpClient but I'm facing a problem that I'm not sure how to fix. So basically I log in the server, set the passive mode, and then I run: fileFTPFiles = this.ftpClient.listFiles(strPath); In all the servers I have…
Killercode
  • 894
  • 1
  • 20
  • 34
0
votes
1 answer

Other SMTP Libraries that can send attachment wtih JDK 1.4 compliance?

I tried using Appache Commons.Net but it has no Attachments. I also tried using Appache Commons Email but its JDK compliance is 1.5. I tried using JavaMail 1.4.7 and it works fine in the PC but when I installed it on our device, I am having errors…
pmark019
  • 1,199
  • 5
  • 15
  • 24
0
votes
1 answer

Resume server to server FTP transfer using apache commons net

I’m refactoring a Java EE application that uses apache commons net FTP library to facilitate FTP transfers between two servers. The code is almost identical to the code posted as an example on the web page,…
sveale
  • 3
  • 3
0
votes
3 answers

Determine the internet time of another country in Java

I am developing a Java application that will be used by people from around the world. One feature requires it to display the current time in Melbourne, Australia. I have found this answer and adapted the code as follows, but it returns my current…
Vlad Schnakovszki
  • 8,434
  • 6
  • 80
  • 114
0
votes
1 answer

Apache commons ftpclient not connecting

I am writing an application to download files from ftp server. The code exits with error - UnknownHostException. The site is valid and I have opened it in filezilla. The code follows - public class Downloader extends AsyncTask
Opax Web
  • 848
  • 3
  • 12
  • 25
0
votes
1 answer

Downloading Folder Structures with Apache commons net ftp

I found apache-commons ftp retrieve multiple files - is there a way to download the complete folder structure in a given start directory from the ftp server?
PdXY
  • 136
  • 1
  • 2
  • 12
0
votes
3 answers

Apache Commons FTPClient fails to retrieve some files

I'm using Apache Commons FTPClient to fetch files from FTP server. This is the setup: ftpClient.setDefaultPort(port); ftpClient.connect(server); ftpClient.login(user, password); …
artem
  • 16,382
  • 34
  • 113
  • 189
0
votes
1 answer

How can I limit transfer speed?

I'm writing an FTP (client) service for Android, that is intended to upload video contents in background. I was thinking that users may get bothered if my service fills the whole connection band. What is the simplest way to dinamically set an…
Paolo M
  • 12,403
  • 6
  • 52
  • 73
0
votes
1 answer

How to read the complete result of ftp transfer in storeFile() in FTPClient?

My question is regarding FTPClient. I need detailed reply statistics. When I use getReplyString() I get only part of the information. For example: My code is FTPClient ftp = new FTPClient(); //some code here ftp.storeFile(hostDir + fileName,…
shriguru nayak
  • 310
  • 1
  • 3
  • 21
0
votes
0 answers

apache ftpclient retrievefile() downloading corrupted file

I am using org.apache.commons.net.ftp.FTPClient for downloading files from ftp server. It downloads all the files from my ftp server except those files with names like test.xml test.txt west.xml etc., The files with these names are getting…
MLS
  • 617
  • 1
  • 7
  • 14
0
votes
1 answer

Android commons net ftp FTPClient send small file issue

I have an issue with Apache commons-net-ftp library. What I do is send a small size MP3 files. The sizes are between 1 and 10 kb. All stages of algorithm pass well but there are NO files on FTP. This is overview of the…
Yuriy Chernyshov
  • 506
  • 6
  • 12
0
votes
1 answer

Fail to upload file using FTPClient

I have to upload and download a file using FTP server but I am facing issues in it. Have gone though many solutions but nothing seems to be working. I am using secureftp-test.com as the testing FTP server. Below is the code for uploading where in I…
roger_that
  • 9,493
  • 18
  • 66
  • 102
0
votes
1 answer

Java library dependencies not found in my Play2 scala application

I have a play2 scala app where I need to do some ftp operations. Since I have previously worked with org.apache.commons.net I thought why not reuse some knowledge and implement this in my play2 scala app. I added the dependency: val appDependencies…
jakob
  • 5,979
  • 7
  • 64
  • 103
0
votes
2 answers

apache.commons.net.ftp.FTPClient not uploading the file to the required folder

I'm using the following code to upload an xml file to the directory /home/domainname/public_html/guest in the server. However, the file is uploaded only to the location /home/domainname. It is not uploading to the child directories. Please…
0
votes
1 answer

URLCodec of Apache commons decode the Data and replace Character with Question Mark (?)

I am facing one issue while decoding data like '1º' using URLCodec of Apache commons. It is decoded as '1?'. Is there any solution for this issue? Before i have tried using below code : String decodedData = new URLCodec().decode(data,…
D Vekaria
  • 140
  • 3
  • 11