Found the problem, the following function had been generated into
Controller.cfc:
<cffunction name="event" output="false" hint="I am a message listener
function generated for the ""event"" event.">
<cfargument name="event" />
<!---
Put "behind the scenes" query, form validation, and
model
interaction code here.
Use event.getValue("name") to get variables from the
FORM and URL
scopes.
--->
</cffunction>
Now that I've removed this, it's working perfectly. Errors are caught
and handled properly. Not sure how this happened, I used the
generator early in this project and know it wasn't left on at any
point. I'm going to stay away from using it at all in the future,
there must be a case where the generator catches a bad call to event
and inserts the empty function.
Hope this helps anybody else hitting this wall.
D
On Jul 9, 9:15 pm, Danny Owens <[email protected]> wrote:
> I had that thought too -- I was using a custom error handler to pass
> exceptions back to the home page which displayed the viewCollection in
> a window. However, in my quest to stop this problem I switched back
> to the default MG error handling:
>
> <event-handler name="page.error">
> <broadcasts />
> <results>
> <result do="page.error" />
> </results>
> <views>
> <include name="error"
> template="pages/exception.cfm" />
> </views>
> </event-handler>
>
> No luck though.
>
> As for the application.cfc, it hasn't been touched since the day it
> was born -- no onError in there at all. Good call though, I think it
> probably is some kind of exception in the exception handler, but I
> certainly haven't been able to figure it out.
>
> Later tonight I'm planning to try replacing the modelglue and
> coldspring configuration files with some bare-bones vanilla app that
> has a single controller and see if the issue persists.
>
> -Danny
>
> On Jul 9, 6:54 pm, denstar <[email protected]> wrote:
>
>
>
> > On Thu, Jul 9, 2009 at 1:28 PM, Danny Owens<[email protected]> wrote:
>
> > > This has suddenly cropped up in a pretty simple MG3:Gesture
> > > application (CF8.0.1) I'm working on . Whenever an error is thrown
> > > the application times out on a CFLOOP in EventContext.cfc, where it's
> > > looping over and queuing the results (that said, the timeout has
> > > reported various loops between line numbers 350 - 500). If I increase
> > > ColdFusion's request timeout it will eventually just run out of
> > > memory. The most frequent report is for line 370 (EventContext.cfc):
>
> > Hrm... what do you have for MGs exception handler event?
>
> > Seems like something along those lines (exception in the exception
> > handler or some such)... perhaps an onError in Application.cfc?
>
> > Hrm...
>
> > :Denny
>
> > --
> > For all right judgment of any man or things it is useful, nay,
> > essential, to see his good qualities before pronouncing on his bad.
> > Thomas Carlyle
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
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
http://groups.google.com/group/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---