Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-569

apache commons net FTPHTTP client not able to conect to ftp server

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 3.0.1, 3.3
    • None
    • FTP
    • java 7 , windows 7

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            amit7391 amit kumar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment