very weird behaviour in my listener (app wouldn't reload and something to do with function name)
22 views
Skip to first unread message
jarthel
unread,
Oct 30, 2009, 1:14:40 AM10/30/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mach-II for CFML
I have this function in my applicationsListener.cfc.
------
<cffunction name="retrieveApplicationList1" access="public"
output="no" returntype="void">
<cfargument name="event" type="MachII.framework.Event"
required="yes" />
</cffunction>
-----
as you can see it's a very simple one that does nothing. When I try to
reload my application (via Reload All Mach-II Config Files in
dashboard), it works fine.
But when I change the function name to "retrieveApplication" it
wouldn't reload at all and I get the error:
--------
Message:
Mach-II could not register a listener with type of
'frontend.listeners.applicationsListener' for the listener named
'applicationsListener' in module named 'frontend'.
Details:
Type: Application || Message: Could not find the ColdFusion component
or interface /Volumes/vill0042-osx/Documents/work/htdocs/flinders/
webapps/edss/modules/frontend/listeners/applicationsListener.cfc. ||
Detail: Ensure that the name is correct and that the component or
interface exists. || Missing File Name: /Volumes/vill0042-osx/
Documents/work/htdocs/flinders/webapps/edss/modules/frontend/listeners/
applicationsListener.cfc