Hi Ralph, On Sat, Jan 29, 2011 at 9:10 PM, Ralph Goers <ralph.go...@dslextreme.com>wrote:
> Can you try with the latest source in subversion? > I checked out and built the latest commons-vfs trunk head and then I realized the artifact names and package names have changed (vfs => vfs2). So we have to change Synapse source code a little bit (Java imports etc). May I know what else have changed in the latest trunk? Moving forward, is it recommended to stick with the commons-vfs trunk? Also it seems there hasn't been a release with the new package names etc. Am I correct? 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: hira...@wso2.com; Mobile: +94 77 633 3491 > > Blog: http://techfeast-hiranya.blogspot.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com