commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Franklin (JIRA)" <>
Subject [jira] Created: (VFS-176) Attempt to copy a file via FTP will cause temporary lockup and create 0 byte file
Date Fri, 12 Oct 2007 07:41:50 GMT
Attempt to copy a file via FTP will cause temporary lockup and create 0 byte file

                 Key: VFS-176
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 1.0
         Environment: FtpFileSystem
            Reporter: Andrew Franklin
            Priority: Minor

The following exception occurred when I tried transferring a file via ftp that the user did
not have read access to. (ie, it has been chmod 400 to another user).

Commons-vfs will create a 0 byte file in the destination folder, but that file never grows.
Also, no messages are logged at
this time. So it appears to the user that the transfer has frozen, until the exception is

I suspect the problem is in commons-net.

Note: this exception is not thrown immediately. It takes a few minutes before this fires.

Caused by: org.apache.commons.vfs.FileSystemException: Could not copy "ftp://anonymous:password@server/pub/20070727.txt"
to "file:///tmp/2007/10/20071011/pub/20070727.txt".
        at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(
        ... 7 more
Caused by: org.apache.commons.vfs.FileSystemException: Could not close the input stream for
file "ftp://anonymous:password@server/pub/20070727.txt".
        at org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(
        at org.apache.commons.vfs.FileUtil.writeContent(
        at org.apache.commons.vfs.FileUtil.copyContent(
        at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(
        ... 9 more
Caused by: FTP response 421 received.
 Server closed connection.
        at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.completePendingCommand(
        at org.apache.commons.vfs.provider.ftp.FtpFileObject$FtpInputStream.onClose(
        at org.apache.commons.vfs.util.MonitorInputStream.close(
        at org.apache.commons.vfs.util.MonitorInputStream.close(
        at org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(
        ... 12 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message