Results 1 to 3 of 3
  1. #1
    pokermagic is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default FTP: Could not parse response code

    I am trying to connect to a FTP server that is housed in our local domain.

    FTPClient client = new FTPClient();

    try {

    client.connect("10.10.1.12"); // Internal IP
    boolean login = client.login("patriotmem\rma", "rma");

    if (login) {

    System.out.println("Login success...");

    } else {
    System.out.println("Login failed...");
    }
    } catch(Exception e) {
    System.out.println("e is " + e);
    }

    However when I get this code I get the following:

    e is org.apache.commons.net.MalformedServerReplyExcepti on: Could not parse response code.
    Server Reply: ma.

    Does anyone know what might be causing this error?

    Thanks in advance.

    Jeff

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: FTP: Could not parse response code

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: FTP: Could not parse response code

    Add a call to printStackTrace() in the catch block to get a better error message.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Server returned HTTP response code: 500.. i need help
    By hardc0d3r in forum Java Servlet
    Replies: 9
    Last Post: 03-12-2012, 08:08 PM
  2. Using Tokenizer to parse file data--CODE
    By Cylab in forum Java Software
    Replies: 0
    Last Post: 07-26-2010, 11:48 AM
  3. Response code from URL
    By sherlock in forum New To Java
    Replies: 1
    Last Post: 07-01-2010, 09:52 PM
  4. Server returned HTTP response code: 500
    By fuliangQ in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-09-2009, 03:55 AM
  5. Server returned HTTP response code: 500
    By Heather in forum Java Servlet
    Replies: 1
    Last Post: 07-09-2007, 04:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •