tracker issue : CF-3910255

select a category, or use search below
(searches all categories and all time range)
Title:

DirectoryWatcher gateway crashed on invoking a CFC

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): simon pithers / simon pithers (simon_pithers)

Created: 12/16/2014

Components: Event Gateway

Versions: 9.0.1

Failure Type: Non Functioning

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Win 2008 Enterprise Svr 64-bit

Vote Count: 0

Problem Description: 	DirectoryWatcher gateway crashed on invoking a CFC

Steps to Reproduce: set up onADDfile function to run when new .htm file added to directory

Actual Result: Error invoking CFC for gateway fileWatcher: Variable FORM is undefined

Expected Result: onADDfile function to send email.

Any Workarounds:
None working.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3910255

External Customer Info:
External Company:  
External Customer Name: simon_pithers
External Customer Email:  
External Test Config: My Hardware and Environment details: windows server & CF 9.0.1 running under JRUN

Attachments:

Comments:

Error invoking CFC for gateway fileWatcher: Variable FORM is undefined fileWatcher.cfc used> <cfcomponent displayname="fileWatcher"> <cffunction name="onAddFile"> <cfargument name="cfevent"> <cfmail from="spithers@akdmc.com" to="spithers@akdmc.com" subject="ALERT new HTM" type="html"> <cfdump var="#arguments.cfevent#"> </cfmail> </cffunction> </cfcomponent> Error invoking CFC for gateway fileWatcher: Variable FORM is undefined. {GATEWAYTYPE={FileWatcher},ORIGINATORID={},CFCMETHOD={onAddFile},DATA={{LASTMODIFIED={Wed Jul 18 21:54:22 CDT 2012},FILENAME={C:\virtualhosts\commonspot\abercrombiekent_com\assets\cf\events\default - Copy (2).htm},TYPE={ADD}}},CFCPATH={C:\virtualhosts\commonspot\abercrombiekent_com\assets\cf\events\fileWatcher.cfc},GATEWAYID={fileWatcher}}.
Comment by External U.
9355 | December 16, 2014 06:06:58 AM GMT
simon_pithers, I am unable to observe the issue with CF902 / Win 7x64. I can receive emails on add events for .htm files in the watched directory. I don't see the FORM scope/variable being used in the listener cfc code you've shared. Can you please check the CF exception.log file for the detailed stack trace of the error, where exactly it is failing. Are you on a stand-alone or JEE installation of CF?
Comment by Piyush K.
9356 | December 22, 2014 04:48:58 AM GMT
this is the complete error stack. as you can see in the code, there are no form variables in use, so I'm assuming this must be an error within the gateway event itself. "Error","Thread-35","12/16/14","04:02:32",,"Error invoking CFC for gateway fileWatcher: Variable FORM is undefined. {GATEWAYTYPE={FileWatcher},ORIGINATORID={},CFCMETHOD={onAdd},DATA={{LASTMODIFIED={Wed Jul 18 21:54:22 CDT 2012},FILENAME={C:\virtualhosts\commonspot\abercrombiekent_com\about_us\default - Copy.htm},TYPE={ADD}}},CFCPATH={C:\virtualhosts\commonspot\abercrombiekent_com\assets\cf\events\fileWatcher.cfc},GATEWAYID={fileWatcher}}. " coldfusion.runtime.UndefinedVariableException: Variable FORM is undefined. at coldfusion.runtime.CfJspPage._get(CfJspPage.java:303) at coldfusion.runtime.CfJspPage._get(CfJspPage.java:283) at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1494) at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1471) at cfdashboard2dcmd2dfatal2derror2dabort2ecfm1261761213.runPage(C:\inetpub\wwwroot\commonspot\utilities\dashboard-cmd-fatal-error-abort.cfm:45) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:271) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfsite2dapplication2ecfm480890804.runPage(C:\inetpub\wwwroot\commonspot\site-application.cfm:33) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfApplication2ecfm1744377491.runPage(C:\virtualhosts\commonspot\abercrombiekent_com\Application.cfm:13) 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.CfincludeFilter.include(CfincludeFilter.java:33) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279) at coldfusion.filter.EventRequestMonitorFilter.invoke(EventRequestMonitorFilter.java:47) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.eventgateway.EventProxy.invokeComponent(EventProxy.java:66) at coldfusion.eventgateway.EventProxy.invokeComponent(EventProxy.java:47) at coldfusion.eventgateway.EventRequestHandler.invokeCFC(EventRequestHandler.java:185) at coldfusion.eventgateway.EventRequestHandler.processRequest(EventRequestHandler.java:111) at coldfusion.eventgateway.EventRequestDispatcher$Task.run(EventRequestDispatcher.java:122) at coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:210)
Comment by External U.
9357 | December 22, 2014 07:57:32 AM GMT
this is the coldfusion server summary, its a jrun container. Server Details Server Product ColdFusion Version 9,0,1,274733 Edition Enterprise Operating System Windows Server 2008 R2 OS Version 6.1 Update Level /C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf901-00004.jar Adobe Driver Version 4.0 (Build 0005) JVM Details Java Version 1.6.0_33 Java Vendor Sun Microsystems Inc. Java Vendor URL http://java.sun.com/ Java Home C:\Program Files\Java\jre6 Java File Encoding Cp1252 Java Default Locale en_US File Separator \ Path Separator ; Line Separator Chr(13) User Name 81387-16$ User Home C:\ User Dir C:\JRun4\bin Java VM Specification Version 1.0 Java VM Specification Vendor Sun Microsystems Inc. Java VM Specification Name Java Virtual Machine Specification Java VM Version 20.8-b03 Java VM Vendor Sun Microsystems Inc. Java VM Name Java HotSpot(TM) 64-Bit Server VM Java Specification Version 1.6 Java Specification Vendor Sun Microsystems Inc. Java Specification Name Java Platform API Specification Java Class Version 50.0
Comment by External U.
9358 | December 22, 2014 08:00:11 AM GMT
simon_pithers, Thanks for those details. The error is quite clearly with the FORM variable used, at line 45 in C:\inetpub\wwwroot\commonspot\utilities\dashboard-cmd-fatal-error-abort.cfm. That page seems to be a part of your application. Not sure about the relation between your onAdd listener and that page or why that page is called when the event occurs. would probably need a better understanding of your application design or what it does, for any kind of analysis. Where is that watcher cfc located? Is whatever you've shared in your first comment all of it, or is there more to it? When is the dashboard-cmd-fatal-error-abort.cfm normally triggered?
Comment by Piyush K.
9359 | December 23, 2014 08:27:35 AM GMT
thanks!! sorry, I should have realised I needed a application.cfm in my events directory to stop the cascade up to my general application level settings which is a 3rd party CMS which probably would need special variables to be set. its working now. please delete the bug reports :) thanks, simon
Comment by External U.
9360 | December 23, 2014 09:26:12 AM GMT
Thanks for reverting Simon. withdrawing this.
Comment by Piyush K.
9361 | January 12, 2015 03:13:08 AM GMT