commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: Getting FTP Server Response as 7 from FTPClient api
Date Thu, 01 May 2014 12:37:34 GMT
On 1 May 2014 07:32, Tarun Kumar <> wrote:
> Hi Team,
>                 While we are trying to retrieve file via FTPClient api
> On calling ftpClient.retrieveFileStream(fileName)  we are getting below exception.
> Could not parse response code.
> Server Reply: 7 Entering Passive Mode (172,25,16,22,131,51).
>         at
>         at
>         at
>         at
>         at
>         at
>         at
>         at com.markit.valuations.marketdata.reporting.checks.yieldcurevs.DatascopeRICCheck.getRicFromFiles(
>                 Could not find response code 7 in FTP response list :

A simple web search for "Entering Passive Mode" shows that the normal
response is

227 Entering Passive Mode

>                 Can you please help us in knowing what could be underlying issue and
recommend solution.

Either the server is sending an invalid response, or Commons NET has
somehow skipped part of the response.
Is it possible that your application is somehow eating up some of the
response data?

You'll need to add a ProtocolCommandListener to log what is being sent
and received.
Or you can use a network protocol analyser such as wireshark.

There are some example apps included with NET; you could try using one
of those to  check how the target server behaves.

> Thanks,
> Tarun Kumar
> ________________________________
> This e-mail, including accompanying communications and attachments, is strictly confidential
and only for the intended recipient. Any retention, use or disclosure not expressly authorised
by Markit is prohibited. This email is subject to all waivers and other terms at the following
> Please visit for contact information
on our offices worldwide.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message