commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <hiranya...@gmail.com>
Subject Re: [vfs] Error While Reading Large Files Through FTP
Date Mon, 18 Apr 2011 12:48:15 GMT
On Sat, Jan 29, 2011 at 9:10 PM, Ralph Goers <ralph.goers@dslextreme.com>wrote:

> Can you try with the latest source in subversion?
>

I tried with a latest Commons VFS build and the problem still occurs :(

Thanks,
Hiranya


>
> Ralph
>
> On Jan 28, 2011, at 10:46 PM, Hiranya Jayathilaka wrote:
>
> > Hi Devs,
> >
> > We are using Commons-VFS in the File transport of Apache Synapse. When we
> > are reading large files (> 1M) into Synapse over FTP, we often get the
> > following exception:
> >
> > [2011-01-29 11:59:54,500] ERROR - VFSTransportListener Error processing
> File
> > URI : ftp://user:password@localhost
> > /home/hiranya/ftp/test.xml?vfs.passive=true
> > org.apache.axis2.AxisFault: Error closing stream
> > at
> >
> org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343)
> > at
> >
> org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:487)
> > at
> >
> org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:255)
> > at
> >
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:144)
> > at
> >
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:102)
> > 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.vfs.FileSystemException: Could not close
> the
> > input stream for file "ftp://user:
> > ***@localhost/home/hiranya/ftp/test.xml?vfs.passive=true".
> > at
> >
> org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:609)
> > at
> >
> org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:485)
> > ... 8 more
> > Caused by: org.apache.commons.vfs.FileSystemException: Could not get FTP
> > file "ftp://user:
> ***@localhost/home/hiranya/ftp/test.xml?vfs.passive=true".
> > at
> >
> org.apache.commons.vfs.provider.ftp.FtpFileObject$FtpInputStream.onClose(FtpFileObject.java:712)
> > at
> >
> org.apache.commons.vfs.util.MonitorInputStream.close(MonitorInputStream.java:135)
> > at java.io.BufferedInputStream.close(BufferedInputStream.java:451)
> > at
> >
> org.apache.commons.vfs.util.MonitorInputStream.close(MonitorInputStream.java:125)
> > at
> >
> org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:605)
> > ... 9 more
> >
> > Is this a known issue with Commons-VFS, or are we doing something wrong?
> Any
> > help will be most appreciated.
> >
> > Thanks
> > --
> > Hiranya Jayathilaka
> > Senior Software Engineer;
> > WSO2 Inc.;  http://wso2.org
> > E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> > Blog: http://techfeast-hiranya.blogspot.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

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