[Prev] Thread [Next] |
[Prev] Date [Next]
[Mach-II] Re: announceEvent not working from listener?!?!
Wed Jun 24 17:00:46 2009
Is your Mach-II framework under the web-root, or a mapping off of the web
root? The path to it has to be /machii/framework/appmanager.cfc
On Wed, Jun 24, 2009 at 4:38 PM, Matthew <[EMAIL PROTECTED]> wrote:
> I just upgraded to v1.6.1 (I was on 126.96.36.199) and still same error. I
> cleared the template cache, recycled CF but same problem.
> Any ideas?
> On Jun 25, 9:00 am, Matthew <[EMAIL PROTECTED]> wrote:
> > Hi Peter
> > Nope that didn't work. I tried clearing the cache and recycling CF but
> > still got the same error. I wasn't upgrading anyway. Any other ideas?
> > Cheers
> > Matthew
> > On Jun 24, 8:47 pm, "Peter J. Farrell" <[EMAIL PROTECTED]> wrote:
> > > Did you upgrade your version of Mach-II? Sounds like one of the
> > > listed in the README included with the core files.
> > > HTH,
> > > .Peter
> > > ----------------------
> > > If you are updating your Mach-II installation from an older version,
> > > *must* clear
> > > your template cache and restart your CFML server after you replace
> > > older version
> > > of Mach-II with a newer version.
> > > If you do not clear your template cache and restart your server, you
> > > will receive
> > > an exceptions similar to:
> > > - The value returned from function getAppFactory() is not of type
> > > MachII.framework.AppFactory.
> > > - The value returned from function getMessageManager() is not of type
> > > MachII.framework.MessageManager.
> > > - Element AppLoader undefined in application[MACHII_APP_KEY].
> > > - Etc. (Too many to list here as it vary from what version you upgraded
> > > from)
> > > Matthew said the following on 06/24/2009 05:39 AM:
> > > > Hi
> > > > I"m trying to call announceEvent from my listener but I keep getting
> > > > this error:
> > > > ***ERROR***
> > > > MESSAGE: The value returned from the getAppManager function is not of
> > > > type MachII.framework.AppManager.
> > > > DETAIL: If the component name is specified as a return type, its
> > > > possible that a definition file for the component cannot be found or
> > > > is not accessible.
> > > > TAG CONTEXT:
> > > > C:\Inetpub\wwwroot\MachII\framework\BaseComponent.cfc (69)
> > > > C:\Inetpub\wwwroot\project\listeners\listenerContent.cfc (22)
> > > > ***CODE***
> > > > <cffunction name="testMethod" access="public" returntype="void">
> > > > <cfargument name="event" type="MachII.framework.Event"
> > > > required="true" />
> > > > <cfset announceEvent("test-event") />
> > > > </cffunction>
> > > > ***XML CONFIG***
> > > > <event-handler event="test2" access="public">
> > > > <notify listener="ContentListener" method="testMethod" />
> > > > </event-handler>
> > > > As you can see I've really simplified it to make sure nothing funny
> > > > was going on in my listener routine. I just can't figure it out.
> > > > Hopefully someones got the answer or I'll solve it in the morning.
> > > > Environment: CF8, M2 v1.6, IIS, WinXP (Transfer, ColdSpring but these
> > > > shouldn't matter).
> > > > Cheers
> > > > Matthew
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
Wiki / Documentation / Tickets: