Advertisement
Guest User

Untitled

a guest
May 14th, 2017
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfquery name = "sortableDate" datasource="NJDB">
  2.     select replace((convert(varchar, GETDATE(), 111)),'/','') as theDate
  3. </cfquery>
  4.  
  5. <cfset fileName="MyTest#sortableDate.theDate#.xml" />
  6. <cfset outputfile="d:\test\#fileName#" />
  7.  
  8. <cfdump var="#fileName#">
  9. <cfdump var="#outputFile#">
  10. <cfdump var="#fileExists(outputFile)#">
  11.  
  12. <cfftp
  13.     action="putFile"
  14.     server="204.232.225.62"
  15.     username="anonymous"
  16.     password="user@email.com"
  17.     transferMode="binary"
  18.     localfile="#outputFile#"
  19.     remotefile="#fileName#" >
  20.  
  21.  
  22.  
  23. MyTest20100318.xml   d:\test\MyTest20100318.xml   YES
  24.  
  25. The web site you are accessing has experienced an unexpected error.
  26. Please contact the website administrator.
  27.  
  28. The following information is meant for the website developer for debugging purposes.
  29. Error Occurred While Processing Request
  30. The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
  31.  
  32. Null Pointers are another name for undefined values.
  33.  
  34. The error occurred in D:\sites\NationJob\Exports\scripts\ftptest.cfm: line 19
  35.  
  36. 17 :    transferMode="binary"
  37. 18 :    localfile="#outputFile#"
  38. 19 :    remotefile="#fileName#" >
  39.  
  40. Resources:
  41.  
  42.     * Check the ColdFusion documentation to verify that you are using the correct syntax.
  43.     * Search the Knowledge Base to find a solution to your problem.
  44.  
  45. Browser     Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)
  46. Remote Address      192.168.0.240
  47. Referrer    
  48. Date/Time       18-Mar-10 04:47 PM
  49. Stack Trace
  50. at cfftptest2ecfm103194893.runPage(D:\sites\NationJob\Exports\scripts\ftptest.cfm:19)
  51.  
  52. java.lang.NullPointerException
  53.     at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:575)
  54.     at coldfusion.tagext.net.FtpTag.doInterfaceSetup(FtpTag.java:632)
  55.     at coldfusion.tagext.net.FtpTag.doStartTag(FtpTag.java:667)
  56.     at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
  57.     at cfftptest2ecfm103194893.runPage(D:\sites\NationJob\Exports\scripts\ftptest.cfm:19)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement