Hi Sebb,

On Mon, Apr 18, 2011 at 7:10 PM, sebb <seb...@gmail.com> wrote:

> On 18 April 2011 13:48, Hiranya Jayathilaka <hiranya...@gmail.com> wrote:
> > 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 tried with a latest Commons VFS build and the problem still occurs :(
>
> And what is the stack trace now?
>

Here's the stack trace I get now:

[2011-04-19 16:41:49,984] ERROR
{org.apache.synapse.transport.vfs.VFSTransportListener} -  Error closing
stream
org.apache.commons.vfs2.FileSystemException: Could not close the input
stream for file "ftp://hiranya:
***@localhost/home/hiranya/test/large.xml?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:485)
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.vfs2.FileSystemException: Could not get FTP
file "ftp://hiranya:
***@localhost/home/hiranya/test/large.xml?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
[2011-04-19 16:41:50,026] ERROR
{org.apache.synapse.transport.vfs.VFSTransportListener} -  Error processing
File URI : ftp://hiranya:
***@localhost/home/hiranya/test/large.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.vfs2.FileSystemException: Could not close the
input stream for file "ftp://hiranya:
***@localhost/home/hiranya/test/large.xml?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:485)
... 8 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not get FTP
file "ftp://hiranya:
***@localhost/home/hiranya/test/large.xml?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



>
> > 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
> >
>
> ---------------------------------------------------------------------
> 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

Reply via email to