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
-1
votes
1 answer

TimeTCPClient and TimeUDPClient both timing out

I need the time from a NTP server. I tied this: TimeUDPClient client = new TimeUDPClient(); try { client.open(); client.setSoTimeout(10000); client.getTime(InetAddress.getByName(host)); client.close(); } catch…
Ace of Spade
  • 388
  • 3
  • 22
-1
votes
1 answer

I get "Background sticky concurrent mark sweep G" in logs and then nothing happens

I am trying to connect to a FTP server and displaying data on my android app after pulling it from the server, but I have not been able to figure it out. I am facing the above mentioned problem. FTPDownloader class is inside the MainActivity Class…
Kushagr Tyagi
  • 101
  • 2
  • 12
-1
votes
1 answer

Apache Commons Net Ftp throws error: Invalid server reply (MLST): '250 on Android only on Samsung s7

When my application tries to download a file from an Ftp server (running on a Pi zero W with DietPi) it throws the error above, but when I tried with other phones(Xiaomi Redmi 4x with android 6.0 and Samsung Galaxy J5 running on android 7.0) the…
Mugiwara
  • 1
  • 1
  • 2
-1
votes
2 answers

FTP upload does not work Android

I am trying to upload a picture from a Samsung to an FTP server using the Apache FTPClient. But it does not seem to work. I don't know why, the code is fine. I am trying to choose an image to upload it on the server, the selectedImage variable is…
-1
votes
1 answer

FTPClient in android convert image to bitmap

Help!! i have installed ApacheCommons.net FTPClient. As i need to download a PNG file via ftp. The stream downloads but iam having trouble converting it into a Bitmap so i can save to local storage. mFTPClient.connect("path"); …
-1
votes
1 answer

TelnetClient receives no data

I am trying to use the Aapche Commons Net library to implement a telnet connection in Android. I used the example to build an AsyncTask, but there seems to be no data received at all. This is the doInBackground of my AsyncTask: protected Long…
Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
-1
votes
1 answer

Error while Rename file in ftp folder Java

Following is my code to read the file and rename it afterwards. Im using apache commons.net 3.0.1. client.connect(localhost); boolean login = client.login("username", "password"); if(login){ System.out.println("login successful"); boolean…
Justin George
  • 323
  • 5
  • 25
-1
votes
1 answer

ObjectInputStream and Apache-Commons-Net FTPClient

I'm trying to read a file from an FTP server accessed with the FTPClient class from the Apache Commons library, but method to get a file retrieveFile(remoteFileName, OutputStream) needs an OutputStream. I'm trying to get the object without first…
-2
votes
1 answer

Access FTP files from java without filezilla or winscp

I have made java web application for uploading file in ftp and in the same application user can directly open files in browser. It is running successfully when Filezilla or winscp is opened. After closing filezilla and winscp I can't access or…
-2
votes
2 answers

What is difference between FTPClient and FTPSClient?

what is difference between org.apache.commons.net.ftp.FTPClient and org.apache.commons.net.ftp.FTPSClient in java?
Rahul Ghadage
  • 153
  • 1
  • 4
  • 12
1 2 3
27
28