Pablo Varando's ColdFusion Blog

CFFTP Issue? Need a second pair of eyes!

Keep in mind that nothing has changed; but today I started getting this.... I've got all the updates and hot fixes installed... so losing hair as it wont cooperate :)

Any ideas?

Here is the error it gives me:

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.


93 : password="#trim(Arguments.ftpPassword)#"
94 : localfile="#trim(Arguments.fileToFTP)#"
95 : remotefile="#trim(Arguments.ftpRemotePath)##trim(Arguments.ftpRemoteFileName)#"
96 : timeout="5000"
97 : transfermode="binary" />

ColdFusion Version 8.01
Enterprise Edition.

Comments
Bradley Moore's Gravatar Dump the arguments scope and see that all the variables have values?
# Posted By Bradley Moore | 3/19/09 3:36 PM
Pablo Varando's Gravatar Yes, all variables are right... any other ideas?
# Posted By Pablo Varando | 3/19/09 3:45 PM
Bradley Moore's Gravatar Double check you have the connection argument in your tag.
# Posted By Bradley Moore | 3/19/09 4:01 PM
Pablo Varando's Gravatar I have tried it both ways...

Single request:

<!--- Now FTP the file --->
      <cfftp action="putfile"
          server="#trim(Arguments.ftpServer)#"
          username="#trim(Arguments.ftpUsername)#"
          passive="no"
          password="#trim(Arguments.ftpPassword)#"
          localfile="#trim(Arguments.fileToFTP)#"
          remotefile="#trim(Arguments.ftpRemotePath)##trim(Arguments.ftpRemoteFileName)#"
          timeout="5000"
          transfermode="binary" />


multi-step:

<cfftp action="open"
          name="objConnect"
          server="#Arguments.ftpServer#"
          username="#Arguments.ftpUsername#"
          passive="no"
          password="#Arguments.ftpPassword#"
          timeout="5000"
          transfermode="binary" />

      

      <cfif cfftp.Succeeded eq "false">
         <cfset fileUploaded = false />
      <cfelse>
         
         <cfftp action="putfile"
             connection="objConnect"
             localfile="#Arguments.fileToFTP#"
             remotefile="#Arguments.ftpRemotePath##Arguments.ftpRemoteFileName#"
             />
         
         <cfftp action="close" connection="objConnect" />
      </cfif>



same error each time.....
# Posted By Pablo Varando | 3/19/09 4:21 PM
Bradley Moore's Gravatar multi-step:
change name="objConnect" to connection="objConnect"

single-step:
add connection="objConnect"
# Posted By Bradley Moore | 3/19/09 4:39 PM
Pablo Varando's Gravatar adding connection seemed to work; not sure what has changed..... hm....
# Posted By Pablo Varando | 3/19/09 8:02 PM
larryRb's Gravatar I've recently got some doubt as far as ColdFusion. Believe me that if ColdFusion allowed us to do what we needed we would have continued using it ( as we already had the code and had servers setup with Sandboxing etc.), and would have written a blog about the value of it, but it doesn't at the moment and Railo does (visit http://rapid4me.com to get better understanding of what I say) . Adobe ColdFusion is an awesome technology and I am nothing but an Advocate having based my business on it for the last 10 years, but at the same time we have to move with the times with regards to deploying a SaaS model and I do believe Railo is the better technology stack for doing that right now, especially for the issues we are trying to solve. Am I not right?
# Posted By larryRb | 9/16/09 9:14 AM
henrybee's Gravatar Quite an interesting opinion, really glad that I have found this post.
http://healthnova.org
# Posted By henrybee | 10/6/09 6:26 AM
beagle training's Gravatar haven't run into your problem but have a friend who has, and he spent a lot of time trying to fix it lol.
http://accidentattorneyma.com/
# Posted By beagle training | 10/15/09 11:13 AM
Frenki's Gravatar Too late to answer)
http://pcgone.com
# Posted By Frenki | 12/19/09 1:12 PM
# Posted By nujo | 12/30/09 2:54 AM
# Posted By henrybee | 1/20/10 3:55 PM
Sirota's Gravatar Keep posting stuff like this i really like it.
<a href="http://wdwwa.org">Sirota</a>;
# Posted By Sirota | 2/21/10 9:01 AM
Volker's Gravatar Bin nur zufällig auf diese Seite gekommen,.
Die schönen Moderationen und Informationen
sind echt super. Über einen Gegenbesuch würde
ich mich freuen.
Viele Grüße von Westerland
# Posted By Volker | 2/22/10 1:34 PM
website marketing's Gravatar Thanks for the nice feedback everyone, I really appreciate it!
# Posted By website marketing | 4/16/10 8:51 AM
website marketing's Gravatar Hi there,
I had the CFFTP Issue, but thanks to you I'm out of it now.Thanks for sharing such a useful post.
Please keep do posting new updates.:)
# Posted By website marketing | 4/19/10 5:50 AM
Website developers india's Gravatar Hey - nice blog, just looking around some blogs, seems a pretty nice platform you are using
# Posted By Website developers india | 4/23/10 1:23 AM
# Posted By jose | 4/28/10 4:42 AM
amish barns's Gravatar Hi there,

Thanks for giving all these useful replies. Keep posting.:)
# Posted By amish barns | 5/26/10 7:27 AM
exploretalent's Gravatar I really appreciate the kind of topics you post here & have added it to my favourite website list Thanks for sharing valuable information.
# Posted By exploretalent | 6/9/10 10:24 AM