commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38293] New: - [net] Cannot delete ftp server file using delteFile(pathtofile)
Date Mon, 16 Jan 2006 17:59:32 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=38293>.
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=38293

           Summary: [net] Cannot delete ftp server file using
                    delteFile(pathtofile)
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: kevin.wilson@comtrol.com


Error returned:

*******************************************************************************
java.lang.NullPointerException
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:441)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520)
        at org.apache.commons.net.ftp.FTP.dele(FTP.java:1192)
        at org.apache.commons.net.ftp.FTPClient.deleteFile(FTPClient.java:1750)
*******************************************************************************

Code being used:
FTPClient.deleteFile(pathtofile)

The pathtofile variable has been tried/failed with all of the following:

a) filename
b) printWorkingDirectory() + "/" + filename
c) "ftp.site.com" + printWorkingDirectory() + "/" + filename
d) "ftp://ftp.site.com" + printWorkingDirectory() + "/" + filename
e) "ftp://user:pass@ftp.site.com" + printWorkingDirectory() + "/" + filename

Any ideas why I cannot programmatically delete a file off the server. I can
delete any file I choose to using the FileZilla FTP Client application.

Thanks for the help,

Kevin

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message