commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijayaratha vijayasingam <vijayara...@gmail.com>
Subject FTP file transfer issue
Date Tue, 28 Feb 2012 10:27:33 GMT
Hi all,
We are using Apache commons-vfs project in synapse for vfs transport..
We currently face an issue when transferring bit large file(plain/text)
160kb from FTP server to a local location..We use  commons-vfs V 2.0..I
debugged the code(FTPClientWrapper.java) and  received an error code which
says;

*426 Connection closed; transfer aborted.*

This happens at following method block..
*public boolean completePendingCommand() throws IOException *

Because of the above issue, we get following error;

[2012-02-28 15:30:48,780] ERROR - VFSTransportListener Error closing stream
org.apache.commons.vfs2.FileSystemException: Could not close the input
stream for file "ftp://anonymous@localhost
/in/textfile.txt?vfs.passive=true".
        at
org.apache.commons.vfs2.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:612)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:566)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:306)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:157)
        at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:106)
        at
org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
        at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not get FTP
file "ftp://anonymous@localhost/in/textfile.txt?vfs.passive=true".
        at
org.apache.commons.vfs2.provider.ftp.FtpFileObject$FtpInputStream.onClose(FtpFileObject.java:731)
        at
org.apache.commons.vfs2.util.MonitorInputStream.close(MonitorInputStream.java:140)
        at java.io.BufferedInputStream.close(BufferedInputStream.java:451)
        at
org.apache.commons.vfs2.util.MonitorInputStream.close(MonitorInputStream.java:130)
        at
org.apache.commons.vfs2.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:608)
        ... 9 more


Does anyone knows the workaround or fix for above issue?

Thanks
-Ratha.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message