commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amit kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NET-569) apache commons net FTPHTTP client not able to conect to ftp server
Date Mon, 16 Mar 2015 15:04:39 GMT
amit kumar created NET-569:
------------------------------

             Summary: apache commons net FTPHTTP client not able to conect to ftp server
                 Key: NET-569
                 URL: https://issues.apache.org/jira/browse/NET-569
             Project: Commons Net
          Issue Type: Bug
          Components: FTP
    Affects Versions: 3.3, 3.0.1
         Environment: java 7 , windows 7
            Reporter: amit kumar


if i will do 
FTPClient ftp = new FTPClient();
ftp.connect("FtpserverName", port(21));
ftp.Login("******","****");
 

i am able to connect but if i will do

Ftpclient ftp = FTPHTTPclient("proxyName", "port", "userId", "Pass");
ftp.connect("FtpserverName", port(21));
ftp.Login("******","****");

i am getting 

java.io.IOException: Could not connect to tovms3.fr.eu.airbus.corp
	at org.apache.commons.net.ftp.FTPHTTPClient.connect(FTPHTTPClient.java:93)
	at com.ftp.ftpClient.FTPClientExample.main(FTPClientExample.java:148)
Caused by: java.lang.RuntimeException: Parameter supplied to Base64 encode is not a byte[]
	at org.apache.commons.net.util.Base64.encode(Base64.java:885)
	at org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:107)
	at org.apache.commons.net.ftp.FTPHTTPClient.connect(FTPHTTPClient.java:90)
	... 1 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message