ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32579] New: - Nullpointer exception after using parseFTPEntry in FTPFileEntryParser
Date Wed, 08 Dec 2004 06:52:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32579>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32579

           Summary: Nullpointer exception after using parseFTPEntry in
                    FTPFileEntryParser
           Product: Ant
           Version: 1.6.2
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Keywords: ErrorMessage
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: david.vanheusden@hp.com


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message