Have you tried to call the CFC directly via a browser?  If there are compile 
issues in the cfc you should get a cfadmin login screen.  If there issues you 
should see them.  Also, in the <CFRETURN > have it return something.  I.e.  
<CFRETURN 1>.  On top of that, if you are using application.cfc verify that 
your onRequestStart has a <CFRETURN true> in it.


--Dave




>I have a couple of servers (live and staging) that I have deployed  
>and event gateway to. Both servers are same version of Java and CF,  
>running CF standalone (rather than deployment onto JRun) and on one  
>server the event gateway runs fine, on the other I get the following  
>error:
>
>
>Error invoking CFC for gateway directory_test: null
>
>
>The event gateway CFC doesn't actually do anything, its more like a  
>test to see if it is triggered (and no error returns)
>
>Has anyone see the above error before (and yes, I have googled!)
>
>
>The code is as follows:
>
>
><cfcomponent output="false">
>               
>       <cffunction name="onChange" access="public" output="false"  
>returntype="void">
>               <cfargument name="CFEvent" type="Struct" required="true" />
>               
>               
>               <cfreturn >
>       </cffunction>
>
>       <!--- I update the database when file is added to the directory --->
>       <cffunction name="onAdd" access="public" output="false"  
>returntype="void">
>               <cfargument name="CFEvent" type="Struct" required="true" />
>
>       
><cfreturn >
>       </cffunction>
>       
>       <cffunction name="onDelete" hint="I am run when a file is deleted"  
>access="public" output="false" returntype="void">
>               <cfargument name="CFEvent" type="Struct" required="true" />
>               
>       <cfreturn >
>       
>       </cffunction>
></cfcomponent>
>
>and I have the config file pretty plain :
>
>directory=D:\\InetPub\\wwwroot\\website1\\gatewaytest\\upload
>recurse=no
>interval=500
>extensions=*
>changeFunction=onChange
>addFunction=onAdd
>deleteFunction=onDelete
>
>(I have removed the comments for brevity)
>
>Many thanks in advance if you can help me out with this!
>
>Mark D

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276060
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to