You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Rory Winston (JIRA)" <ji...@apache.org> on 2006/08/27 16:14:23 UTC
[jira] Resolved: (NET-56) [net] Nullpointer exception after using
parseFTPEntry in FTPFileEntryParser
[ http://issues.apache.org/jira/browse/NET-56?page=all ]
Rory Winston resolved NET-56.
-----------------------------
Resolution: Incomplete
Need more info
> [net] Nullpointer exception after using parseFTPEntry in FTPFileEntryParser
> ---------------------------------------------------------------------------
>
> Key: NET-56
> URL: http://issues.apache.org/jira/browse/NET-56
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4 Final
> Environment: Operating System: HP-UX
> Platform: HP
> Reporter: David van Heusden
>
> Performing an FTP get action on HP-UX can result in a null pointer exception.
> This occurs when getFiles() calls this.parser.parseFTPEntry(entry) in
> FTPListParseEngine and returns an FTPFile[] array that includes null values.
> This can occur when the files on HP-UX have for example the following
> characteristics:
> -rw------- 1 svcpeova TEAM-OVA-CC4300800 Dec 7 09:35 sdserver-4.5-sp.depot
> As you can see there is no space between the group name and file size, and
> that is exactly where the parseFTPEntry method fails. In this method
> apparently the file characteristics is retrieved and checked, but for some
> reason it appears to rely on spaces to differentiate between the various
> characteristics. Because there is no space between the group name and the file
> size, the method returns a null which ultimately causes a null pointer
> exception when trying to get this file via FTP.
> After changing the group of the file the problem no longer occurs:
> -rw------- 1 svcpeova users 4300800 Dec 7 09:35 sdserver-4.5-sp.depot
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org