You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/01/16 18:59:32 UTC
DO NOT REPLY [Bug 38293] New: - [net] Cannot delete ftp server file using delteFile(pathtofile)
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
DO NOT REPLY [Bug 38293] - [net] Cannot delete ftp server file using delteFile(pathtofile)
Posted by bu...@apache.org.
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
kevin.wilson@comtrol.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From kevin.wilson@comtrol.com 2006-01-16 20:12 -------
I found the cause and it has nothing to do with this function but it does help
to check and make sure your connection is still active before issuing this command.
--
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