Hi Malaka, Thank you for the help. That solved the locking issue. But, now I came across a new issue:
[2014-04-18 10:38:33,124] ERROR - VFSTransportListener Error moving file : ftp://127.0.0.1/test.xml to file:///home/buddhima/wso2/esb/test/original org.apache.commons.vfs2.FileSystemException: Could not delete " ftp://127.0.0.1/test.xml". at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:849) at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1139) at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:463) at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:344) at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:158) at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:107) 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:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete FTP file "ftp://127.0.0.1/test.xml". at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doDelete(FtpFileObject.java:487) at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:838) ... 10 more [2014-04-18 10:38:33,125] WARN - ConnectCallback Connection refused or failed for : localhost/127.0.0.1:9000 [2014-04-18 10:38:33,125] ERROR - VFSTransportListener File object ' ftp://127.0.0.1/test.xml'cloud not be moved, will remain in "locked" state org.apache.axis2.AxisFault: Error moving file : ftp://127.0.0.1/test.xml to file:///home/buddhima/wso2/esb/test/original at org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343) at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:465) at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:344) at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:158) at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:107) 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:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete " ftp://127.0.0.1/test.xml". at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:849) at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1139) at org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:463) ... 8 more Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete FTP file "ftp://127.0.0.1/test.xml". at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doDelete(FtpFileObject.java:487) at org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:838) ... 10 more [2014-04-18 10:38:33,131] WARN - EndpointContext Endpoint : AnonymousEndpoint will be marked SUSPENDED as it failed At there, it says can't delete file. Do I need to configure any additional configuration for that (other than mentioned above) ? Another problem I see is, how it decided a destination folder " *file:///home/buddhima/wso2/esb/test/original*". I haven't mentioned it in the synapse config (According to : https://docs.wso2.org/display/ESB481/Sample+255%3A+Switching+from+FTP+Transport+Listener+to+Mail+Transport+Sender). But that's the path I gave as transport.vfs.MoveAfterProcess in previous sample (Sample no.254). Thank You! On Thu, Apr 17, 2014 at 7:56 PM, Malaka Silva <[email protected]> wrote: > Hi, > > Trying adding the following. > > <parameter name="transport.vfs.Locking">disable</parameter> > > Best Regards, > Malaka > > > On Thu, Apr 17, 2014 at 7:32 PM, Buddhima Wijeweera <[email protected]>wrote: > >> Hi, >> >> I was trying to run sample no 255 with local FTP server (vsftpd). >> >> I have done the following configurations in the vsftpd.conf file: >> 1. Enable annonymous FTP by changing to : >> anonymous_enable=YES >> >> 2. Enable write: >> write_enable=YES >> >> I kept other configurations as it was. >> >> Through web browser, I can access /srv/ftp folder via url: *ftp://localhost/ >> <ftp://localhost/>* >> >> In sample 255, I changed synapse configuration's FileUri as follows: >> *<parameter name="transport.vfs.FileURI">vfs:ftp://127.0.0.1/ >> <ftp://127.0.0.1/></parameter>* >> >> After starting ESB with that configuration, I'm getting the following >> error periodically: >> >> *VFSUtils Cannot get the lock for the file * >> >> I would appreciate, if someone can provide a solution for this. >> >> Thank You! >> >> Buddhima Wijeweera >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Best Regards, > > Malaka Silva > Senior Tech Lead > M: +94 777 219 791 > Tel : 94 11 214 5345 > Fax :94 11 2145300 > Skype : malaka.sampath.silva > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > Blog : http://mrmalakasilva.blogspot.com/ > > WSO2, Inc. > lean . enterprise . middleware > http://www.wso2.com/ > http://www.wso2.com/about/team/malaka-silva/<http://wso2.com/about/team/malaka-silva/> > > Save a tree -Conserve nature & Save the world for your future. Print this > email only if it is absolutely necessary. >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
