You haven't mentioned which version of CF you're using, but there was
a bug in CF9.0 with SecureFTP. It's fixed in 9.01 (8.01 is fine too).

Andy

On 8 November 2011 21:29, Yuliang Ruan <[email protected]> wrote:
>
> having a wierd issue here.   i believe it may be a bug in CF.
>
> code:
> <cfftp secure="true" action="open" server="#ftpserver#" port="#ftpport#" 
> username="#username#" password="#password#" fingerprint="#fingerprint#" 
> connection="myftp">
>
> <cfftp action="getfile" connection="myftp" remotefile="testfile.txt" 
> localfile="E:\tmp\testfile.txt" transfermode="binary" passive="true"/>
>
>
>
> throws error
>
> An error occurred during the sFTP getfile operation. Error: File Exists: 
> E:\tmp\testfile.txt
>
>
>
>
>
> Folder view shows a file testfile.txt   0 bytes.  and it's locked by cf 
> server.
>
>
> It seems like the operation is creating the file stub, but has some problem 
> writing to it, then complains that the file exists when cf created the file 
> in the first place.
>
>
>
>
>
> this is only in secure mode.  in regular FTP mode, code runs perfectly.
>
>
>
>
>
> Stack trace:
>
> coldfusion.tagext.net.SftpHandler$SftpOperationException: An error occurred 
> during the sFTP getfile operation.
>
> at coldfusion.tagext.net.SftpHandler.checkError(SftpHandler.java:195)
>
> at coldfusion.tagext.net.SftpHandler.getFile(SftpHandler.java:475)
>
> at coldfusion.tagext.net.FtpTag.doStartTag(FtpTag.java:740)
>
> at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
>
> at cffedexImport2ecfm385136567.runPage(E:\htdocs\Pmall_Admin\autoTasks\f 
> edexImport.cfm:32)
>
> at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
>
> at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
>
> at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
>
> at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381 )
>
> at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.ja 
> va:48)
>
> at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
>
> at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
>
> at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
>
> at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:7 9)
>
> at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePers 
> istenceFilter.java:28)
>
> at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
>
> at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
>
> at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
>
> at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
>
> at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
>
> at coldfusion.CfmServlet.service(CfmServlet.java:200)
>
> at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:8 9)
>
> at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
>
> at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringS 
> ervletFilter.java:42)
>
> at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46 )
>
> at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>
> at jrun.servlet.FilterChain.service(FilterChain.java:101)
>
> at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
>
> at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>
> at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java: 286)
>
> at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java: 543)
>
> at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.ja 
> va:203)
>
> at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo 
> l.java:320)
>
> at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j 
> ava:428)
>
> at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool. 
> java:266)
>
> at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348524
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to