Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFFTP putfile error

Explorer ,
Apr 20, 2011 Apr 20, 2011

Hi, I'm trying to use cfftp to put a file on our vendor's server.  I have the correct username/pasword -- I've access the site and put the file from command line and filezilla using the same credentials.  The file I'm trying to put does exist -- I've got a "cfif FileExists(ourfile) is "Yes"" before the cfftp command.  I can do a dir listing of the ftp site successfully.  but when I try a putfile command, I get

The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values

Any suggestions on what else I need to check?   I've tried adding a dummy connection name, transfermode, and port, but none made any difference.  I'm stuck.  I'm hoping someone is going to look at my code and immediately say "hey stupid, fix this..." and I can go on my merry way... Thanks.

<cfftp
username = "*****"
password = "*****"
server = "*****"
action = "putFile"
localFile = "#ourfile#"
remoteFile = "ONYXhrms.txt"
>

1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 20, 2011 Apr 20, 2011

It's not an FTP error, it's a logic error. One of the variables you're using doesn't contain what you think it contains. Check their values.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 20, 2011 Apr 20, 2011

Sorry, I left out that variable:

<cfset ourfile = "e:\Inetpub\wwwroot\processLMS\outgoing\ONYXhrms.txt">

Is that not correct?  I've verified that file exists.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2011 Apr 21, 2011

And the error message singles out the CFFTP call as being the line of code that causes this error?

What's the exact error message (copy and pasted form the screen), including the to dozen or so lines of the stack trace?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 22, 2011 Apr 22, 2011
LATEST

The problem was my Listdir call.  I was missing the connection variable.  In case anyone needs to find this thread, the error is below.  Thanks.

java.lang.NullPointerException
at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:575)
at coldfusion.tagext.net.FtpTag.doInterfaceSetup(FtpTag.java:632)
at coldfusion.tagext.net.FtpTag.doStartTag(FtpTag.java:667)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at cfsendfile2ecfm46575277.runPage(E:\Inetpub\wwwroot\processLMS\sendfile.cfm:46)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.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.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.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.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources