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 response 421 received. Server closed connection

I am trying to connect to an FTP site using this code access FTP using java but i got this exception: org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection. So what is i am doing it wrong? i…
skystar7
  • 4,419
  • 11
  • 38
  • 41
0
votes
2 answers

Java + Apache Commons Net: Read FTPFile Without Downloading

Using Apache Commons Net 3.2, my program is connecting to an FTP server and downloading files from it. What it should be able to do, however, is to read the files on the server WITHOUT downloading them. Is this even possible? It's just that the…
Rich Young
  • 337
  • 2
  • 4
  • 10
0
votes
1 answer

Apache Telnet client is sending junk characters when the line exceeds 2048 chars

create Lwresd_Profile lwresd_Profile_Id test description test lwresd_Dns_Server_Id test lwresd_Dns_Arguments test cache_Size 1 log_State 1 lwresd_Atributes 1 ars_Profile_Id…
jumov
  • 43
  • 7
0
votes
2 answers

FTPClient not serializable in Apache Wicket

I am using Apache Wicket with Apache Commons Net. But when I define new FTPClient(); //apache commons net library I get an exception org.apache.commons.net.ftp.FTPClient…
0
votes
2 answers

read open stream till end in java

I am getting a input stream from apache's telnet client.Every time I send a command to telnet client it writes the terminal output back to InputStream,but this stream remains open until the telnet session. Now I want a way to read the data on this…
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

apache commons ftp using new socket every time?

The Apache Commons FTPClient creates calls openDataConnection everytime i.e for every command it uses a separated socket. Which means many ports are used for data transfer? Because of this sometimes i am getting into SockeReadTimeOutException which…
srinivasan
  • 823
  • 1
  • 8
  • 14
0
votes
1 answer

RExecClient apache InputStream not available

I want to run a command on a remote machine using the RExecClient Apache Commons-Net class. My code is: import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; import…
Maxbester
  • 2,435
  • 7
  • 42
  • 70
0
votes
1 answer

edit a remote file using telnet from java

I have created a telnet client using apache.commons.net.using this I can send remote commands and get the terminal output as string.But Now I also want to edit the remote files.I have vi and ed editors on the remote system.How can I do this.I am…
vishesh
  • 2,007
  • 6
  • 32
  • 67
0
votes
1 answer

corrupted images after uploading through 2G/GSM network

I built an app that take pictures and upload them to THe server, i'm using Apache commons FTP library to upload them. when i'm using wifi the images are uploaded without any issues... but when i'm using 2G mobile network to send them half of them…
0
votes
0 answers

File Retrieval from java code

I am trying to retrieve files from ftp.I am getting following exception. Sometimes concurrent access to same file can be case.My firewall is turn off. My question is how can get ride of this exception, because it can not download necassary files, my…
user725455
  • 465
  • 10
  • 36
0
votes
1 answer

Socket Exception at FTPClient::retrieveFile

I have an application that should connect to a ftp server an download a file. Some months ago, everything worked fine, but now I wanted to change some parts and get exceptions at retrieveFile: FTPClient ftp=ConnectToServer(); OutputStream stream =…
JonathanK
  • 827
  • 1
  • 6
  • 23
0
votes
3 answers

How to download a text file via FTP and read the contents to a string

This is re-worded from a previous question (which was probably a bit unclear). I want to download a text file via FTP from a remote server, read the contents of the text file into a string and then discard the file. I don't need to actually save the…
Kevmeister
  • 147
  • 1
  • 1
  • 12
-1
votes
1 answer

why uploaded zip file via ftp is smaller then original file?

My original zip file is 4KB. When i upload it via ftp on server, the size is smaller namely 3.032KB.it seems to me zip file is corrupted and can't be open. Why it happens? how can be fixed? ftp code public static void uploadFilesToServer(String…
itro
  • 7,006
  • 27
  • 78
  • 121
-1
votes
1 answer

425 Failed to establish connection

I'm trying to download a file via FTP with a Java application. The FTP url is accessible from this web page: http://professionnels.ign.fr/adminexpress. More specifically, I'm trying to download this file. From my home, I can download the file…
Stephan
  • 41,764
  • 65
  • 238
  • 329
-1
votes
1 answer

Java FTP Uploaded Images Corrupted

I'm trying to upload some files to a Local FTP server. The observable list has all the files, and are uploaded by looping the array I'm using the commons-net-3.6.jar Library. The Directory and everything get's created but the images uploaded are…
1 2 3
27
28