You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/02/26 04:19:21 UTC

[jira] Resolved: (NET-342) Calling retrieveFileStream(fileName) before listFiles() causes ParserInitializationException

     [ https://issues.apache.org/jira/browse/NET-342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-342.
----------------------

    Resolution: Invalid

As the comment says, this is to be expected.

> Calling retrieveFileStream(fileName) before listFiles() causes ParserInitializationException
> --------------------------------------------------------------------------------------------
>
>                 Key: NET-342
>                 URL: https://issues.apache.org/jira/browse/NET-342
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 2.0
>            Reporter: L K
>
> When calling FtpClient.retrieveFileStream(fileName) before FtpClient.listFiles() an org.apache.commons.net.ftp.parser.ParserInitializationException is thrown, giving the message: Unknown parser type: [last console output]
> Works:
> FTPFile[] ftpFiles = client.listFiles();
> InputStream is = client.retrieveFileStream("./test.txt");
> Works:
> client.pwd();
> FTPFile[] ftpFiles = client.listFiles();
> InputStream is = client.retrieveFileStream("./test.txt");
> Does not work:
> InputStream is = client.retrieveFileStream("./test.txt");
> client.pwd();
> FTPFile[] ftpFiles = client.listFiles();
> Output:
> org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: "/" is the current directory

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira