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
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

Type: MachII.framework.ListenerSyntaxException
--------

I search for the text "retrieveApplication" in my entire site (a
feature in dreamweaver) and only 1 instance of the text is found.

Any ideas?

Thank you :)

jarthel

unread,
Oct 30, 2009, 8:45:33 AM10/30/09
to Mach-II for CFML
I forgot to say I'm using cf9 and mach-ii beta (as downloaded from one
of the threads here - aug 2009) in an osx environment.

Peter J. Farrell

unread,
Oct 30, 2009, 11:42:41 AM10/30/09
to mach-ii-for...@googlegroups.com
I would suspect that you have template caching on or save java class
files on in your CFIDE. Clear the template cache and try again.

jarthel said the following on 10/30/2009 12:14 AM:
Reply all
Reply to author
Forward
0 new messages